/* Gameya V30: shared cinematic presentation. Gameplay and card facts stay separate. */
:root{--cin-gold:#efd180;--cin-ink:#11071a;--cin-edge:#b99b58}
#shell{position:fixed;inset:0;z-index:165;padding:24px;background:radial-gradient(ellipse at 18% 15%,#33245399,transparent 48%),radial-gradient(ellipse at 90% 95%,#6b542329,transparent 50%),#030d09f5;backdrop-filter:blur(12px);overflow:auto;isolation:isolate}
#shell:before,#shell:after{content:"";position:fixed;top:-20%;width:33vw;height:130vh;pointer-events:none;z-index:-1;background:linear-gradient(90deg,transparent,#fff4c408,transparent);transform:rotate(28deg);transform-origin:top}
#shell:before{left:0}#shell:after{right:13%;transform:rotate(-24deg)}
#shell .menuPanel{width:min(1080px,100%);max-height:calc(100dvh - 48px);padding:32px;border-radius:22px;border:1px solid #bca36577;background:linear-gradient(135deg,#1f113be8,#0a0417f5);box-shadow:0 28px 100px #0009,inset 0 0 0 5px #e5c88108;overflow:auto;scrollbar-width:thin;scrollbar-color:#a28b4c #160a21}
#shell #mainMenu{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);padding:0;overflow:auto;gap:0;text-align:right}
#shell #mainMenu.menuHidden{display:none}
.cinemaHero{position:relative;padding:42px 34px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;border-left:1px solid #c6a85b33;background:radial-gradient(ellipse at 50% 60%,#7b2cff26,transparent 65%),linear-gradient(150deg,#34275124,#040e09aa);min-height:530px}
.cinemaHero:before{content:"";position:absolute;inset:13px;border:1px solid #c8a75c33;border-radius:15px;pointer-events:none}
#shell .cinemaHero h1{font-size:40px;line-height:1.4;margin:0;color:#f5d77f;text-shadow:0 3px #0008}
#shell .cinemaHero p{font-size:15px;line-height:1.9;color:#ded0a6;max-width:300px;margin:12px 0}
.cinemaKicker{font-size:12px;color:#d0b774;margin-bottom:16px;letter-spacing:1px;display:flex;align-items:center;gap:12px}.cinemaKicker:before,.cinemaKicker:after{content:"";width:30px;height:1px;background:#bca15b77}
.cinemaCollage{position:relative;width:min(58%,200px);aspect-ratio:279/435;border-radius:22px;background:url(/collage.jpg) center/cover #432769;margin:20px auto 14px;box-shadow:0 0 0 3px #f3ebc8,0 0 0 6px #432769,0 0 0 8px #f3ebc8,0 12px 30px #000c;display:flex;align-items:center;justify-content:center}
.cinemaCollage::before{content:'';position:absolute;inset:8%;background:radial-gradient(ellipse at center,#090217e0 22%,#09021780 55%,transparent 78%);border-radius:15px}
.cinemaCollage .clogo{position:relative;z-index:1;width:76%;height:auto;filter:drop-shadow(0 4px 10px #000c)}
.cinemaCards{direction:ltr;position:relative;width:270px;height:218px;margin:24px 0 14px;perspective:900px}
.cinemaCards img{position:absolute;width:112px;height:175px;object-fit:contain;border-radius:6px;left:79px;top:20px;box-shadow:0 16px 28px #000a,0 0 0 1px #f6d99088;transform-origin:50% 95%;pointer-events:none}
.cinemaCards img:nth-child(1){transform:translateX(-62px) rotate(-18deg)}.cinemaCards img:nth-child(2){transform:translateY(-8px);z-index:2}.cinemaCards img:nth-child(3){transform:translateX(62px) rotate(18deg)}
.cinemaStats{font-size:12px;color:#d6c18c;border:1px solid #c4a65444;padding:7px 14px;border-radius:30px}
.cinemaControls{min-width:0;padding:28px 32px;align-self:center}
#shell .cinemaControls .menuBtn{font-size:17px;min-height:49px;margin:10px 0;padding:11px 16px;border-radius:11px;box-shadow:0 3px 8px #0004;background:linear-gradient(135deg,#34254b,#1b0e28);text-align:center}
#shell .cinemaControls .primary{background:linear-gradient(115deg,#f7de91,#c49a3c);color:#1d112d;border-color:#fae3a6;box-shadow:0 3px 0 #73551d,0 9px 20px #0004}
#shell .menuBtn:hover{filter:brightness(1.12);transform:translateY(-2px)}
#shell .menuSmall{font-size:12px!important;line-height:1.7;color:#c9ba94;opacity:1;margin:5px 0 12px}
#shell #netName{font-size:17px!important;padding:12px 15px!important;margin:0 0 12px!important;min-height:47px;text-align:right;border-color:#bda36588!important;background:#12071a!important}
.cinemaTools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #c5a95f33}
#shell .cinemaTools .menuBtn{margin:0;font-size:13px;min-height:44px;padding:9px 4px;background:#1b0c27}
#shell .cinemaTools #galleryOpen{grid-column:1/-1;font-size:15px}
#shell .cinemaControls .playerPicker{margin:14px 0;padding:12px;background:#0b031c55}
#shell .cinemaControls .countChoice{width:54px;height:48px;font-size:23px;min-width:0}.countChoices{gap:8px}
#shell .cinemaControls h2{font-size:21px;color:#f0d386;margin:12px 0}
#shell #roomDetails:empty,#shell #lobbyInfo:empty,#shell #netError:empty{display:none}
#shell #lobbyInfo{font-size:17px}#shell #roomDetails{font-size:13px}
#shell #connectionPanel input{font-size:18px;width:100%;margin:0;padding:12px;min-height:48px}
#shell .ruleText{font-size:16px;line-height:2}
#shell #settingsMenu,#shell #rulesMenu{max-width:720px;text-align:right}
#shell #settingsMenu h1,#shell #rulesMenu h1{font-size:29px!important;margin-top:0}
#shell #settingsMenu .menuBtn,#shell #rulesMenu .menuBtn{font-size:17px;min-height:48px}
#shell #settingsMenu p{font-size:15px;line-height:1.9}
#shell .motionChoices{display:flex;gap:10px}.motionChoices button{flex:1}
#shell .motionChoices [aria-pressed=true]{background:#e2c36e;color:#211332;border-color:#ffe5a0}
.cinemaBack{color:#d9c58f;font-size:13px;text-decoration:none;display:block;text-align:center;margin:0 0 15px}
#cardGallery{background:radial-gradient(ellipse at 80% 0,#2b1d4866,transparent 50%),#0c0415}
.galleryBar{background:#0b031bf5;border-bottom:1px solid #b5995255;padding-bottom:16px;backdrop-filter:blur(10px)}
#galleryGrid button{border-radius:9px;padding:5px!important;transition:transform .2s,background .2s}
#galleryGrid button:hover{transform:translateY(-5px);background:#e2c57a13}#galleryGrid button:focus-visible{outline:2px solid #f6dc91;outline-offset:4px}
#galleryGrid img{box-shadow:0 8px 20px #0009,0 0 0 1px #e7cb8322}
#galleryZoom{background:radial-gradient(ellipse,#1d1234e8,#000f);backdrop-filter:blur(12px)}
#hand .card{backface-visibility:hidden;transform-origin:50% 85%;transition:transform .38s cubic-bezier(.2,.8,.25,1),filter .2s!important}
#hand .card[aria-pressed=true]:before{content:"✓";position:absolute;top:-11px;right:-7px;background:#f1d17b;border:2px solid #f9e8b2;box-shadow:0 3px 9px #0008;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;color:#221138;font:900 14px K;pointer-events:none}
#turnClock[data-urgent=true]{border-color:#edac80!important;box-shadow:0 0 0 2px #d9934825;color:#ffd4ad!important}
@media(max-width:700px){#shell{padding:14px 12px;align-items:safe center!important}#shell .menuPanel{max-height:calc(100dvh - 28px);padding:22px 20px;border-radius:18px}#shell #mainMenu{display:block;max-width:450px}.cinemaHero{min-height:0;padding:20px 24px 17px;border-left:0;border-bottom:1px solid #c6a85b33}.cinemaHero:before{inset:8px;border-radius:12px}#shell .cinemaHero h1{font-size:30px;margin:0}.cinemaKicker{font-size:10px;margin:0 0 7px}.cinemaCards{width:180px;height:100px;margin:5px 0 2px}.cinemaCards img{width:60px;height:94px;left:60px;top:0}.cinemaCards img:nth-child(1){transform:translateX(-38px) rotate(-18deg)}.cinemaCards img:nth-child(2){transform:translateY(-3px)}.cinemaCards img:nth-child(3){transform:translateX(38px) rotate(18deg)}#shell .cinemaHero p{font-size:12px;line-height:1.6;margin:5px 0;max-width:300px}.cinemaStats{display:none}.cinemaControls{padding:18px 18px 16px}#shell .cinemaControls .menuBtn{font-size:15px;min-height:44px;padding:10px;margin:8px 0}#shell .menuSmall{font-size:10px!important;margin:4px 0 9px;line-height:1.6}.cinemaTools{margin-top:12px;padding-top:12px;gap:7px}#shell .cinemaTools .menuBtn{font-size:12px;min-height:44px;margin:0;padding:8px 4px}#shell .cinemaTools #galleryOpen{font-size:13px}#shell #netName{min-height:44px;font-size:15px!important;padding:10px 12px!important;margin-bottom:8px!important}#shell .cinemaControls .countChoice{height:44px;width:44px;font-size:20px}#shell .cinemaControls .playerPicker h2{font-size:16px}#shell .cinemaControls .playerPicker{margin:8px 0;padding:10px}#shell .cinemaControls h2{font-size:19px}.cinemaBack{font-size:11px;margin-bottom:10px}#shell #settingsMenu p,#shell .ruleText{font-size:14px}#shell #settingsMenu .menuBtn,#shell #rulesMenu .menuBtn{font-size:15px}}
@media(max-height:650px) and (max-width:700px){.cinemaHero{padding:16px}.cinemaCards{display:none}.cinemaCollage{display:none}#shell .cinemaHero h1{font-size:27px}.cinemaControls{padding-top:12px}}
@media(prefers-reduced-motion:reduce){#hand .card,#galleryGrid button{transition:none!important}}
body[data-motion=quiet] #hand .card,body[data-motion=quiet] #galleryGrid button{transition:none!important}
#menuLiveCue{font-size:12px!important;border:1px solid #bd9c5355;border-radius:8px;color:#f0d795!important;background:#0e0517;padding:8px 12px;margin:0 0 12px!important;text-align:center}
#menuLiveCue[hidden]{display:none!important}
@media(max-height:650px) and (max-width:700px){#shell .cinemaHero p{display:none}.cinemaKicker{margin-bottom:4px}#shell .cinemaHero h1{font-size:25px}.cinemaHero{padding:12px}.cinemaControls{padding:12px 16px}#shell .cinemaControls>.menuSmall:last-child{display:none}}
.galleryFilters button,.galleryBar button,#galleryZoom button{min-height:44px}#galleryGrid span{overflow-wrap:anywhere}.cinemaControls #netError{color:#ffd4ad;font-size:13px;line-height:1.7}

/* User-selected opening cast: back, Ahmed Ezz, Karim Abdel Aziz, Kira Wal Gin. */
.cinemaCards{width:350px;height:232px}
.cinemaCards img{left:119px;top:25px}
.cinemaCards img:nth-child(1){transform:translateX(-103px) rotate(-18deg);z-index:1}
.cinemaCards img:nth-child(2){transform:translateX(-35px) translateY(-10px) rotate(-6deg);z-index:2}
.cinemaCards img:nth-child(3){transform:translateX(35px) translateY(-10px) rotate(6deg);z-index:3}
.cinemaCards img:nth-child(4){transform:translateX(103px) rotate(18deg);z-index:4}
@media(max-width:700px){.cinemaCards{width:236px;height:114px}.cinemaCards img{left:88px;top:8px}.cinemaCards img:nth-child(1){transform:translateX(-75px) rotate(-18deg)}.cinemaCards img:nth-child(2){transform:translateX(-25px) translateY(-6px) rotate(-6deg)}.cinemaCards img:nth-child(3){transform:translateX(25px) translateY(-6px) rotate(6deg)}.cinemaCards img:nth-child(4){transform:translateX(75px) rotate(18deg)}}

/* Viewport-sized inspection controls, including narrow landscape screens. */
body #zoom{position:fixed!important;inset:0!important;z-index:160!important;box-sizing:border-box;padding:12px!important;gap:8px!important}
body #zoom #zoomimg{width:auto!important;height:auto!important;max-width:min(76vw,320px)!important;max-height:calc(100dvh - 124px)!important;object-fit:contain;border-radius:12px!important;flex:0 1 auto;min-height:0}
body #zoom .zbtn,body #zoom .zclose{font:700 16px K!important;min-height:44px!important;min-width:152px!important;padding:8px 16px!important;box-sizing:border-box;flex-shrink:0}
@media(max-height:450px){#shell{padding:12px!important;align-items:flex-start!important}#shell .menuPanel{max-height:calc(100dvh - 24px)!important;flex-shrink:0;box-sizing:border-box}}

@media(max-height:450px){#shell{box-sizing:border-box;justify-content:center!important}#shell .menuPanel{margin:0!important;align-self:flex-start!important}}
/* OTAKU THEME */
html,body{background:#07031a!important}
#stage{background:radial-gradient(ellipse at 50% 20%,#3b1670 0,#170a3a 45%,#06021a 90%)!important}
#stage::before{background:repeating-conic-gradient(from 0deg at 50% 38%,#ff5fa222 0 3deg,transparent 3deg 9deg)!important;opacity:.35!important}
#shell .menuPanel{border:1px solid #ff7cc577!important;background:linear-gradient(135deg,#2a1263ee,#0a0424f5)!important;box-shadow:0 0 0 1px #35e6ff44,0 0 38px #ff4fa755,0 28px 90px #000a!important}
.cinemaHero{background:radial-gradient(ellipse at 50% 0,#ff4fa733,transparent 65%),repeating-conic-gradient(from 0deg at 50% 30%,#ffffff0b 0 4deg,transparent 4deg 10deg)!important}
.cinemaHero:before{border:1px solid #35e6ff55!important}
#shell .cinemaHero h1{color:#fff!important;text-shadow:0 0 14px #ff4fa7,0 0 28px #35e6ff88,0 3px #0008!important;font-size:30px!important}
#shell .cinemaHero p{color:#c9b8ff!important}
.cinemaKicker{color:#7ff0ff!important}.cinemaKicker:before,.cinemaKicker:after{background:#ff4fa788!important}
.otkLogo{width:min(62%,190px);height:auto;margin:2px auto 4px;display:block;filter:drop-shadow(0 0 12px #ff4fa788)}
.cinemaCards img{box-shadow:0 14px 26px #000b,0 0 0 1px #35e6ffaa,0 0 14px #ff4fa766!important;object-fit:cover!important}
.cinemaStats{color:#bff6ff!important;border-color:#35e6ff66!important}
#shell .cinemaControls .menuBtn{background:linear-gradient(135deg,#3a1f7a,#1a0b45)!important;border:1px solid #8f6bff88!important;color:#f1e9ff!important}
#shell .cinemaControls .primary{background:linear-gradient(115deg,#ff6fb5,#ff9a3d)!important;color:#2a0a22!important;border-color:#ffd0e6!important;box-shadow:0 3px 0 #8a2a5e,0 9px 22px #ff4fa755!important}
#shell .cinemaTools{border-top-color:#35e6ff44!important}#shell .cinemaTools .menuBtn{background:#1a0b45!important}
#shell .cinemaControls h2{color:#ffd1ea!important}
#shell .cinemaControls .playerPicker{background:#0b0430aa!important}
@media(max-width:700px){.otkLogo{width:150px}.cinemaCards{margin-top:10px!important}}
#shell .cinemaHero h1{display:none!important}.otkLogo{width:min(70%,230px)!important}
