/* =====================================================================
   DOH Showcase · "เริ่มจาก 0" — FULLSCREEN KEYNOTE
   Theme: NIGHT HIGHWAY — dark asphalt stage, glowing amber lane accents,
   huge kinetic typography, one slide = one screen. Built for projector.
   (2-screen sync feature carried over from 20 IS DOH Roadmap.)
   ===================================================================== */

:root {
  --bg:    #08080B;
  --bg2:   #13131A;
  --panel: rgba(255,255,255,.045);
  --panel2:rgba(255,255,255,.07);
  --stroke:rgba(255,255,255,.13);
  --text:  #F4F2EC;
  --dim:   #ABA79E;
  --amber: #FFC247;
  --amber2:#FF9D2E;
  --blue:  #5AA9FF;
  --green: #3FD68B;
  --pink:  #FF6F9C;
  --glow:  rgba(255,194,71,.45);
  --acc:   var(--amber);    /* per-slide accent (overridden inline) */
  --topbar-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Prompt','IBM Plex Sans Thai',system-ui,sans-serif;
  color: var(--text);
  background: var(--bg);
  height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- animated night background ---------- */
.bgfx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, #1a1a24 0%, var(--bg2) 38%, var(--bg) 78%); }
.bgfx .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bgfx .o1 { width: 620px; height: 620px; top: -200px; left: -120px; background: rgba(255,157,46,.30); animation: float1 20s ease-in-out infinite; }
.bgfx .o2 { width: 560px; height: 560px; bottom: -220px; right: -160px; background: rgba(90,169,255,.22); animation: float2 26s ease-in-out infinite; }
.bgfx .o3 { width: 420px; height: 420px; top: 40%; left: 60%; background: rgba(255,111,156,.16); animation: float1 32s ease-in-out infinite; }
@keyframes float1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(50px,-40px) scale(1.08);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-44px,40px) scale(.92);} }
/* perspective road with moving dashes at the bottom */
.bgfx .road { position: absolute; left: 50%; bottom: -4%; width: 220vw; height: 60vh;
  transform: translateX(-50%) perspective(420px) rotateX(70deg); transform-origin: bottom center;
  background:
    linear-gradient(180deg, transparent, rgba(255,255,255,.015) 60%),
    repeating-linear-gradient(90deg, transparent 0 9vw, rgba(255,255,255,.05) 9vw 9.25vw);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  mask-image: linear-gradient(180deg, transparent, #000 60%); }
.bgfx .lane { position: absolute; left: calc(50% - 4px); bottom: -4%; width: 8px; height: 60vh;
  transform: translateX(-50%) perspective(420px) rotateX(70deg); transform-origin: bottom center;
  background: repeating-linear-gradient(180deg, var(--amber) 0 5%, transparent 5% 12%);
  filter: drop-shadow(0 0 8px var(--glow)); opacity: .8;
  animation: lanemove 1.1s linear infinite; }
@keyframes lanemove { from{ background-position-y: 0; } to{ background-position-y: 12vh; } }
@media (prefers-reduced-motion: reduce) { .bgfx .lane, .bgfx .orb { animation: none; } }

/* ---------- top bar (hides in fullscreen) ---------- */
.topbar { flex: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--topbar-h); padding: 0 22px;
  background: rgba(8,8,11,.6); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
  border: 2px solid var(--amber); border-radius: 10px; box-shadow: 0 0 16px var(--glow); }
.brand-title { font-weight: 800; font-size: 14px; line-height: 1.05; }
.brand-sub { font-size: 10.5px; color: var(--dim); }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; max-width: 74%; justify-content: flex-end; }
.navbtn { font-family: inherit; font-size: 11.5px; font-weight: 600; padding: 5px 10px;
  border: 1px solid var(--stroke); background: transparent; color: var(--dim);
  border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.navbtn:hover { color: var(--text); border-color: var(--amber); }
.navbtn.active { background: var(--amber); color: #1a1300; border-color: var(--amber); font-weight: 800; }

body:fullscreen .topbar, body:-webkit-full-screen .topbar { display: none; }

/* ---------- deck / stage ---------- */
.deck { flex: 1 1 auto; position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; display: none; }
.slide.active { display: flex; align-items: center; justify-content: center; }
.stage { width: min(1240px, 92vw); max-height: 100%; overflow-y: auto;
  padding: clamp(18px,3.4vh,46px) clamp(16px,3vw,40px) clamp(86px,12vh,110px);
  scrollbar-width: none; }
.stage::-webkit-scrollbar { display: none; }

/* kicker + headings */
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: clamp(10px,1.6vh,18px);
  font-size: clamp(12px,1.3vw,15px); font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--acc); }
.kicker::before { content: ''; width: 30px; height: 3px; border-radius: 2px;
  background: var(--acc); box-shadow: 0 0 12px var(--acc); }
h2.title { font-size: clamp(30px,5.4vw,76px); font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.title .gl { color: var(--acc); text-shadow: 0 0 30px var(--glow); }
.sub { margin-top: clamp(10px,1.8vh,20px); font-size: clamp(15px,1.9vw,26px);
  color: var(--dim); line-height: 1.5; max-width: 34ch; }
.lead { color: var(--dim); font-size: clamp(15px,1.9vw,25px); line-height: 1.45; margin-top: 8px; }
.lead b, .sub b, .title-lead b { color: var(--text); }
.title-head { margin-bottom: clamp(18px,3.4vh,40px); }
.title-head h2 { font-size: clamp(26px,4.4vw,60px); font-weight: 800; line-height: 1.08; letter-spacing: -.5px; }
.title-head .lead { font-size: clamp(14px,1.7vw,23px); max-width: 50ch; }

/* reveal animation */
.reveal { animation: kin .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d,0s); }
.slide:not(.active) .reveal { opacity: 0; }
@keyframes kin { from { opacity: 0; transform: translateY(30px) scale(.97); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; } }

/* ---------- COVER ---------- */
.cover { text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(14px,2.4vh,26px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 18px;
  font-size: clamp(11px,1.2vw,14px); font-weight: 700; letter-spacing: 1.5px;
  border: 1px solid var(--stroke); border-radius: 999px; color: var(--dim); background: rgba(255,255,255,.03); }
.eyebrow .blink { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.4; transform:scale(.7);} }
.zero { font-size: clamp(88px,19vw,250px); font-weight: 800; line-height: .8; letter-spacing: -8px;
  background: linear-gradient(180deg,#fff 0%, var(--amber) 70%, var(--amber2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 40px var(--glow)); }
.zero .arrow { -webkit-text-fill-color: var(--amber); animation: nudge 1.8s ease-in-out infinite; display: inline-block; }
@keyframes nudge { 0%,100%{ transform: translateX(0);} 50%{ transform: translateX(14px);} }
.cover h1 { font-size: clamp(26px,4.6vw,60px); font-weight: 800; line-height: 1.06; letter-spacing: -.5px; }
.cover h1 .hl { color: var(--amber); text-shadow: 0 0 28px var(--glow); }
.cover .sub { max-width: 60ch; text-align: center; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; font-weight: 700;
  font-size: clamp(12px,1.3vw,16px); border: 1px solid var(--stroke); border-radius: 999px;
  background: rgba(255,255,255,.04); }
.tag .e { font-size: 1.3em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.btn { font-family: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; font-weight: 800; font-size: clamp(14px,1.5vw,18px); border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease; }
.btn-amber { background: linear-gradient(135deg,var(--amber),var(--amber2)); color: #1a1300; box-shadow: 0 10px 36px var(--glow); }
.btn-amber:hover { transform: translateY(-3px); box-shadow: 0 16px 48px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--stroke); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--amber); }
.cover-hint { font-size: clamp(11px,1.1vw,13.5px); color: var(--dim); margin-top: 2px; }

/* ---------- generic grids/cards ---------- */
.grid { display: grid; gap: clamp(12px,1.6vw,22px); }
.g3 { grid-template-columns: repeat(3,1fr); }
.card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 20px;
  padding: clamp(18px,2.4vw,30px); backdrop-filter: blur(6px); position: relative; overflow: hidden; }
.card.glow { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* big point cards */
.pt { background: var(--panel); border: 1px solid var(--stroke); border-radius: 20px;
  padding: clamp(20px,2.6vw,32px); position: relative; overflow: hidden; }
.pt::before { content:''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px; background: var(--acc); box-shadow: 0 0 18px var(--acc); }
.pt .ico { font-size: clamp(34px,3.6vw,52px); margin-bottom: 8px; }
.pt h3 { font-size: clamp(19px,2vw,30px); font-weight: 800; margin-bottom: 8px; }
.pt p { font-size: clamp(14px,1.5vw,21px); line-height: 1.5; color: var(--dim); }
.pt p b { color: var(--text); }
.pt.c-blue { --acc: var(--blue); } .pt.c-green { --acc: var(--green); } .pt.c-amber { --acc: var(--amber); } .pt.c-pink { --acc: var(--pink); }

/* note banner */
.note { margin-top: clamp(16px,2.4vh,28px); display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, rgba(255,194,71,.12), rgba(255,194,71,.04));
  border: 1px solid rgba(255,194,71,.35); border-left: 5px solid var(--amber); border-radius: 16px;
  padding: clamp(14px,1.8vw,22px) clamp(16px,2vw,26px); font-size: clamp(14px,1.5vw,21px); line-height: 1.5; }
.note .ico { font-size: clamp(24px,2.6vw,38px); flex: 0 0 auto; }
.note b { color: var(--amber); }
.note.warn { border-color: rgba(255,111,156,.4); border-left-color: var(--pink); background: linear-gradient(135deg, rgba(255,111,156,.12), rgba(255,111,156,.03)); }
.note.warn b { color: var(--pink); }

/* work-area board */
.board { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.8vw,24px); }
.area { border: 1px solid var(--stroke); border-radius: 20px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.area .hd { padding: clamp(14px,1.8vw,22px); border-bottom: 1px solid var(--stroke); }
.area .hd .e { font-size: clamp(30px,3.4vw,46px); }
.area .hd h3 { font-size: clamp(18px,2vw,28px); font-weight: 800; margin-top: 4px; }
.area .hd small { font-size: clamp(11px,1.2vw,15px); color: var(--dim); }
.area.a1 { --acc: var(--blue); } .area.a2 { --acc: var(--green); } .area.a3 { --acc: var(--amber); }
.area.a1 .hd, .area.a2 .hd, .area.a3 .hd { box-shadow: inset 0 3px 0 var(--acc); }
.area ul { list-style: none; padding: clamp(12px,1.6vw,20px); flex: 1; display: grid; gap: 6px; align-content: start; }
.area li { position: relative; padding-left: 22px; font-size: clamp(13px,1.4vw,19px); line-height: 1.4; color: var(--dim); }
.area li::before { content: '▸'; position: absolute; left: 2px; color: var(--acc); }

/* tool tiles (compact, for fullscreen) */
.tiles { display: grid; gap: clamp(12px,1.5vw,20px); }
.t4 { grid-template-columns: repeat(4,1fr); } .t3 { grid-template-columns: repeat(3,1fr); }
.tile { background: var(--panel); border: 1px solid var(--stroke); border-radius: 18px;
  padding: clamp(16px,1.9vw,26px); display: flex; flex-direction: column; gap: 6px;
  border-top: 4px solid var(--acc); transition: transform .15s ease, background .15s ease; position: relative; }
.tile:hover { transform: translateY(-5px); background: var(--panel2); }
.tile.b { --acc: var(--blue); } .tile.g { --acc: var(--green); } .tile.a { --acc: var(--amber); }
.tile .chip { align-self: flex-start; font-size: clamp(9.5px,1vw,12px); font-weight: 800; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--stroke); }
.tile .chip.star { background: var(--amber); color: #1a1300; border-color: var(--amber); }
.tile h3 { font-size: clamp(17px,1.8vw,26px); font-weight: 800; }
.tile .tline { font-size: clamp(12.5px,1.3vw,17px); color: var(--dim); flex: 1; line-height: 1.4; }
.open { align-self: flex-start; margin-top: 4px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; font-weight: 800; font-size: clamp(12px,1.2vw,15px);
  background: var(--amber); color: #1a1300; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease; }
.open:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--glow); }

/* takeaway strip */
.takeaway { margin-top: clamp(16px,2.4vh,28px); background: var(--panel); border: 1px solid var(--stroke);
  border-left: 5px solid var(--acc); border-radius: 16px; padding: clamp(14px,1.8vw,22px) clamp(16px,2vw,26px);
  font-size: clamp(13.5px,1.45vw,20px); line-height: 1.5; color: var(--dim); }
.takeaway b { color: var(--text); }

/* live embed */
.embed { border: 1px solid var(--stroke); border-radius: 18px; overflow: hidden; background: var(--bg2); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.embed .ehd { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: clamp(12px,1.5vw,18px) clamp(14px,1.8vw,22px); background: linear-gradient(135deg, rgba(255,194,71,.16), rgba(255,194,71,.05)); border-bottom: 1px solid var(--stroke); }
.embed .ehd h3 { font-size: clamp(15px,1.7vw,24px); font-weight: 800; }
.embed .ehd p { font-size: clamp(11px,1.1vw,14px); color: var(--dim); margin-top: 2px; }
.embed .ehd b { color: var(--amber); }
.embed .frame { width: 100%; height: clamp(300px, 48vh, 680px); background: #000; }
.embed .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed .src { padding: 10px 18px; font-size: clamp(10.5px,1.1vw,13px); color: var(--dim); text-align: center; border-top: 1px solid var(--stroke); }
.embed .src a { color: var(--amber); font-weight: 700; text-decoration: none; }

/* journey — horizontal road stepper */
.journey { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(10px,1.3vw,18px); position: relative; }
.journey::before { content: ''; position: absolute; left: 4%; right: 4%; top: 26px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 16px, transparent 16px 30px); opacity: .55; }
.stop { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stop .dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; background: var(--bg2); border: 3px solid var(--amber); box-shadow: 0 0 18px var(--glow); position: relative; z-index: 1; }
.stop .km { font-weight: 800; font-size: clamp(14px,1.5vw,20px); color: var(--amber); }
.stop h4 { font-size: clamp(13.5px,1.4vw,19px); font-weight: 800; }
.stop p { font-size: clamp(11.5px,1.2vw,15px); color: var(--dim); line-height: 1.4; }

/* 30-60-90 */
.phases { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(12px,1.6vw,22px); }
.ph { background: var(--panel); border: 1px solid var(--stroke); border-radius: 18px; padding: clamp(16px,2vw,28px); border-top: 4px solid var(--acc); }
.ph.p1 { --acc: var(--green); } .ph.p2 { --acc: var(--amber); } .ph.p3 { --acc: var(--blue); }
.ph .badge { display: inline-block; font-size: clamp(11px,1.2vw,15px); font-weight: 800; padding: 4px 13px;
  border-radius: 999px; background: var(--acc); color: #1a1300; margin-bottom: 8px; }
.ph h4 { font-size: clamp(17px,1.9vw,26px); font-weight: 800; margin-bottom: 8px; }
.ph ul { list-style: none; display: grid; gap: 5px; }
.ph li { position: relative; padding-left: 22px; font-size: clamp(13px,1.4vw,19px); line-height: 1.4; color: var(--dim); }
.ph li::before { content: '✓'; position: absolute; left: 2px; color: var(--green); font-weight: 800; }

/* do / don't */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,1.8vw,24px); }
.vcol { border: 1px solid var(--stroke); border-radius: 18px; padding: clamp(16px,2vw,28px); background: var(--panel); }
.vcol.good { border-top: 4px solid var(--green); }
.vcol.bad { border-top: 4px solid var(--pink); }
.vcol h3 { font-size: clamp(17px,1.8vw,26px); font-weight: 800; margin-bottom: 12px; }
.vlist { list-style: none; display: grid; gap: 8px; }
.vlist li { position: relative; padding-left: 28px; font-size: clamp(13.5px,1.45vw,20px); line-height: 1.4; color: var(--dim); }
.vlist li::before { position: absolute; left: 2px; font-weight: 800; }
.good .vlist li::before { content: '✓'; color: var(--green); }
.bad .vlist li::before { content: '✕'; color: var(--pink); }
.vlist b { color: var(--text); }

/* closing */
.closing { display: grid; gap: clamp(12px,1.7vh,20px); }
.quote { background: var(--panel); border: 1px solid var(--stroke); border-left: 8px solid var(--amber);
  border-radius: 18px; padding: clamp(16px,2.1vw,30px); font-size: clamp(16px,2vw,30px); font-weight: 600; line-height: 1.38; }
.quote b { color: var(--amber); text-shadow: 0 0 24px var(--glow); }
.recos { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(8px,1vw,14px); }
.reco { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: clamp(10px,1.2vw,15px); position: relative; }
.reco .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #1a1300; font-weight: 800; margin-bottom: 6px; }
.reco p { font-size: clamp(12px,1.25vw,16px); line-height: 1.4; color: var(--dim); }
.reco p b { color: var(--text); }
.finish { text-align: center; background: linear-gradient(135deg, rgba(255,194,71,.16), rgba(90,169,255,.08));
  border: 1px solid rgba(255,194,71,.4); border-radius: 20px; padding: clamp(16px,2.2vh,30px); }
.finish .flag { font-size: clamp(30px,3.4vw,48px); }
.finish h3 { font-size: clamp(19px,2.3vw,34px); font-weight: 800; margin: 2px 0 8px; }
.finish p { font-size: clamp(14px,1.6vw,23px); color: var(--dim); line-height: 1.5; max-width: 64ch; margin: 0 auto; }
.finish p b { color: var(--text); }
.finish .thanks { margin-top: 14px; font-size: clamp(16px,1.8vw,24px); font-weight: 800; color: var(--amber); letter-spacing: 1px; }

/* ---------- bottom controls ---------- */
.controls { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; gap: 12px; align-items: center; padding: 8px 14px;
  background: rgba(8,8,11,.72); backdrop-filter: blur(14px); border: 1px solid var(--stroke); border-radius: 999px; box-shadow: 0 12px 36px rgba(0,0,0,.5); }
.ctrl { width: 40px; height: 40px; border: 1px solid var(--stroke); background: rgba(255,255,255,.05); color: var(--amber);
  border-radius: 50%; cursor: pointer; font-size: 22px; font-weight: 800; display: grid; place-items: center; transition: all .15s ease; }
.ctrl:hover { background: var(--amber); color: #1a1300; transform: scale(1.08); }
.ctrl.fs { font-size: 17px; }
.counter { font-weight: 800; font-size: 13px; min-width: 54px; text-align: center; color: var(--text); }
.dots { display: flex; gap: 6px; }
.dot-nav { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: all .2s ease; }
.dot-nav.active { background: var(--amber); transform: scale(1.4); box-shadow: 0 0 10px var(--glow); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .g3, .board, .t4, .t3 { grid-template-columns: repeat(2,1fr); }
  .journey { grid-template-columns: repeat(5,1fr); }
  .recos { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 720px) {
  :root { --topbar-h: auto; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 14px; }
  .topnav { max-width: 100%; justify-content: flex-start; gap: 4px; }
  .stage { padding: 20px 16px 96px; }
  .g3, .board, .t4, .t3, .versus, .phases, .recos { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; gap: 12px; }
  .journey::before { display: none; }
  .stop { flex-direction: row; text-align: left; gap: 12px; }
  .embed .frame { height: 60vh; }
  .zero { font-size: clamp(80px,28vw,150px); }
}

/* =====================================================================
   2-SCREEN SYNC UI (carried over — restyled for dark theme)
   ===================================================================== */
#__sync_badge { position: fixed; bottom: 70px; right: 16px; z-index: 100;
  background: rgba(15,15,20,.94); color: #fff; border: 1px solid var(--stroke);
  border-radius: 14px; padding: 12px 14px; min-width: 198px; max-width: 262px;
  font-family: 'Prompt',sans-serif; font-size: 12.5px; box-shadow: 0 12px 36px rgba(0,0,0,.6); }
#__sync_badge .sb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
#__sync_badge .sb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
#__sync_badge.connected .sb-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
#__sync_badge .sb-mode { font-weight: 800; color: var(--amber); }
#__sync_badge .sb-status { font-size: 11.5px; opacity: .85; margin-left: auto; }
#__sync_badge .sb-room { font-size: 11px; opacity: .8; margin-bottom: 4px; }
#__sync_badge .sb-room b { color: var(--amber); }
#__sync_badge .sb-clients { font-size: 11.5px; opacity: .85; margin-bottom: 8px; }
#__sync_badge .sb-qr-btn { display: block; width: 100%; background: var(--amber); color: #1a1300; border: 0;
  border-radius: 9px; padding: 8px 10px; font-family: inherit; font-weight: 800; font-size: 12px; cursor: pointer; }
#__sync_badge .sb-qr-btn:hover { filter: brightness(1.08); }
#__sync_badge .sb-close { position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 0; border-radius: 50%; color: #fff; font-size: 16px; cursor: pointer; }
#__sync_badge .sb-close:hover { background: var(--pink); }
#__sync_badge_mini { position: fixed; bottom: 70px; right: 16px; z-index: 100; width: 42px; height: 42px;
  display: grid; place-items: center; background: rgba(15,15,20,.94); color: var(--amber);
  border: 1px solid var(--amber); border-radius: 50%; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.5); font-size: 18px; }
#__sync_badge_mini:hover { transform: scale(1.08); }
#__sync_qr_modal { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
#__sync_qr_modal.open { display: flex; }
#__sync_qr_modal .qrm-card { background: #15151b; border: 2px solid var(--amber); border-radius: 20px; padding: 28px; max-width: 360px; width: 100%; text-align: center; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
#__sync_qr_modal .qrm-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: var(--amber); color: #1a1300; border: 0; border-radius: 50%; font-size: 18px; font-weight: 800; cursor: pointer; }
#__sync_qr_modal .qrm-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
#__sync_qr_modal .qrm-qr { display: inline-block; padding: 12px; background: #fff; border-radius: 12px; margin-bottom: 14px; }
#__sync_qr_modal .qrm-url { font-size: 11.5px; color: var(--dim); word-break: break-all; background: rgba(255,255,255,.05); padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; font-family: monospace; }
#__sync_qr_modal .qrm-hint { font-size: 12.5px; margin-bottom: 14px; color: var(--dim); }
#__sync_qr_modal .qrm-hint b { color: var(--amber); font-weight: 800; }
#__sync_qr_modal .qrm-copy { background: var(--amber); color: #1a1300; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; }
#__sync_pointer { position: fixed; width: 34px; height: 34px; margin-left: -17px; margin-top: -17px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,111,156,.95) 0%, rgba(255,111,156,.6) 38%, transparent 70%);
  pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .25s ease; }
#__sync_pointer.active { opacity: 1; }
#__sync_pointer::after { content: ''; position: absolute; inset: 12px; background: #fff; border-radius: 50%; box-shadow: 0 0 14px var(--pink); }
body.pointing { cursor: crosshair; }
body.mode-display .controls { opacity: .55; }
.__sync_highlight { animation: syncflash .85s ease; position: relative; z-index: 5; }
@keyframes syncflash { 0%{ box-shadow: 0 0 0 0 var(--glow);} 40%{ box-shadow: 0 0 0 9px rgba(255,194,71,.4);} 100%{ box-shadow: 0 0 0 0 transparent;} }

@media print { .topbar, .controls, .bgfx, #__sync_badge, #__sync_badge_mini { display: none !important; }
  .slide { position: static !important; display: block !important; page-break-after: always; }
  body { height: auto; overflow: visible; } }
