/* Share web viewer (SYS-08) — mobile-first, 9:16 stage, sticky CTA. Tokens come from site.css. */
.viewer{max-width:480px;margin:0 auto;padding:12px 16px 120px}
.viewer header.top{padding:4px 0 12px}
.stage{position:relative;border-radius:20px;overflow:hidden;background:#000;aspect-ratio:9/16;max-height:78vh;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.media{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000}
.media video,.media img{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.media.playable{background:#0B0B10}
.media iframe{width:100%;height:100%;border:0;display:block;background:#0B0B10}
.media .hint{position:absolute;left:0;right:0;bottom:0;padding:8px 12px;font-size:12px;color:var(--text2);background:linear-gradient(0deg,rgba(11,11,16,.9),rgba(11,11,16,0));pointer-events:none;text-align:center}
.media .placeholder{color:#F5F5FA;font-weight:900;font-size:22px;padding:24px;text-align:center;background:linear-gradient(160deg,#2A1B5E,#0B0B10);width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.unmute,.play{position:absolute;border:1px solid rgba(255,255,255,.25);background:rgba(11,11,16,.65);color:#F5F5FA;font-weight:800;border-radius:999px;cursor:pointer;backdrop-filter:blur(6px)}
.unmute{left:12px;bottom:12px;height:36px;padding:0 14px;font-size:13px}
.play{left:50%;top:50%;transform:translate(-50%,-50%);width:72px;height:72px;font-size:28px;display:flex;align-items:center;justify-content:center}
.overlay{position:absolute;left:12px;top:12px;pointer-events:none}
.labels{display:flex;gap:6px}
.chip{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:12px;font-size:12px;font-weight:800;color:#0B0B10}
.chip-ad{background:#FFB300}
.chip-ai{background:#C6FF00}
.dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.dot{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.4)}
.dot.on{background:#fff}
.missing{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;background:linear-gradient(160deg,#2A1B5E,#0B0B10);color:#F5F5FA}
/* the 숏틱 tick icon (text kept for screen readers, not drawn) */
.missing-icon{width:56px;height:56px;flex:none;align-self:center;background:url(/assets/icon.svg) center/contain no-repeat;font-size:0;color:transparent;margin-bottom:6px}
.missing b{font-size:17px}
.status{min-height:18px;font-size:13px;color:var(--text2);margin:10px 2px 0}
.info{margin-top:8px}
.creator{display:flex;align-items:center;gap:10px}
.avatar{width:36px;height:36px;border-radius:18px;background:var(--surface-high);display:flex;align-items:center;justify-content:center;font-weight:900;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.names{display:flex;flex-direction:column;line-height:1.3}
.names b{font-size:14px}
.title{font-size:20px;margin:12px 0 4px}
.desc{white-space:pre-line}
.stats{display:flex;gap:14px;margin-top:10px;font-size:13px;color:var(--text2)}
.cta{position:fixed;left:0;right:0;bottom:0;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(0deg,var(--bg) 70%,rgba(11,11,16,0));z-index:5}
.cta .inner{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:8px}
.cta .btn{height:52px;font-size:16px;width:100%}
.cta .btn.ghost{height:40px;font-size:13px}
.legal{margin-top:20px}
@media (prefers-color-scheme:light){.cta{background:linear-gradient(0deg,#fff 70%,rgba(255,255,255,0))}}

/* web bridge host (host.js): permission button + post-run nudge — never covers the game while playing */
.cap-prompt{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:5;border:0;border-radius:999px;padding:10px 16px;font:700 14px/1 inherit;background:#7C4DFF;color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.nudge{position:absolute;left:12px;right:12px;bottom:12px;z-index:6;background:rgba(15,10,31,.92);border:1px solid rgba(198,255,0,.35);border-radius:16px;padding:14px 40px 14px 14px;color:#fff;display:flex;flex-direction:column;gap:10px}
.nudge b{font-size:14px}
.nudge .btn{margin:0;text-align:center}
.nudge-close{position:absolute;top:8px;right:8px;border:0;background:transparent;color:#bbb;font-size:16px;padding:6px}

/* web bridge host (host.js): explanation sheet before the camera / microphone / photo (the app's consent sheet) */
.hwik-sheet-backdrop{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center}
.hwik-sheet{width:100%;max-width:480px;box-sizing:border-box;background:#16161F;color:#F5F5FA;border-radius:22px 22px 0 0;padding:14px 22px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.45);max-height:90vh;overflow-y:auto}
.hwik-sheet::before{content:"";display:block;width:36px;height:4px;border-radius:2px;background:rgba(255,255,255,.25);margin:0 auto 14px}
.hwik-sheet h2{margin:0;font-size:20px;font-weight:900;line-height:1.3;white-space:pre-line}
.hwik-sheet-sub{margin:6px 0 0;color:#B6B6C6;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hwik-sheet ul{list-style:none;margin:16px 0 0;padding:0}
.hwik-sheet li{display:flex;gap:10px;align-items:flex-start;margin:0 0 10px;line-height:1.4;font-size:15px}
.hwik-sheet-icon{flex:none;width:20px;text-align:center}
.hwik-sheet-denied{margin:8px 0 0;color:#C6FF00;font-weight:700;font-size:14px}
.hwik-sheet-allow{display:block;width:100%;height:52px;margin-top:18px;border:0;border-radius:14px;background:#7C4DFF;color:#fff;font:800 16px/1 inherit;cursor:pointer}
.hwik-sheet-decline{display:block;width:100%;height:46px;margin-top:8px;border:0;background:transparent;color:#B6B6C6;font:600 15px/1 inherit;cursor:pointer}
/* 「● 카메라 사용 중 · 끄기」 — always visible while a camera or microphone capability runs */
.cap-chip{position:absolute;right:10px;top:8px;z-index:7;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font:700 12px/1 inherit;cursor:pointer}
.cap-chip-dot{width:9px;height:9px;border-radius:50%;background:#34D399}
.cap-chip b{margin-left:2px;color:#C6FF00;font-weight:900}
/* camera preview drawn by the host page — the playable iframe never gets the pixels */
.cam-pip{position:absolute;z-index:6;box-sizing:border-box;border:2.5px solid #fff;border-radius:50%;overflow:hidden;background:#000;box-shadow:0 3px 10px rgba(0,0,0,.4);touch-action:none;cursor:grab}
.cam-pip-grip{position:absolute;left:0;right:0;bottom:6%;z-index:1;text-align:center;font-size:14px;color:rgba(255,255,255,.7);pointer-events:none}
.cam-holder{position:fixed;left:0;bottom:0;width:2px;height:2px;overflow:hidden;opacity:.01;pointer-events:none;z-index:-1}
.cam-holder video{width:2px;height:2px}
.cap-file{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}
