/* Deloo Surface player styles, ported from Deloo.Surface.
   Scoped under .sfp so they never clash with site styles.
   Class names inside (.snote, .s-stage, .bg-*) are unchanged because
   surface-player.js queries them. */
.sfp { --sfp-accent: #7c3aed; }
.sfp .s-stage { position:relative; width:100%; aspect-ratio:16/9; border-radius:14px; overflow:hidden; container-type:inline-size; user-select:none; box-shadow:0 12px 32px rgba(76,29,149,.18); background:#222; }
.sfp .bg-cork { background-image:url('/surface/images/bg-cork.jpg'); background-size:cover; background-position:center; border:14px solid #8b5a2b; box-sizing:border-box; }
.sfp .bg-desk { background-image:url('/surface/images/bg-desk.jpg'); background-size:cover; background-position:center; }
.sfp .bg-plank { background-image:url('/surface/images/bg-plank.jpg'); background-size:cover; background-position:center; }
.sfp .bg-chess { background-color:#f0d9b5; background-image:repeating-conic-gradient(#b58863 0% 25%, #f0d9b5 0% 50%); background-size:12.5% 22.2222%; background-position:center; }
.sfp .snote { position:absolute; padding:24px 12px 10px; box-shadow:0 16px 30px rgba(0,0,0,.38), 0 4px 10px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -10px 18px rgba(0,0,0,.07); border:1px solid rgba(0,0,0,.12); transform:rotate(var(--rot, 0deg)); opacity:var(--op, 1); color:#2b2118; box-sizing:border-box; }
.sfp .snote-body { width:100%; height:100%; overflow:hidden; display:flex; flex-direction:column; gap:6px; position:relative; z-index:1; }
.sfp .snote-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:calc(var(--fs, 1.5) * 1cqw); line-height:1.4; }
.sfp .snote-img { max-width:100%; max-height:55%; object-fit:contain; border-radius:4px; align-self:center; }
.sfp video.snote-img { width:100%; }
.sfp .snote.gloss::after { content:""; position:absolute; inset:0; z-index:0; background:linear-gradient(115deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,.38) 12%, rgba(255,255,255,.10) 26%, rgba(255,255,255,0) 42%); pointer-events:none; }
.sfp .snote.gloss { box-shadow:0 14px 26px rgba(0,0,0,.40), 0 3px 8px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.9), inset 0 -10px 18px rgba(0,0,0,.08); }
.sfp .kind-sticky { font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive; }
.sfp .kind-pin { font-family:Georgia,serif; background-image:url('/surface/images/aged-paper.jpg'); background-size:cover; background-position:center; background-blend-mode:multiply; }
.sfp .kind-ribbon { font-family:"Segoe Print","Bradley Hand",cursive; border-radius:4px; }
.sfp .snote-pin { position:absolute; top:0; left:50%; transform:translate(-50%,-45%); width:7%; aspect-ratio:642/862; z-index:1; background:url('/surface/images/pushpin-red.png') center/contain no-repeat; pointer-events:none; }
.sfp .snote-tape { position:absolute; top:-9px; left:50%; transform:translateX(-50%) rotate(-2deg); width:84px; height:22px; z-index:1; background:rgba(255,255,255,.55); border-left:1px dashed #ccc; border-right:1px dashed #ccc; }
/* Transport bar under the stage. */
.sfp-bar { display:flex; align-items:center; gap:10px; margin-top:10px; flex-wrap:wrap; }
.sfp-bar .sfp-title { font-weight:600; flex:1; min-width:120px; }
.sfp-btn { background:#ede9fe; color:#4c1d95; border:1px solid #c4b5fd; border-radius:8px; padding:6px 14px; cursor:pointer; font:inherit; font-size:14px; }
.sfp-btn:hover { background:#ddd6fe; }
.sfp-btn.primary { background:#7c3aed; border-color:#7c3aed; color:#fff; }
.sfp-btn.primary:hover { background:#6d28d9; }
.sfp-btn:disabled { opacity:.45; cursor:default; }
/* Fullscreen overlay, same pattern as the studio's present mode. */
.sfp-full { position:fixed; inset:0; z-index:1050; background:rgba(30,16,54,.94); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:20px; box-sizing:border-box; }
.sfp-full .s-stage { width:min(1500px, 94vw); }
.sfp-full .sfp-bar { width:min(1500px, 94vw); }
.sfp-full .sfp-title { color:#fff; }
