:root{
  --bg-page:#FFFFFF;
  --bg-section:#F8FAFC;
  --text-primary:#0F172A;
  --text-muted:#64748B;
  --brand-navy:#0B4171;
  --brand-amber:#F59E0B;
  --border:#E2E8F0;
  --shadow:0 4px 24px rgba(11,65,113,.08);
  --btn-shadow:0 4px 0 rgba(18,52,88,.22);
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:"Pretendard Variable",Pretendard,"Apple SD Gothic Neo",sans-serif;
  background:var(--bg-page);color:var(--text-primary);
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{display:block;max-width:100%}
:focus-visible{outline:2px solid var(--brand-navy);outline-offset:2px;border-radius:6px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav-in{max-width:72rem;margin:0 auto;display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.65rem;margin-right:.5rem}
.brand img{width:40px;height:40px;border-radius:12px;object-fit:cover;border:2px solid var(--border)}
.brand b{font-size:1.05rem;color:var(--brand-navy)}
.brand small{display:block;font-size:.68rem;color:var(--text-muted);font-weight:500}
.nav-tabs{display:flex;gap:.35rem;flex-wrap:wrap}
.nav-tab{
  font-size:.94rem;font-weight:700;padding:.65rem 1.1rem;border-radius:12px;
  color:var(--text-muted);transition:.15s;
}
.nav-tab.on,.nav-tab:hover{background:#EEF4FA;color:var(--brand-navy)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:48px;padding:0 1.35rem;border-radius:14px;
  font-size:1rem;font-weight:800;transition:transform .15s,box-shadow .15s;
}
.btn:active{transform:translateY(2px)}
.btn-primary{background:linear-gradient(145deg,#123458,#2E6DA8);color:#fff;box-shadow:var(--btn-shadow)}
.btn-primary:hover{transform:translateY(-1px)}
.btn-accent{background:linear-gradient(145deg,#FCD34D,#F59E0B);color:#78350F;box-shadow:0 4px 0 #B45309}
.btn-ghost{background:#fff;color:var(--brand-navy);border:2px solid var(--border);min-height:44px;font-size:.94rem}
.btn-sm{min-height:44px;padding:0 1rem;font-size:.88rem}
.btn-block{width:100%}

.wrap{max-width:72rem;margin:0 auto;padding:0 1rem}
.section{padding:4rem 0}
.section-alt{background:var(--bg-section)}
.section-head{margin-bottom:1.5rem}
.section-head h2{font-size:1.45rem;font-weight:800;color:var(--brand-navy);letter-spacing:-.02em}
.section-head p{font-size:.9rem;color:var(--text-muted);margin-top:.35rem}

.hero-wrap{
  position:relative;border-radius:24px;overflow:hidden;
  box-shadow:var(--shadow);border:1px solid var(--border);
  min-height:min(52vw,420px);max-height:480px;
}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.hero-overlay{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;
  padding:clamp(1.25rem,4vw,2.5rem);
  background:linear-gradient(180deg,transparent 25%,rgba(8,18,32,.72) 100%);
}
.hero-kicker{font-size:.72rem;font-weight:800;letter-spacing:.18em;color:#FDE68A;margin-bottom:.5rem}
.hero-title{font-size:clamp(1.35rem,3.8vw,2.15rem);font-weight:900;color:#fff;line-height:1.35;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.hero-title em{font-style:normal;color:#FCD34D}
.hero-cta{display:flex;gap:.75rem;margin-top:1.25rem;flex-wrap:wrap}

.ticker-bar{
  margin-top:1rem;border-radius:999px;background:#fff;border:1px solid var(--border);
  overflow:hidden;padding:.55rem 0;box-shadow:var(--shadow);
}
.ticker-track{display:flex;gap:2.5rem;white-space:nowrap;width:max-content;animation:ticker 24s linear infinite}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

.search{
  width:100%;max-width:20rem;margin-top:1rem;
  min-height:48px;padding:0 1rem;border-radius:14px;border:2px solid var(--border);
  font-size:.94rem;background:#fff;
}
.search:focus{border-color:var(--brand-navy);outline:none;box-shadow:0 0 0 3px rgba(11,65,113,.12)}

.alley-map{
  display:flex;gap:.85rem;overflow-x:auto;padding:1rem;margin-top:1.25rem;
  background:#fff;border-radius:18px;border:1px solid var(--border);box-shadow:var(--shadow);
}
.alley-pin{
  flex:none;display:flex;flex-direction:column;align-items:center;gap:.35rem;
  padding:.5rem .65rem;border-radius:14px;border:2px solid transparent;cursor:pointer;
  transition:.15s;background:transparent;
}
.alley-pin:hover,.alley-pin.on{border-color:var(--brand-navy);background:#EEF4FA}
.alley-pin img{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid var(--border)}
.alley-pin span{font-size:.72rem;font-weight:700;color:var(--brand-navy)}

.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;margin-top:1.25rem}
.shop-card{
  background:#fff;border-radius:18px;border:1px solid var(--border);
  padding:1rem;box-shadow:var(--shadow);transition:transform .15s;
}
.shop-card:hover{transform:translateY(-4px)}
.shop-card-top{display:flex;gap:.85rem}
.shop-cover{width:5.5rem;aspect-ratio:2/3;border-radius:10px;object-fit:cover;border:1px solid var(--border);flex:none}
.shop-card h3{font-size:1rem;font-weight:800;line-height:1.35}
.shop-author{font-size:.78rem;font-weight:700;color:var(--brand-amber);margin-top:.15rem}
.shop-note{font-size:.82rem;color:var(--text-muted);margin-top:.45rem;word-break:keep-all}
.tags{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.5rem}
.tag{font-size:.72rem;font-weight:700;background:#FEF3C7;color:#92400E;border-radius:999px;padding:.2rem .55rem}
.shop-foot{display:flex;align-items:center;gap:.5rem;margin-top:.85rem;padding-top:.75rem;border-top:1px dashed var(--border);font-size:.78rem;color:var(--text-muted)}

.steps{display:grid;gap:1rem}
.step-card{
  background:#fff;border-radius:18px;border:1px solid var(--border);
  padding:1.25rem 1.25rem 1.25rem 4.5rem;position:relative;box-shadow:var(--shadow);
}
.step-icon{
  position:absolute;left:1rem;top:1rem;width:2.5rem;height:2.5rem;border-radius:12px;
  display:grid;place-items:center;font-size:1.15rem;background:#FEF3C7;border:2px solid #F59E0B;
}
.step-no{font-size:.68rem;font-weight:800;color:#F59E0B}
.step-card h3{font-size:1.05rem;font-weight:800;margin-top:.15rem}
.step-card p{font-size:.85rem;color:var(--text-muted);margin-top:.35rem}

.editor-demo{
  background:#0F172A;color:#E2E8F0;border-radius:18px;padding:1.25rem;
  border:1px solid #334155;min-height:220px;box-shadow:var(--shadow);
}
.editor-demo .mono{font-size:.72rem;color:#94A3B8;font-family:Consolas,monospace;margin-bottom:.5rem}
.editor-demo .line{font-size:.95rem;line-height:1.75;color:#FDE68A;min-height:4.5rem}
.editor-chips{display:flex;gap:.45rem;margin-top:1rem;flex-wrap:wrap}
.editor-chips span{font-size:.72rem;background:#334155;border-radius:999px;padding:.25rem .65rem}

.title-box{
  margin-top:2rem;padding:1.5rem;border-radius:18px;text-align:center;
  background:linear-gradient(145deg,#FFFBEB,#FEF3C7);border:1px solid #FDE68A;
}
.title-box h3{font-size:1.05rem;font-weight:800;color:#78350F}
.title-box p{font-size:.82rem;color:#92400E;margin-top:.35rem}
.title-row{display:flex;gap:.5rem;justify-content:center;margin-top:1rem;flex-wrap:wrap}
.title-results{display:flex;gap:.65rem;justify-content:center;margin-top:1rem;flex-wrap:wrap}
.title-chip{
  background:#fff;border:2px solid var(--border);border-radius:14px;padding:.75rem 1rem;
  font-size:.88rem;font-weight:700;transition:transform .15s;
}
.title-chip:hover{transform:translateY(-2px);border-color:var(--brand-navy)}

.plaza-feed{margin-top:1.25rem;display:grid;gap:.75rem}
.plaza-item{
  display:flex;gap:.85rem;align-items:center;background:#fff;border:1px solid var(--border);
  border-radius:14px;padding:.85rem;box-shadow:var(--shadow);
}
.plaza-item img{width:3rem;aspect-ratio:2/3;object-fit:cover;border-radius:6px}

.cheer-box{background:#fff;border-radius:18px;border:1px solid var(--border);padding:1.25rem;box-shadow:var(--shadow)}
.cheer-row{display:flex;gap:.5rem}
.cheer-row input{
  flex:1;min-height:48px;border-radius:14px;border:2px solid var(--border);
  padding:0 1rem;font-size:.94rem;
}
.cheer-list{margin-top:1rem;display:grid;gap:.55rem}
.cheer-item{
  display:flex;gap:.65rem;align-items:flex-start;padding:.75rem 1rem;
  background:var(--bg-section);border-radius:12px;border:1px solid var(--border);
}
.cheer-item img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.cheer-item p{font-size:.88rem;color:var(--text-muted)}
.cheer-item b{color:var(--brand-navy)}

.modal-back{
  position:fixed;inset:0;z-index:100;display:none;place-items:center;
  background:rgba(15,23,42,.45);padding:1rem;
}
.modal-back.open{display:grid}
.modal{
  background:#fff;border-radius:20px;max-width:420px;width:100%;
  padding:1.5rem;box-shadow:0 24px 48px rgba(0,0,0,.18);
}
.modal-head{display:flex;gap:1rem;align-items:center}
.modal-head img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid var(--border)}
.modal-cover{width:5rem;aspect-ratio:2/3;border-radius:10px;object-fit:cover;border:1px solid var(--border)}
.modal-actions{display:flex;gap:.5rem;margin-top:1.25rem;flex-wrap:wrap}

.bgm{
  position:fixed;bottom:1rem;left:1rem;z-index:40;
  display:flex;align-items:center;gap:.65rem;padding:.65rem 1rem;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);
}
.bgm-play{
  width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#F59E0B,#D97706);
  color:#fff;font-weight:800;font-size:.85rem;
}
.bgm-meta{font-size:.72rem;font-weight:700;color:var(--brand-navy)}
.bgm-time{font-size:.68rem;color:var(--text-muted)}
.bgm-dot{width:8px;height:8px;border-radius:50%;background:#FCD34D}
.bgm-dot.on{background:#10B981;animation:pulse 1s infinite alternate}
@keyframes pulse{from{opacity:.4}to{opacity:1}}

.footer{border-top:1px solid var(--border);padding:2rem 1rem;text-align:center;font-size:.78rem;color:var(--text-muted)}
.reveal{opacity:0;transform:translateY(24px);transition:.65s ease}
.reveal.on{opacity:1;transform:none}

@media(max-width:640px){
  .nav-tabs{order:3;width:100%;justify-content:space-between}
  .nav .btn-primary{margin-left:auto}
  .hero-wrap{min-height:280px}
}
