:root{--bg:#EBF1F2;--accent:#1e88a8;--muted:#103b45;--light:#fff}
*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:'Kalam','Patrick Hand',system-ui, sans-serif;background:var(--bg);color:var(--muted)}
.site-header{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border-bottom:1px solid rgba(0,0,0,0.06);position:sticky;top:0;background:rgba(255,255,255,0.6);z-index:60}
.brand h1{margin:0;font-size:18px} .tag{font-size:12px;color:#23575f;margin:0}
.hero{padding:14px;background:linear-gradient(90deg, rgba(154,199,217,0.06), rgba(235,241,242,0.06))}
.hero-inner{display:flex;align-items:center;max-width:1200px;margin:0 auto;gap:12px}
.hero-left{flex:0 0 220px}
.hero-right{flex:1}
.punch{font-weight:700;font-size:20px;margin:0;color:#07303a;font-family:'Patrick Hand',cursive}
.hero-sub{margin-top:6px;color:#23575f}
.container{max-width:1400px;margin:18px auto;padding:0 12px;display:flex;gap:12px;align-items:flex-start}
.left-panel{width:320px;flex:0 0 auto;position:relative}
.controls{background:linear-gradient(180deg,var(--light),#f7fcfd);padding:12px;border-radius:12px;box-shadow:0 8px 24px rgba(2,12,20,0.06)}
.controls label{display:block;margin:8px 0;font-size:13px}
.controls input,.controls select{width:100%;padding:8px;border-radius:8px;border:1px solid rgba(0,0,0,0.06)}
.vp-buttons{display:flex;gap:8px}
.vp-btn{padding:8px 10px;border-radius:8px;border:none;background:rgba(30,136,168,0.08);cursor:pointer}
.vp-btn.active{background:var(--accent);color:white}
.btn{padding:8px 12px;border-radius:10px;border:none;background:var(--accent);color:white;cursor:pointer;text-decoration:none}
.btn.danger{background:#ff6b6b}
.board-wrap{flex:1;position:relative;display:flex;align-items:flex-start;justify-content:center}
.board{width:3600px;height:1600px;overflow:auto;padding:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#f7fdff);border-radius:12px}
.boardInner{width:3200px;height:1400px;position:relative;display:flex;align-items:center;justify-content:center}
.boardInner::before{content:'';position:absolute;left:120px;top:0;bottom:0;width:120px}
.boardInner::after{content:'';position:absolute;right:120px;top:0;bottom:0;width:120px}
#drawCanvas{width:1320px;height:960px;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,0.04);position:relative;z-index:1;border:3px dashed rgba(15,63,80,0.12)}
.overlay{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:2}
#cornerMascot{position:fixed;right:18px;bottom:18px;width:110px;z-index:70;opacity:0.95;filter:drop-shadow(0 6px 18px rgba(0,0,0,0.08))}
.thank-wrap{display:none;position:fixed;inset:0;align-items:center;justify-content:center;background:rgba(6,12,14,0.08);z-index:200}
.thank-box{background:rgba(255,255,255,0.98);padding:26px;border-radius:12px;box-shadow:0 12px 40px rgba(2,12,20,0.12);width:92%;max-width:720px;text-align:center}
.loader-ring{width:72px;height:72px;border-radius:50%;border:8px solid rgba(0,0,0,0.06);border-top-color:var(--accent);margin:8px auto;animation:spin 1s linear infinite}
.link-box{display:flex;gap:12px;justify-content:center;margin-top:12px}
.box-btn{padding:10px 14px;border-radius:12px;background:#fff;border:2px solid rgba(15,63,80,0.08);text-decoration:none;color:var(--muted)}
.hidden{display:none}
.small{font-size:12px;color:rgba(15,48,54,0.7)}
@keyframes spin{to{transform:rotate(360deg)}}


/* ===== FOOTER ===== */
.site-footer{
  width:100%;
  border-top:1px solid #d8e2e7;
  background:#f6f9fb;
  margin-top:40px;
}
.footer-inner{
  max-width:1100px;
  margin:auto;
  padding:18px 16px;
  font-size:13px;
  line-height:1.6;
  color:#4b5b66;
}


/* ===== TOP BAR ENHANCEMENT ===== */
.top-bar{
  width:100%;
  padding:14px 20px;
}
