.guide-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.cinema-secret{display:grid;place-items:center;width:44px;min-height:44px;border-radius:12px;border:1px solid #67433c;background:#2b1b1e;color:#f5b19e}.cinema-lever-icon{display:block;position:relative;width:27px;height:31px;transform:rotate(19deg)}.cinema-lever-icon:before{content:"";position:absolute;left:12px;bottom:5px;width:3px;height:20px;border-radius:3px;background:linear-gradient(90deg,#7c4937,#f1bd88,#9f6659)}.cinema-lever-icon:after{content:"";position:absolute;left:8px;top:0;width:11px;height:11px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ffb697,#e76954 52%,#722e37);box-shadow:0 0 7px #ff765955}.cinema-lever-icon i{position:absolute;bottom:1px;left:6px;width:15px;height:6px;border-radius:7px;background:#a07566}

body.cinema-page{
  background:#160e10;
  color:#fff0da;
}
.cinema-page > header[hidden]{display:none}
.cinema-page > main{max-width:none;width:100%;padding:0;margin:0}
.cinema{
  --cream:#fff0da;
  --brass:#dcb780;
  --reel-height:clamp(122px,23svh,223px);
  min-height:100svh;
  padding:0 16px max(30px,env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg,#170d1090 0%,#220f1590 25%,#1b1012 69%,#120c0e 96%),
    url("assets/cinema/foyer.webp") center top / max(100%,790px) auto no-repeat,
    #1b1012;
}
.cinema-mast,.cinema-shell{max-width:560px;margin:0 auto}
.cinema-mast{position:relative;text-align:center;padding-top:max(7px,env(safe-area-inset-top))}
.cinema-back{
  display:table;
  min-height:44px;
  padding:10px 1px;
  color:#ead1b2;
  text-decoration:none;
  font-size:.91rem;
}
.cinema-back:focus-visible,.cinema button:focus-visible,.cinema select:focus-visible{outline:2px solid #f3cb91;outline-offset:3px}
.cinema h1{
  font:normal clamp(2.55rem,11vw,5rem)/1 Georgia,serif;
  letter-spacing:-.061em;
  color:var(--cream);
  margin:5px 0 24px;
  text-shadow:0 4px 15px #16090d;
}
.cinema h1 em{color:var(--brass);font-weight:normal}
.cinema-shell{
  position:relative;
  border-top:1px solid #8f684f;
  padding-top:11px;
}
.cinema-shell:before{
  content:"";
  position:absolute;
  top:-5px;
  left:calc(50% - 4px);
  width:7px;
  height:7px;
  background:#d4a66e;
  border:1px solid #2c161b;
  transform:rotate(45deg);
}
.cinema-modes{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:#1a1112;border:1px solid #765442;border-radius:8px;margin:0 0 12px}
.cinema-modes button{
  min-height:42px;
  padding:6px 8px;
  border:1px solid transparent;
  background:transparent;
  color:#e1c8b0;
  border-radius:5px;
}
.cinema-modes button[aria-pressed=true]{background:linear-gradient(138deg,#68333e,#401e28);border-color:#9f6d69;color:#fff4e5}
.cinema-label{margin:0 0 3px;color:#ebcba6;font-size:.84rem}
.cinema select{min-height:44px;width:100%;font-size:1rem;background:#28171b;border-color:#765442;color:#ffedda}
.cinema-filter{font-size:.83rem;color:#d1ae99;margin:6px 0 11px}
.cinema-machine{
  position:relative;
  border:1px solid #ba884e;
  border-radius:12px 12px 10px 10px;
  padding:10px 47px 10px 10px;
  background:
    repeating-linear-gradient(135deg,#e4af7640 0px,#e4af7640 1px,transparent 1px,transparent 13px),
    linear-gradient(130deg,#4f3b36,#160e11 28%,#25181c 70%,#4d3228);
  box-shadow:inset 0 0 0 3px #271716,inset 0 0 0 4px #86603f,0 14px 32px #0c0709aa;
}
.cinema-reels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.cinema-reel{
  position:relative;
  height:var(--reel-height);
  overflow:hidden;
  border:1px solid #926947;
  border-radius:5px;
  background:#2d1a21;
  box-shadow:0 0 0 1px #110a0c;
}
.cinema-reel:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,#150a0c74,transparent 26%,transparent 72%,#1d0b0e69);
}
.cinema-track{display:flex;position:relative;flex-direction:column;width:100%;transform:translateY(0);will-change:transform}
.cinema-poster{
  position:relative;
  flex:0 0 auto;
  height:calc(var(--reel-height) - 2px);
  width:100%;
  background:radial-gradient(ellipse at 50% 25%,#56343e,#22141c);
  overflow:hidden;
}
.cinema-poster img{height:100%;width:100%;object-fit:cover;display:block}
.cinema-poster img[hidden]{display:none}
.cinema-poster span{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  z-index:1;
  padding:20px 4px 5px;
  background:linear-gradient(transparent,#140b0ef2 43%);
  color:#fff1db;
  font:600 clamp(.63rem,2.5vw,.82rem)/1.13 system-ui;
  text-align:center;
  overflow-wrap:anywhere;
}
.cinema-poster .cinema-fallback{display:none}
.cinema-poster-missing span{display:block;inset:0;display:grid;place-items:center;padding:6px;background:linear-gradient(160deg,#482830,#1b1217)}
.cinema-matched .cinema-reel{border-color:#e7bc7f;box-shadow:0 0 12px #e8b57856}
.cinema-reel-note{color:#c3a38d;font-size:.78rem;text-align:center;margin:5px 0 10px}
.cinema-handle{
  position:absolute;
  top:50%;
  right:1px;
  width:44px;
  height:69px;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  background:none;
  touch-action:none;
}
.cinema-handle .cinema-lever-icon{transform:scale(1.38) rotate(var(--lever-angle,19deg));transform-origin:50% 90%}
.cinema-handle .cinema-lever-icon:after{background:radial-gradient(circle at 36% 25%,#ffe2ba,#b84a4d 47%,#4c1427);box-shadow:0 0 8px #c4766870}
.cinema-spinning .cinema-handle .cinema-lever-icon{animation:cinema-pull .42s ease-out}
.cinema-start{
  width:100%;
  min-height:46px;
  margin-bottom:9px;
  border:1px solid #e2b47d;
  border-radius:7px;
  background:linear-gradient(110deg,#dec096,#efcc94 52%,#c69761);
  color:#2d161b;
  font-weight:750;
}
.cinema-output{min-height:48px;padding:8px 0 0;border-top:1px solid #775645}
.cinema-output p{color:#efd2b7;font-size:.88rem;margin:0}
.cinema-output .cinema-reveal-label{color:#f0bd7f;letter-spacing:.11em;text-transform:uppercase;font-size:.75rem;margin-bottom:4px}
.cinema-output h2{font:1.67rem/1.15 Georgia;margin:0 0 4px;color:var(--cream);overflow-wrap:anywhere}
.cinema-title{display:flex;align-items:baseline;gap:10px}
.cinema-title span{color:#d2ad98;font-size:.9rem}
.cinema-ratings{display:flex;gap:8px;flex-wrap:wrap;font-size:.85rem}
.cinema-ratings :is(a,span){padding:4px 8px;border-radius:5px;border:1px solid #805b48;background:#2e1b20;color:#ffead5}
.cinema-ratings a{text-decoration:underline;text-underline-offset:3px}
.cinema-output .cinema-credit{font-size:.75rem;margin-top:5px}
.cinema-celebration{position:absolute;inset:0;pointer-events:none;z-index:2}
.cinema-celebration i{
  position:absolute;
  left:var(--spark-left);
  top:var(--spark-top);
  width:5px;
  height:5px;
  opacity:0;
  border-radius:50%;
  background:var(--spark-color);
  box-shadow:0 0 4px var(--spark-color);
  animation:cinema-spark 1.09s ease-out both;
}
@keyframes cinema-spark{
  0%{opacity:0;transform:translate(0,0) scale(.35)}
  24%{opacity:1}
  100%{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.25)}
}
@keyframes cinema-pull{
  0%,100%{transform:scale(1.38) rotate(19deg)}
  47%{transform:scale(1.38) rotate(59deg)}
}
@media(min-width:650px){.cinema{padding-inline:32px}.cinema-mast{padding-top:14px}.cinema h1{margin-bottom:30px}}
@media(max-height:740px){.cinema h1{margin:1px 0 17px}.cinema-shell{padding-top:8px}.cinema-modes{margin-bottom:7px}.cinema-filter{margin-bottom:7px}}
@media(prefers-reduced-motion:reduce){.cinema-spinning .cinema-handle .cinema-lever-icon{animation:none}}

/* Cinema controls share the same mechanism for pointer, drag and keyboard input. */
.cinema-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sound-toggle{font:500 .82rem/1.1 system-ui;color:#e9d2bc;background:#26191d;border:1px solid #795746;min-height:40px;padding:6px 10px}
.sound-toggle span{margin-right:3px;color:#efc58f}
.cinema h1{margin:21px 0 30px}
.cinema-shell{padding-top:16px}
.cinema-machine{
  padding:13px 66px 13px 13px;
  border:1px solid #c79f6e;
  border-radius:15px;
  background:linear-gradient(125deg,#b08853 0%,#32251d 15%,#110d10 32%,#28181a 66%,#493025 90%,#b68955);
  box-shadow:inset 0 0 0 3px #261819,inset 0 0 0 5px #845d3c,0 17px 34px #0c0709b0;
}
.cinema-machine:before,.cinema-machine:after{
  content:"";
  position:absolute;
  z-index:1;
  inset:8px 12px auto;
  height:1px;
  background:linear-gradient(90deg,transparent,#f6d79b,transparent);
  pointer-events:none;
}
.cinema-machine:after{inset:auto 12px 8px}
.cinema-reels{position:relative;gap:6px}
.cinema-reels:before,.cinema-reels:after{
  content:"";
  top:calc(50% - 4px);
  position:absolute;
  z-index:2;
  pointer-events:none;
  border:4px solid transparent;
}
.cinema-reels:before{left:-2px;border-left-color:#e8ba84}
.cinema-reels:after{right:-2px;border-right-color:#e8ba84}
.cinema-reel{
  border-radius:7px;
  border-color:#a37b54;
  box-shadow:0 0 0 1px #140e10,0 2px 8px #070406;
}
.cinema-reel:after{background:linear-gradient(180deg,#1b1115bd,transparent 20%,transparent 79%,#190d14a8);z-index:1}
.cinema-spinning .cinema-reel:after{background:linear-gradient(180deg,#150b10c9,transparent 18%,transparent 80%,#140a0fb4)}
.cinema-matched .cinema-reels{filter:drop-shadow(0 0 7px #dcb78044)}
.cinema-poster img{object-fit:contain;background:#1d1016;overflow:hidden}
.cinema-poster img[hidden]{display:none}
.cinema-poster span{padding-top:14px}
.cinema-handle{
  width:59px;
  height:calc(100% - 24px);
  top:12px;
  right:4px;
  transform:none;
  background:none;
  cursor:grab;
}
.cinema-handle:active{cursor:grabbing}
.cinema-handle-base{
  position:absolute;
  width:29px;height:29px;
  bottom:18%;right:11px;
  outline:1px solid #dfb380;
  border:2px solid #3b211e;
  border-radius:50%;
  background:radial-gradient(circle at 38% 30%,#e5c38d,#885b3d 36%,#280f15 72%);
  box-shadow:0 5px 7px #0e0709;
}
.cinema-handle-arm{
  position:absolute;
  width:8px;height:calc(52% - var(--lever-travel,0px));
  bottom:calc(18% + 11px);right:22px;
  border-radius:4px;
  background:linear-gradient(90deg,#684327,#f0d29e 43%,#b08452 67%,#402820);
  box-shadow:2px 2px 4px #140910;
}
.cinema-handle-arm i{
  position:absolute;
  top:-15px;left:50%;
  width:27px;height:27px;
  transform:translateX(-50%);
  border-radius:50%;
  outline:1px solid #dfa37c;
  background:radial-gradient(circle at 36% 26%,#f7b595 0%,#b95454 18%,#6f2637 55%,#311323 85%);
  box-shadow:2px 5px 9px #0e060a;
}
.cinema-handle:focus-visible{outline-offset:0}
.cinema-spinning .cinema-handle-arm{animation:cinema-arm .62s cubic-bezier(.3,.6,.3,1)}
.cinema-spinning .cinema-handle{cursor:wait}
.cinema-under{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:9px 0 11px;color:#e7bc87;font-size:.85rem}
.cinema-under .cinema-reel-note{text-align:left;margin:0;color:#caa692}
.cinema-output{padding:11px 0 0}
.cinema-credit a{text-decoration:underline;text-underline-offset:2px}
@keyframes cinema-arm{0%,100%{height:52%}35%,48%{height:calc(52% - 42px)}}
@media(max-width:365px){.cinema-machine{padding-right:57px}.cinema-handle{right:0;width:52px}.cinema-under{font-size:.75rem}}
@media(max-height:740px){.cinema h1{margin:11px 0 20px}.cinema-shell{padding-top:10px}}
@media(prefers-reduced-motion:reduce){.cinema-spinning .cinema-handle-arm{animation:none}}

.cinema{
  background:
    linear-gradient(180deg,#140d10a6 0%,#1b0e1390 19%,#1c0e13e0 44%,#160e10 73%),
    url("assets/cinema/marquee.webp") center top / min(100%,1080px) auto no-repeat,
    #160e10;
}
@media(min-width:650px){.cinema-mast{padding-top:16px}.cinema h1{margin-top:37px;margin-bottom:39px}}

.cinema-output:has(.cinema-result){border-top:0;padding-top:0}
.cinema-result{
  position:relative;
  display:grid;
  grid-template-columns:clamp(86px,26vw,136px) minmax(0,1fr);
  gap:clamp(12px,3vw,22px);
  padding:clamp(11px,3vw,18px);
  border:1px solid #a67a51;
  border-radius:14px;
  background:radial-gradient(ellipse at 100% 100%,#4a252b,transparent 55%),#23171b;
  box-shadow:inset 0 0 0 3px #27191d,inset 0 0 0 4px #654535,0 10px 27px #0c080a;
  overflow:hidden;
  animation:cinema-reveal .4s ease-out both;
}
.cinema-result-art{position:relative;align-self:start;padding-bottom:39px}
.cinema-result-art .cinema-poster{
  width:100%;height:auto;aspect-ratio:2/3;
  border:1px solid #99704c;border-radius:7px;
  box-shadow:0 7px 16px #0e090a;
}
.cinema-result-art .cinema-poster img{position:absolute;inset:0}
.cinema-result-body{min-width:0;padding-top:3px}
.cinema-result .cinema-title{display:block}
.cinema-result .cinema-title h2{font-size:clamp(1.14rem,4.6vw,1.78rem);margin-bottom:2px}
.cinema-result .cinema-title span{font-size:.82rem}
.cinema-result .cinema-ratings{margin-top:5px;gap:4px;font-size:.75rem}
.cinema-result .cinema-ratings :is(a,span){padding:4px 6px}
.cinema-result .cinema-credit{font-size:.68rem}
.cinema-result-info{
  grid-column:1/-1;
  min-width:0;
  border-top:1px solid #805b4877;
  padding-top:10px;
}
.cinema-output .cinema-synopsis,.cinema-output .cinema-cast{
  margin:0;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.cinema-output .cinema-synopsis{font-size:.94rem;color:#ffead5}
.cinema-output .cinema-cast{font-size:.82rem;color:#d9b7a4}
.cinema-synopsis+.cinema-cast{margin-top:8px}
.cinema-cast strong{margin-right:4px;color:#ffead5}
.cinema-popcorn{
  display:block;
  position:absolute;
  width:clamp(43px,14vw,82px);
  height:auto;
  top:calc(100% - 42px);
  right:-11px;
  transform:translateY(-48%);
  filter:drop-shadow(0 5px 7px #10090b88);
}
.cinema-result .cinema-celebration{z-index:4}
.cinema-result .cinema-celebration i:nth-child(3n){width:3px;height:9px;border-radius:2px}
@keyframes cinema-reveal{from{opacity:.1;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

.cinema-kinds{grid-template-columns:repeat(3,minmax(0,1fr))}.cinema-kinds button{line-height:1.2;min-height:44px;padding:6px 3px}
