:root{
  --bg:#0E0D0C; --bg2:#151311; --card:#1A1816; --card2:#24211E; --line:#2E2A26; --line2:#4A443D;
  --ink:#F3EEE6; --ink2:#CFC7BB; --muted:#A39B90;
  --accent:#D9E45E; --stage:#284847; --event:#3D3427; --r19:#C9282D; --sold:#6E665C;
  --f:'Noto Sans KR',system-ui,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  --r:12px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f);line-height:1.6;word-break:keep-all}
a{color:var(--ink)}a:hover{color:var(--accent)}
img{max-width:100%;display:block}
button,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
.wrap{max-width:1200px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
@media (min-width:720px){.wrap{padding-left:32px;padding-right:32px}}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;z-index:99;background:var(--accent);color:#111;padding:8px 12px;border-radius:8px}
.muted{color:var(--muted)}.small{font-size:14px}
.empty{color:var(--muted);padding:32px 0;margin:0}
.eyebrow{margin:0 0 14px;font-family:var(--mono);font-size:13px;letter-spacing:.12em;color:var(--muted)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:10px;font-weight:700;font-size:15px;text-decoration:none;border:1px solid transparent;cursor:pointer;white-space:nowrap;background:none}
.btn-accent{background:var(--accent);color:#111;border-radius:999px}.btn-accent:hover{color:#111;filter:brightness(1.06)}
.btn-light{background:var(--ink);color:#111}.btn-light:hover{color:#111;background:#fff}
.btn-line{border-color:var(--ink);color:var(--ink)}.btn-line:hover{background:var(--ink);color:#111}
.btn-ghost{border-color:var(--line2);color:var(--ink2)}.btn-ghost:hover{border-color:var(--ink);color:var(--ink)}
.btn[aria-disabled=true]{opacity:.45;pointer-events:none}

/* header */
.top{position:sticky;top:0;z-index:20;background:rgba(14,13,12,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:20px;min-height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:900;font-size:19px;letter-spacing:-.02em;flex:0 0 auto}
.brand img{width:34px;height:34px}
.nav{display:flex;gap:24px;font-size:15px;font-weight:500;margin-left:auto}
.nav a{text-decoration:none;color:var(--ink2);white-space:nowrap}.nav a:hover{color:var(--ink)}
@media (max-width:860px){
  .top-in{flex-wrap:wrap;gap:8px 14px;padding-top:10px;padding-bottom:0}
  .nav{order:3;width:100%;margin:0;overflow-x:auto;gap:20px;padding:6px 0 10px;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .book-all{margin-left:auto}
}

/* hero */
.hero{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-end;justify-content:space-between;padding-top:72px;padding-bottom:56px}
.hero-copy{flex:1 1 520px;min-width:0}
.hero h1{margin:0;font-size:clamp(40px,7vw,76px);line-height:1.1;font-weight:900;letter-spacing:-.035em}
.lead{margin:24px 0 0;font-size:18px;color:var(--ink2);max-width:540px}
.next{flex:0 1 360px;width:100%;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:26px;display:flex;flex-direction:column;gap:10px}
.next-label{font-family:var(--mono);font-size:13px;color:var(--accent);letter-spacing:.08em}
.next-time{font-family:var(--mono);font-size:46px;font-weight:600;line-height:1}
.next-title{font-size:22px;font-weight:700;line-height:1.35}
.next-meta{font-size:14px;color:var(--muted)}
.next .btn{margin-top:6px}

/* sections */
.block{padding-top:56px;padding-bottom:72px}
.band{background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sec-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 20px;margin-bottom:24px}
.sec-head h2,.jc-menu h2,.jc-notes h2,.visit h2{margin:0;font-size:clamp(28px,4vw,36px);font-weight:900;letter-spacing:-.02em}
.sec-note{margin:0;font-size:14px;color:var(--muted)}

/* date tabs */
.days{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
.day{flex:0 0 auto;min-width:84px;min-height:72px;border:1px solid var(--line);background:var(--card);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;padding:6px 10px}
.day .dw{font-size:13px;color:var(--muted)}
.day .dd{font-family:var(--mono);font-size:18px;font-weight:600}
.day.sun .dw{color:#E58A7F}
.day.off{opacity:.55}
.day[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:#111}
.day[aria-selected=true] .dw{color:#111;font-weight:700}
.day-hours{margin:16px 0 0;font-size:14px;color:var(--ink2)}
.day-hours b{color:var(--accent);font-weight:700}

/* slots */
.slots{margin-top:14px;border-top:1px solid var(--line)}
.slot{display:grid;grid-template-columns:150px minmax(0,1fr) 120px auto;align-items:center;gap:12px 24px;padding:22px 0;border-bottom:1px solid var(--line)}
.slot.past{opacity:.45}
.s-time{display:flex;flex-direction:column;gap:2px}
.s-time b{font-family:var(--mono);font-size:32px;font-weight:600;line-height:1}
.s-time span{font-family:var(--mono);font-size:13px;color:var(--muted)}
.s-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-width:0}
.s-title strong{font-size:21px;font-weight:700;line-height:1.35}
.s-seat{font-size:15px;color:var(--ink2)}
.s-seat b{color:var(--ink)}
.s-seat.low b{color:var(--accent)}
@media (max-width:720px){
  .slot{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"t n" "s b";padding:18px 0}
  .s-time{grid-area:t}.s-title{grid-area:n}.s-seat{grid-area:s}.slot .btn{grid-area:b;justify-self:end}
  .s-time b{font-size:24px}.s-title strong{font-size:18px}
}

/* badges */
.badge{display:inline-flex;align-items:center;font-size:12px;font-weight:700;line-height:1;padding:5px 8px;border-radius:6px;border:1px solid var(--line2);color:var(--ink2);white-space:nowrap}
.badge.r19{background:var(--r19);border-color:var(--r19);color:#fff}
.badge.stage{background:var(--stage);border-color:var(--stage);color:#E7F0EE}
.badge.event{background:var(--event);border-color:var(--event);color:#F3E9D8}
.badge.goods{background:var(--accent);border-color:var(--accent);color:#111}
.badge.last{background:#3A3631;border-color:#3A3631;color:var(--ink)}

/* film cards */
.grid-films{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:28px 22px}
.film{display:flex;flex-direction:column;gap:10px;min-width:0}
.poster{position:relative;aspect-ratio:600/860;border-radius:10px;overflow:hidden;background:var(--card2)}
.poster img{width:100%;height:100%;object-fit:cover}
.poster .badge{position:absolute;left:10px;top:10px}
.film h3{margin:4px 0 0;font-size:17px;font-weight:700;line-height:1.35}
.film .meta{font-size:13px;color:var(--muted)}
.film .next-show{font-size:13px;color:var(--ink2);font-family:var(--mono)}
.film details{font-size:14px;color:var(--ink2)}
.film summary{cursor:pointer;color:var(--muted);min-height:32px;display:flex;align-items:center}
.film details p{margin:6px 0 0;line-height:1.7;white-space:pre-line}
.film .btn{margin-top:auto}
@media (max-width:520px){.grid-films{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.film h3{font-size:16px}.film .btn{padding:0 10px}}

/* stage */
.grid-stage{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr));gap:20px}
.stage-card{display:flex;gap:20px;background:var(--stage);border-radius:16px;padding:20px;color:#EEF4F2}
.stage-card .poster{flex:0 0 120px;align-self:flex-start}
.stage-card .body{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.stage-card h3{margin:0;font-size:24px;font-weight:900;line-height:1.3}
.stage-card .when{font-family:var(--mono);font-size:14px;color:#CFE0DC}
.stage-card .btn{align-self:flex-start;margin-top:auto}
.stage-card .card-label{align-self:flex-start;background:#1C3332;border-color:#1C3332;color:#E7F0EE}
.event-card{background:var(--event);color:#F5EEE2}
.event-card .when{color:#E2D5BF}
.event-card .card-label{background:#2A2319;border-color:#2A2319;color:#F3E9D8}
.stage-empty{background:var(--card);border:1px dashed var(--line2);border-radius:16px;padding:28px;color:var(--ink2)}

/* goods */
.grid-goods{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px}
.goods-card{display:flex;gap:16px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px}
.goods-card .gimg{flex:0 0 140px;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:var(--card2)}
.goods-card .gimg img{width:100%;height:100%;object-fit:cover}
.goods-card .body{display:flex;flex-direction:column;gap:6px;min-width:0}
.goods-card h3{margin:0;font-size:18px;font-weight:700}
.goods-card .item{font-size:16px;color:var(--accent);font-weight:700}
.goods-card .period{font-family:var(--mono);font-size:13px;color:var(--muted)}
.goods-empty{color:var(--ink2);background:var(--card);border:1px dashed var(--line2);border-radius:16px;padding:28px;margin:0}

/* jucheck */
.jucheck{background:#000;border-top:1px solid var(--line)}
.jc-head{display:flex;flex-wrap:wrap;align-items:center;gap:24px 48px;margin-bottom:48px}
.jc-head img{width:min(100%,460px);height:auto}
.jc-head>div{flex:1 1 300px}
.jc-lead{margin:0;font-size:18px;color:var(--ink2);max-width:460px}
.jc-links{margin:12px 0 0}
.jc-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:56px}
.menu-tabs{display:flex;gap:6px;overflow-x:auto;margin:20px 0 8px;padding-bottom:4px}
.menu-tab{flex:0 0 auto;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);background:none;color:var(--ink2);cursor:pointer;font-size:14px;font-weight:500}
.menu-tab[aria-selected=true]{background:var(--ink);border-color:var(--ink);color:#111;font-weight:700}
.menu-sub{margin:0 0 4px;font-family:var(--mono);font-size:12px;letter-spacing:.1em;color:var(--muted)}
.menu-group{margin:22px 0 4px;font-size:14px;color:var(--accent);font-weight:700}
.mi{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #222}
.mi .n{font-size:16px}
.mi .d{display:block;font-size:13px;color:var(--muted)}
.mi .p{font-family:var(--mono);font-size:15px;white-space:nowrap}
.note-form{display:flex;flex-direction:column;gap:10px;margin-top:20px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px}
.note-form label{font-size:13px;font-weight:700;color:var(--ink2)}
.note-form textarea,.note-form input{width:100%;background:#0B0A09;border:1px solid var(--line2);border-radius:10px;padding:12px;font-size:16px;color:var(--ink)}
.note-form textarea{resize:vertical;min-height:96px}
.note-row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.note-row .field{flex:1 1 150px;display:flex;flex-direction:column;gap:6px}
.note-row input{min-height:44px}
.form-msg{margin:0;font-size:14px;min-height:1em;color:var(--accent)}
.form-msg.err{color:#F28B82}
.fine{margin:0;font-size:12px;color:var(--muted)}
.notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-top:16px}
.note{background:#F3EEE6;color:#1B1917;border-radius:4px;padding:16px 16px 12px;display:flex;flex-direction:column;gap:10px;box-shadow:0 1px 0 rgba(255,255,255,.04)}
.note:nth-child(3n+2){background:#E9E2D4}.note:nth-child(3n){background:#D9E45E}
.note p{margin:0;font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.note .who{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#4A443D}
.note .acts{display:flex;gap:4px}
.note .acts button{background:none;border:0;color:#4A443D;font-size:12px;cursor:pointer;min-height:32px;padding:0 6px;text-decoration:underline}
.note .del{display:flex;gap:6px}
.note .del input{flex:1;min-width:0;min-height:36px;border:1px solid #9D9488;border-radius:6px;padding:0 8px;background:#fff;color:#111;font-size:14px}
.note .del button{min-height:36px;padding:0 10px;border-radius:6px;border:0;background:#1B1917;color:#fff;font-size:13px;cursor:pointer}
.more{margin-top:14px}

/* visit */
.visit{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:40px}
.visit h3{margin:6px 0 14px;font-size:18px}
.addr{font-size:18px;font-weight:700;margin:18px 0 4px}
.visit-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.hours{display:grid;grid-template-columns:auto 1fr;gap:6px 20px;margin:0 0 10px}
.hours dt{color:var(--muted)}.hours dd{margin:0;font-family:var(--mono)}
.contact{line-height:2;margin:0 0 8px}
.foot{border-top:1px solid var(--line);padding:28px 0 calc(28px + env(safe-area-inset-bottom))}
.foot-in{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:#111;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:700;opacity:0;pointer-events:none;transition:.2s}
.toast.show{opacity:1;transform:translateX(-50%)}
.goods-card a.gimg{display:block}

/* 굿즈 이미지는 자르지 않고 원본 비율 그대로 */
.goods-card .gimg{aspect-ratio:auto;align-self:flex-start;background:none}
.goods-card .gimg img{height:auto;object-fit:contain}

/* studio (작업실) */
.studio-intro{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between;margin-bottom:22px}
.studio-intro p{margin:0;flex:1 1 420px;color:var(--ink2);font-size:16px;line-height:1.75}
.studio-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:16px}
.studio-card{display:flex;flex-direction:column;gap:8px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;text-decoration:none;color:var(--ink)}
.studio-card:hover{border-color:var(--line2);color:var(--ink)}
.studio-card h3{margin:0;font-size:17px;line-height:1.4}
.studio-card .meta{margin:0;font-size:13px;color:var(--muted)}
.studio-card .ex{margin:0;font-size:14px;color:var(--ink2);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.studio-tag{align-self:flex-start;font-size:12px;font-weight:700;padding:4px 8px;border-radius:6px;background:#2A2724;color:var(--ink)}
.studio-tag.g-play{background:var(--stage);color:#E7F0EE}.studio-tag.g-comic{background:var(--event);color:#F3E9D8}
.studio-made{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;background:var(--accent);color:#111;border-radius:14px;padding:18px 20px;text-decoration:none}
.studio-made:hover{color:#111}
.studio-made b{font-size:16px}.studio-made span{font-size:13px}
.studio-empty{grid-column:1/-1;background:var(--card);border:1px dashed var(--line2);border-radius:14px;padding:24px;color:var(--ink2)}
