/* ธีมโรงหนัง: นั่งดูหนังรูป/คลิปบนจอ แสงโปรเจกเตอร์หนังเก่า */
:root { --acc: #e8c45a; --hand: "Mali", "Bradley Hand", "Comic Sans MS", cursive; --fl: 1; --lamp: #ffe9b8; }
body.theme-cinema { background: #0a0708; color: #f6ecd9; font-family: var(--hand); }
.doo { display: block; width: 100%; height: auto; overflow: visible; }
.gate { background: #0a0708; }
body.opening .gate { background: transparent; }
.gate-center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; transition: opacity .5s; padding: 0 16px; }
body.opening .gate-center { opacity: 0; }
.curtain { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2; transition: transform 1.8s cubic-bezier(.6, 0, .2, 1); background: repeating-linear-gradient(90deg, #7d1218 0 28px, #a31a22 28px 56px, #6a0e14 56px 84px); box-shadow: inset 0 0 60px rgba(0, 0, 0, .55); }
.curtain.l { left: 0; border-right: 3px solid #3a070a; } .curtain.r { right: 0; border-left: 3px solid #3a070a; }
body.opening .curtain.l { transform: translateX(-102%); } body.opening .curtain.r { transform: translateX(102%); }
.gate-eyebrow { font-family: "Bebas Neue", Impact, sans-serif; font-size: 18px; letter-spacing: .4em; color: var(--acc); }
.gate-title { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .06em; font-size: clamp(44px, 12vw, 88px); line-height: 1; margin: 6px 0 30px; color: #fff3da; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); text-align: center; }
.gate-title small { font-size: .55em; color: var(--acc); }
.play-btn { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--acc); background: rgba(232, 196, 90, .12); color: var(--acc); font-size: 30px; cursor: pointer; animation: pl 2s ease-in-out infinite; }
@keyframes pl { 50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(232, 196, 90, .4); } }
.gate-hint { margin-top: 18px; font-size: 14px; color: rgba(246, 236, 217, .7); }

.hall { position: relative; height: 100vh; min-height: 560px; max-height: 980px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a1820 0%, #0d0709 62%, #050304 100%); }
.wall { position: absolute; top: 0; bottom: 0; width: 12%; background: repeating-linear-gradient(90deg, #4a0e14 0 14px, #5e1219 14px 28px); opacity: .85; box-shadow: inset 0 0 40px #000; }
.wall.l { left: 0; } .wall.r { right: 0; transform: scaleX(-1); }
.marquee { position: relative; z-index: 4; text-align: center; padding-top: 58px; font: 400 13px "Bebas Neue", Impact, sans-serif; letter-spacing: .35em; color: rgba(232, 196, 90, .75); }
.marquee b { font-weight: 400; color: #fff0c8; }
.screen-wrap { position: relative; z-index: 3; width: min(880px, 92%); margin: 14px auto 0; }
.screen { position: relative; aspect-ratio: 16 / 10; background: #111; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 6px #1b1216, 0 0 80px rgba(255, 224, 170, .22), 0 0 160px rgba(255, 200, 130, .12); filter: sepia(.28) contrast(1.06) brightness(calc(.84 + var(--fl) * .18)); }
.lay { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease-in-out; }
.lay.on { opacity: 1; }
.lay .bgb { position: absolute; inset: -6%; background: center / cover no-repeat; filter: blur(22px) brightness(.7); }
.lay img, .lay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lay.on img { animation: kb 7s ease-out both; }
@keyframes kb { from { transform: scale(1.0); } to { transform: scale(1.07) translate(var(--kx, 0), var(--ky, 0)); } }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; mix-blend-mode: overlay; opacity: .12; pointer-events: none; }
.scratches { position: absolute; inset: 0; pointer-events: none; }
.scratches i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .5); opacity: 0; animation: scr .18s steps(2) 1 forwards; }
@keyframes scr { 0% { opacity: .7; } 100% { opacity: 0; } }
.vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .65) 100%); pointer-events: none; }
.cue { position: absolute; right: 4%; top: 5%; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; }
.cue.on { animation: cue .25s steps(2) 2; }
@keyframes cue { 50% { opacity: .9; } }
.endcard { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 6%; background: rgba(18, 8, 8, .72); opacity: 0; visibility: hidden; transition: opacity 1.2s; overflow: auto; }
.endcard.on { opacity: 1; visibility: visible; }
.endcard .et { max-width: 560px; text-align: center; font: 400 clamp(14px, 2.6vw, 20px) / 1.75 var(--hand); color: #fff0d2; white-space: pre-wrap; text-shadow: 0 2px 10px #000; }
.endcard .et h3 { font: 400 clamp(22px, 5vw, 38px) "Bebas Neue", Impact, sans-serif; letter-spacing: .12em; color: var(--acc); margin-bottom: 8px; }
.endcard .et .sg { display: block; margin-top: 12px; color: var(--acc); }
.endcard .et .dc { display: block; font-size: .8em; opacity: .7; margin-top: 8px; font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .2em; }
.timeline { height: 3px; margin: 8px 6px 0; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.timeline i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .5s linear; }
.beam { position: absolute; left: 50%; bottom: 0; width: 120%; height: 78%; transform: translateX(-50%); z-index: 2; pointer-events: none; background: conic-gradient(from 180deg at 50% 100%, transparent 0 168deg, rgba(255, 233, 184, calc(.16 * var(--fl))) 174deg 186deg, transparent 192deg 360deg); filter: blur(8px); mix-blend-mode: screen; }
.dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 238, 200, .7); animation: dst linear infinite; }
@keyframes dst { from { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .8; } to { transform: translate3d(var(--dx, 20px), -140px, 0); opacity: 0; } }
.seats { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 4; pointer-events: none; }
.seats .bh { position: absolute; bottom: -14%; filter: drop-shadow(0 0 10px rgba(255, 224, 170, calc(.28 * var(--fl)))); }
.seats .bh .doo path, .seats .bh .doo ellipse { }
.seats::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, #050304 80%); }
.hall-ctl { position: absolute; left: 0; right: 0; top: 4px; z-index: 6; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 12px; margin-top: 0; pointer-events: none; }
.hall-ctl > * { pointer-events: auto; }
.hall-ctl { top: auto; bottom: 14px; }
.mini { appearance: none; border: 1px solid rgba(232, 196, 90, .5); background: rgba(10, 7, 8, .6); color: #f2dca4; border-radius: 999px; padding: 8px 16px; font: 500 13px var(--hand); cursor: pointer; }
.endbtn { appearance: none; border: 2px solid var(--acc); background: rgba(232, 196, 90, .15); color: #ffe9b0; border-radius: 999px; padding: 10px 22px; font: 600 15px var(--hand); cursor: pointer; }
.endbtn.is-locked { opacity: .7; }
.foot { text-align: center; padding: 30px 16px 16px; color: rgba(246, 236, 217, .8); background: #0a0708; }
.pool { display: none; }
@media (max-width: 759px) { .screen { aspect-ratio: 4 / 3; } .wall { width: 4%; } .marquee { padding-top: 62px; } .seats { height: 34%; transform: scale(1.4); transform-origin: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .lay.on img { animation: none; } .dust i { animation: none; opacity: 0; } }
html.lowfx .grain, html.lowfx .beam { display: none; }
