:root{
  --navy:#071D45;
  --navy2:#0a2a61;
  --blue:#2450a4;
  --yellow:#FFC20A;
  --green:#63B32E;
  --white:#fff;
  --ink:#0a1733;
  --muted:#647089;
  --surface:#f4f6fa;
  --line:#dce2ec;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:linear-gradient(180deg,var(--navy) 0 500px,var(--surface) 500px);color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,label,.canvas-wrap{-webkit-tap-highlight-color:transparent}
.site-header{max-width:1220px;margin:auto;padding:26px 30px 4px}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{width:126px;height:108px;object-fit:contain;object-position:left center}
.profile-pill{color:#fff;border:1px solid rgba(255,255,255,.32);padding:10px 14px;border-radius:999px;font-size:13px;font-weight:800}
.page-shell{max-width:1220px;margin:auto;padding:4px 30px 64px}
.intro{max-width:830px;color:#fff;padding:24px 0 32px}
.eyebrow{display:inline-block;color:var(--yellow);font-weight:950;letter-spacing:.18em;font-size:14px;margin-bottom:12px}
.intro h1{font-size:clamp(40px,5.4vw,72px);line-height:.98;margin:0;letter-spacing:-.045em;font-weight:950}
.intro h1 strong{color:var(--yellow)}
.intro p{max-width:720px;font-size:18px;line-height:1.55;color:#dce6f8;margin:20px 0 0}
.maker{background:#fff;border-radius:28px;padding:30px;box-shadow:0 24px 68px rgba(4,20,50,.20);display:grid;grid-template-columns:minmax(0,1.14fr) minmax(330px,.64fr);gap:36px;align-items:start}
.canvas-column{min-width:0}
.canvas-wrap{position:relative;width:100%;max-width:690px;aspect-ratio:1/1;margin:auto;background:#dde3ed;overflow:hidden;border-radius:18px;box-shadow:inset 0 0 0 1px rgba(7,29,69,.08);touch-action:none;user-select:none;isolation:isolate;outline:none}
.canvas-wrap:focus-visible{box-shadow:0 0 0 4px rgba(36,80,164,.24)}
canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
canvas:active{cursor:grabbing}
.profile-guide{position:absolute;z-index:3;inset:2.7%;border:2px dashed rgba(255,255,255,.78);border-radius:50%;pointer-events:none;box-shadow:0 0 0 999px rgba(7,29,69,.10), inset 0 0 0 2px rgba(7,29,69,.18)}
.empty-tip{position:absolute;z-index:4;left:50%;top:47%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;pointer-events:none;color:#6f7a8d;padding:24px;width:min(74%,430px)}
.empty-tip strong{font-size:23px;color:#4e596d}
.empty-tip>span:last-child{font-size:14px}
.empty-tip.is-hidden{display:none}
.empty-icon{font-size:44px;line-height:1;color:#7e8a9e}
.safe-notes{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:690px;margin:12px auto 0}
.safe-notes span{border:1px solid var(--line);border-radius:10px;padding:11px 12px;color:#526078;font-size:12px;line-height:1.35;background:#fbfcfe}
.safe-notes b{color:var(--blue);margin-right:5px}
.gesture-tip{text-align:center;color:#7a8495;font-size:12px;margin:12px 0 0}
.controls{padding:5px 2px 4px 0;display:flex;flex-direction:column;gap:14px;position:sticky;top:18px}
.primary-btn,.secondary-btn,.share-btn{width:100%;border:0;border-radius:12px;padding:17px 18px;font-size:14px;font-weight:950;text-transform:uppercase;letter-spacing:.015em;cursor:pointer;transition:transform .15s ease,opacity .15s ease,box-shadow .15s ease;text-align:center;display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px}
.primary-btn{background:var(--yellow);color:var(--navy);box-shadow:0 8px 24px rgba(255,194,10,.25)}
.secondary-btn{background:var(--navy);color:#fff;box-shadow:0 9px 22px rgba(7,29,69,.18)}
.share-btn{background:#fff;color:var(--navy);border:2px solid var(--navy)}
.primary-btn:hover,.secondary-btn:hover,.share-btn:hover{transform:translateY(-1px)}
button:disabled{opacity:.36;cursor:not-allowed;transform:none!important;box-shadow:none}
.file-help{font-size:11px;text-align:center;color:#7b879b;margin:-7px 0 2px}
.zoom-box{border:1px solid #e1e6ee;border-radius:14px;padding:16px;background:#fafbfc}
.zoom-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;font-weight:850;color:var(--navy)}
.text-btn{border:0;background:none;color:#2450a4;font-weight:850;cursor:pointer;padding:3px 0}
.zoom-row{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:10px}
.zoom-step{height:34px;width:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);font-size:22px;line-height:1;cursor:pointer;font-weight:800}
.zoom-step:disabled{opacity:.35}
input[type=range]{width:100%;accent-color:var(--blue)}
.tip-box{display:flex;gap:12px;align-items:flex-start;background:#edf4ff;border-radius:12px;padding:14px;color:#2d5fb7}
.tip-box p{margin:0;font-size:13px;line-height:1.5}
.tip-circle{font-size:27px;line-height:1}
.privacy{font-size:11px;line-height:1.5;color:var(--muted);margin:2px 0 0;text-align:center}
.page-tip{text-align:center;color:#2450a4;font-size:14px;margin:34px 0 0}
footer{background:var(--navy);color:#fff;padding:30px max(20px,calc((100vw - 1160px)/2));display:flex;align-items:center;gap:24px}
footer img{width:86px;height:72px;object-fit:contain}
footer div{display:flex;flex-direction:column;gap:4px;border-left:1px solid rgba(255,255,255,.2);padding-left:24px;font-size:13px}
footer span{color:#cbd7ec}
@media (max-width:900px){
  body{background:linear-gradient(180deg,var(--navy) 0 445px,var(--surface) 445px)}
  .site-header{padding:18px 20px 0}.brand{width:108px;height:92px}.profile-pill{font-size:11px;padding:8px 11px}
  .page-shell{padding:0 16px 48px}.intro{padding:14px 4px 26px}.intro p{font-size:16px;max-width:590px}
  .maker{grid-template-columns:1fr;padding:18px;border-radius:22px;gap:24px}.controls{position:static;padding:0 3px 4px;gap:12px}
}
@media (max-width:560px){
  body{background:linear-gradient(180deg,var(--navy) 0 410px,var(--surface) 410px)}
  .site-header{padding:10px 14px 0}.header-inner{align-items:flex-start}.brand{width:96px;height:84px}.profile-pill{margin-top:12px;max-width:150px;text-align:center;font-size:10px;line-height:1.25}
  .page-shell{padding:0 10px 38px}.intro{padding:10px 8px 24px}.eyebrow{font-size:12px}.intro h1{font-size:40px}.intro p{font-size:14px;margin-top:15px}
  .maker{padding:10px;border-radius:18px;gap:19px}.canvas-wrap{border-radius:14px}.empty-tip strong{font-size:18px}.empty-tip>span:last-child{font-size:12px}.empty-icon{font-size:36px}
  .safe-notes{grid-template-columns:1fr;gap:7px;margin-top:8px}.safe-notes span{padding:9px 10px;font-size:11px}.gesture-tip{font-size:10px;margin:9px 0 0}
  .primary-btn,.secondary-btn,.share-btn{padding:15px 12px;font-size:12px;min-height:50px}.zoom-box{padding:14px}.tip-box{padding:12px}.tip-box p{font-size:12px}.page-tip{font-size:12px;padding:0 16px;margin-top:26px;line-height:1.45}
  footer{padding:24px 18px;gap:16px}footer img{width:72px;height:60px}footer div{font-size:11px;padding-left:16px}
}
@media (max-width:370px){.intro h1{font-size:35px}.profile-pill{display:none}.maker{padding:8px}.safe-notes{display:none}}
