/* COCODIO — 대표 홈페이지
   색: 영상의 따뜻한 갈색 톤을 해치지 않도록 UI는 따뜻한 무채색(색상각 80, 채도 0.006~0.012)만 쓴다.
   버튼: 반투명 검정 유리 + 윗면 광택. 분야 색은 왕관 빛에만 쓴다. */
:root{
  --ink: oklch(0.97 0.008 80);          /* 밝은 글자 */
  --ink-2: oklch(0.86 0.01 80 / .78);
  --ink-3: oklch(0.78 0.01 80 / .55);
  --night: oklch(0.15 0.012 70);        /* 바탕 */
  --glass: oklch(0.17 0.008 80 / .46);
  --glass-hi: oklch(0.24 0.008 80 / .58);
  --line: oklch(1 0 0 / .16);
  --line-2: oklch(1 0 0 / .08);
  --accent: #d8a93a;                    /* 바뀜: 현재 분야 색 */
  --accent-rgb: 255,206,110;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,0,.35,1);
  --spring: cubic-bezier(.22,1.18,.36,1);   /* 튀는 정도를 줄여 부드럽게(11-07 '모션이 딱딱해') */
  --soft: cubic-bezier(.16,1,.3,1);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Literata", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:var(--night);color:var(--ink);font-family:var(--sans);overflow:hidden;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;touch-action:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:var(--cur-on,pointer)}
img{display:block;max-width:100%}
a{color:inherit}
[hidden]{display:none!important}
.ico{display:inline-grid;place-items:center;width:1.25em;height:1.25em;flex:none}
.ico svg{width:100%;height:100%}
:focus-visible{outline:2px solid oklch(0.9 0.05 80);outline-offset:3px;border-radius:999px}

/* ---------- 유리 버튼 ----------
   애플 리퀴드 글래스 방식: 뒤 장면을 흐리게 비추는 어두운 유리 + 위쪽 안 빛 + 아래쪽 두께 그림자
   + 왼쪽 위·오른쪽 아래가 밝은 유리 모서리 + 고운 입자 질감 + 마우스를 따라오는 반사광 */
.glass{
  --gl-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  border-radius:999px;color:oklch(0.985 0.004 80);
  background:
    var(--gl-noise),
    radial-gradient(120% 70% at 50% 112%, oklch(1 0 0 / .22) 0%, oklch(1 0 0 / .05) 45%, oklch(1 0 0 / 0) 62%),
    linear-gradient(180deg, oklch(0.10 0.006 80 / .62) 0%, oklch(0.20 0.006 80 / .46) 58%, oklch(0.28 0.006 80 / .40) 100%);   /* 오목: 위가 어둡고 아래로 갈수록 밝다 */
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);   /* 버퍼링 수정: 20px+채도·밝기 → 10px만(매 화면 다시 계산되는 비용을 줄임) */
  border:0;
  box-shadow:
    inset 0 9px 12px -7px oklch(0 0 0 / .62),      /* 위쪽 안벽 그늘(가장자리가 빛을 가림) */
    inset 0 2px 2px oklch(0 0 0 / .45),
    inset 0 -1.5px 1px oklch(1 0 0 / .42),          /* 아래쪽 안벽에 맺힌 빛 */
    inset 0 -10px 14px -10px oklch(1 0 0 / .30),
    0 -1px 0 oklch(1 0 0 / .18),                    /* 바깥 테두리 윗면 */
    0 1px 1.5px oklch(0 0 0 / .40),
    0 8px 22px -8px oklch(0 0 0 / .45);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s;
}
.glass::before{ /* 유리 모서리: 왼쪽 위·오른쪽 아래가 빛을 받는 1px 테두리 */
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;z-index:-1;pointer-events:none;
  background:linear-gradient(170deg, oklch(1 0 0 / .55) 0%, oklch(1 0 0 / .10) 22%, oklch(0 0 0 / .25) 50%, oklch(1 0 0 / .08) 78%, oklch(1 0 0 / .30) 100%);   /* 오목: 테두리 위 바깥 밝음, 안쪽 아래 다시 밝음 */
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
}
.glass::after{ /* 마우스를 따라오는 반사광 */
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
  background:radial-gradient(90px 90px at var(--mx,50%) var(--my,0%), oklch(1 0 0 / .22), transparent 62%);
  opacity:0;transition:opacity .35s;
}
.glass .ico{filter:drop-shadow(0 -1px 0.5px oklch(0 0 0 / .6)) drop-shadow(0 1px 0 oklch(1 0 0 / .12))}   /* 아이콘이 오목한 면에 찍힌 듯 */
.glass:hover{transform:translateY(-1px) scale(1.05);
  box-shadow:inset 0 9px 12px -7px oklch(0 0 0 / .55), inset 0 2px 2px oklch(0 0 0 / .4), inset 0 -1.5px 1px oklch(1 0 0 / .55),
    inset 0 -12px 16px -10px oklch(1 0 0 / .38), 0 -1px 0 oklch(1 0 0 / .24), 0 1px 1.5px oklch(0 0 0 / .40), 0 14px 30px -8px oklch(0 0 0 / .55)}
.glass:hover::after{opacity:1}
.glass:active{transform:scale(.95);box-shadow:inset 0 11px 14px -6px oklch(0 0 0 / .7),inset 0 -1.5px 1px oklch(1 0 0 / .35);transition:transform 110ms cubic-bezier(.25,1,.5,1)}
.round{width:44px;height:44px;border-radius:50%;font-size:18px}
.round.sm{width:36px;height:36px;font-size:15px}
.pill{height:44px;padding:0 20px;border-radius:999px;font-size:14.5px;font-weight:600;letter-spacing:-.01em}
.pill.big{height:50px;padding:0 24px;font-size:15.5px}

/* 마우스를 올리면 나오는 이름표 */
.tip{position:absolute;left:50%;top:calc(100% + 10px);transform:translate(-50%,-4px);white-space:nowrap;
  font-size:13px;font-weight:600;letter-spacing:-.01em;color:var(--ink);padding:6px 11px;border-radius:999px;
  background:oklch(0.14 0.01 80 / .82);border:1px solid var(--line-2);
  opacity:0;filter:blur(4px);pointer-events:none;transition:opacity .35s var(--ease),transform .45s var(--ease),filter .35s}
.tip small{display:block;font-family:var(--serif);font-style:italic;font-weight:400;font-size:11.5px;color:var(--ink-3);text-align:center;letter-spacing:.01em}
.has-tip:hover .tip,.has-tip:focus-visible .tip{opacity:1;transform:translate(-50%,0);filter:blur(0)}

/* ---------- 무대 ---------- */
#stage{position:fixed;inset:0;overflow:hidden;background:var(--night)}
#film,#fx,#ui{position:absolute;inset:0}
#film video,#film #poster,#film #xfade{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
#xfade{opacity:0;transition:opacity .38s var(--ease-io);z-index:2}
#xfade.on{opacity:1}
#xfade:not([src]){display:none}
#film video{opacity:0}
#film video.on{opacity:1}
#poster{transition:opacity .4s}
#poster.off{opacity:0}
.vignette{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 90% at 50% 50%, transparent 55%, oklch(0.1 0.01 70 / .55) 100%);
  transition:background .8s}
body.dim .vignette{background:radial-gradient(70% 80% at var(--fx,50%) var(--fy,40%), transparent 20%, oklch(0.08 0.01 70 / .62) 100%)}

/* 왕관 빛 */
#glow{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;opacity:0;transition:opacity .6s var(--ease)}
#glow.on{opacity:1}
#glow i{position:absolute;left:50%;top:50%;border-radius:50%;transform:translate(-50%,-50%)}
#glow .halo{width:var(--g,240px);height:var(--g,240px);mix-blend-mode:screen;
  background:radial-gradient(circle, rgba(255,250,235,.95) 0%, rgba(var(--accent-rgb),.95) 9%, rgba(var(--accent-rgb),.5) 26%, rgba(var(--accent-rgb),.16) 50%, transparent 72%);
  animation:breathe 2.6s ease-in-out infinite}
#glow .rays{width:calc(var(--g,240px)*2.6);height:calc(var(--g,240px)*2.6);mix-blend-mode:screen;opacity:.85;
  background:repeating-conic-gradient(from 0deg, rgba(var(--accent-rgb),.32) 0deg 3deg, transparent 3deg 16deg);
  -webkit-mask:radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 25%, transparent 62%);mask:radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 25%, transparent 62%);
  animation:spin 26s linear infinite}
#glow .ring{width:var(--g,240px);height:var(--g,240px);border:2.5px solid rgba(var(--accent-rgb),.95);box-shadow:0 0 24px rgba(var(--accent-rgb),.8);opacity:0}
#glow.burst .ring{animation:ring 1.6s var(--soft) forwards}
@keyframes breathe{0%,100%{transform:translate(-50%,-50%) scale(.92);opacity:.85}50%{transform:translate(-50%,-50%) scale(1.06);opacity:1}}
@keyframes spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes ring{0%{opacity:.9;transform:translate(-50%,-50%) scale(.3)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.6)}}
#sparks{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none}   /* 30차: 자리·크기는 app.js sparks가 알갱이 있는 곳만큼만 잡는다(화면 전체로 두면 유리 버튼 흐림이 매 화면 다시 계산됨) */

/* ---------- 장면 UI 공통 ---------- */
#ui > *{position:absolute}
.scene-off{opacity:0;visibility:hidden;pointer-events:none}

.hint{left:50%;bottom:calc(34px + var(--safe-b));transform:translateX(-50%);transition:opacity .6s}
.mouse{display:block;width:24px;height:38px;border-radius:14px;border:1.5px solid var(--ink-2)}
.mouse i{display:block;width:3px;height:8px;border-radius:2px;background:var(--ink);margin:7px auto 0;animation:wheel 1.8s var(--ease) infinite}
@keyframes wheel{0%{opacity:0;transform:translateY(-3px)}30%{opacity:1}100%{opacity:0;transform:translateY(10px)}}

/* 첫 장면 버튼 3개: 꼬마 왕 둘레 반원, 밀어서 넘김 (위치·크기·투명도는 JS가 --x --y --s --o) */
.three{left:0;top:0;width:0;height:0}
.three .glass{position:absolute;left:0;top:0;width:56px;height:56px;margin:-28px 0 0 -28px;font-size:22px;cursor:var(--cur-on,grab);touch-action:none;
  opacity:var(--o,0);transform:translate(var(--x,0),var(--y,0)) scale(var(--s,1));transition:opacity .4s var(--soft),transform .6s var(--soft),box-shadow .5s var(--ease)}
.three.anim .glass,.three.dragging .glass{transition:box-shadow .3s}
.three .glass:hover{transform:translate(var(--x),var(--y)) scale(calc(var(--s,1) * 1.06))}
/* 첫 장면 이름표: 표시는 .peek 한 가지뿐이다(app.js makeArc가 1.8초 뒤 뺀다). 공용 규칙의 마우스 올림·키보드 초점 표시를 여기서 끈다(7차: 키보드 초점이 남으면 계속 떠 있었다). 버튼이 세로로 촘촘해 아래가 아니라 반원 바깥 옆에 한 줄로 */
.three .tip{display:flex;align-items:baseline;gap:7px}
.three .tip small{display:inline}
.three[data-side="right"] .tip{left:calc(100% + 12px);top:50%;transform:translate(-4px,-50%)}
.three[data-side="left"] .tip{left:auto;right:calc(100% + 12px);top:50%;transform:translate(4px,-50%)}
.three .has-tip:hover .tip,.three .has-tip:focus-visible .tip{opacity:0;filter:blur(4px);visibility:hidden}
.three[data-side="right"] .glass.peek .tip,.three[data-side="left"] .glass.peek .tip{opacity:1;transform:translate(0,-50%);filter:blur(0);visibility:visible;transition:opacity .35s var(--ease),transform .45s var(--ease),filter .35s,visibility 0s}
.three[data-side="above"] .glass.peek .tip{opacity:1;transform:translate(-50%,0);filter:blur(0);visibility:visible;transition:opacity .35s var(--ease),transform .45s var(--ease),filter .35s,visibility 0s}
.three .glass .ico{transition:transform .6s var(--soft)}
.three .glass:hover .ico{transform:rotate(-8deg) scale(1.08)}
.pop{opacity:0;transform:translateY(16px) scale(.7);filter:blur(6px)}
.pop.in{opacity:1;transform:none;filter:none;transition:opacity .6s var(--ease),transform .8s var(--spring),filter .6s var(--ease);transition-delay:var(--d,0s)}
.pop.in:hover{transform:translateY(-2px) scale(1.04)}

/* 허브: 왕관 실제 모양을 딴 외곽선. 누를 수 없음 */
.hub{inset:0;pointer-events:none}
.hub .crowns{position:absolute;overflow:visible}
.crown-edge{fill:rgba(var(--c),0);stroke:rgb(var(--c));stroke-width:6;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:.92}
.crown-line{fill:none;stroke:rgba(255,248,232,.97);stroke-width:2.4;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.crown-halo{fill:none;stroke:rgb(var(--c));stroke-width:16;opacity:0}
.hub:not(.scene-off) .crown-edge{animation:crownDraw 1.9s var(--ease-io) forwards, crownFill 3.2s ease-in-out infinite;animation-delay:var(--d),calc(var(--d) + 1.9s)}
.hub:not(.scene-off) .crown-line{animation:crownDraw 1.9s var(--ease-io) forwards;animation-delay:calc(var(--d) + .12s)}
.hub:not(.scene-off) .crown-halo{animation:haloIn 1.6s var(--soft) forwards, haloPulse 3.2s ease-in-out infinite;animation-delay:calc(var(--d) + .8s),calc(var(--d) + 2.4s)}
@keyframes crownDraw{to{stroke-dashoffset:0}}
@keyframes crownFill{0%,100%{fill:rgba(var(--c),.05)}50%{fill:rgba(var(--c),.22)}}
@keyframes haloIn{to{opacity:.7}}
@keyframes haloPulse{0%,100%{opacity:.5}50%{opacity:.9}}

/* 분야 */
.field{inset:0;pointer-events:none}
.field-title{position:absolute;display:flex;flex-direction:column;gap:6px;pointer-events:none;
  text-shadow:0 2px 24px oklch(0 0 0 / .55);transition:left 1s var(--soft),right 1s var(--soft),top 1s var(--soft)}
.field-title .en{position:relative;display:block;height:1.08em;width:var(--w,4em);transition:width 680ms cubic-bezier(.22,1,.36,1);
  font-family:var(--serif);font-weight:400;font-style:italic;font-size:clamp(34px,4.4vw,68px);line-height:1.08;letter-spacing:-.02em}
.field-title .en i{position:absolute;left:0;top:0;white-space:nowrap;font-style:inherit;opacity:0;filter:blur(12px);transform:scale(.992);
  transition:opacity 680ms cubic-bezier(.22,1,.36,1),filter 680ms cubic-bezier(.22,1,.36,1),transform 680ms cubic-bezier(.22,1,.36,1)}
.field-title[style*="text-align: right"] .en i{left:auto;right:0}
.field-title .en i.on{opacity:1;filter:none;transform:none}
.field-title .ko b{font-weight:inherit}
.field-title .ko.swap b{animation:koSwap .6s var(--ease)}
@keyframes koSwap{from{opacity:0;filter:blur(4px);transform:translateY(6px)}}
.field-title .ko{font-size:clamp(13px,1.05vw,16px);font-weight:600;letter-spacing:.12em;color:var(--ink-2);display:flex;align-items:center;gap:10px}
.field-title .ko::before{content:"";width:22px;height:2px;border-radius:2px;background:var(--accent);box-shadow:0 0 12px var(--accent)}
.field-title > span{opacity:0;transform:translateY(16px);transition:opacity .9s var(--soft),transform 1.1s var(--soft)}
.field.titled .field-title > span{opacity:1;transform:none}
.field.titled .field-title .ko{transition-delay:.12s}
.arc{position:absolute;left:0;top:0;width:0;height:0}
.arc .glass{position:absolute;left:0;top:0;width:52px;height:52px;font-size:20px;pointer-events:auto;margin:-26px 0 0 -26px;
  opacity:0;transform:translate(0,0) scale(.3);filter:blur(6px);
  transition:opacity .6s var(--soft),transform .8s var(--soft),filter .5s var(--soft)}
.field.in .arc .glass{opacity:var(--o,1);filter:none;transform:translate(var(--x),var(--y)) scale(var(--s,1));transition-delay:calc(.18s + var(--i)*.07s)}
.field.in .arc.live .glass{transition:opacity .35s var(--ease),transform .55s var(--ease),filter .3s;transition-delay:0s}
.field.in .arc.dragging .glass,.field.in .arc.anim .glass{transition:filter .3s;transition-delay:0s}
.field.in .arc .glass:hover{transform:translate(var(--x),var(--y)) scale(calc(var(--s,1) * 1.06));transition-delay:0s}
.arc .glass{cursor:var(--cur-on,grab);touch-action:none}
.arc.dragging .glass{cursor:var(--cur-dn,grabbing)}
.field.in .arc .glass.focus .tip{opacity:1;transform:translate(-50%,0);filter:blur(0)}

/* 체험수업: 꼬마 왕이 말하는 말풍선. 꼬리 끝(오른쪽 아래)이 왕관을 가리킨다 */
.trial{left:0;top:0;transform:translate(-100%,-100%)}
.bubble{position:relative;display:inline-flex;align-items:center;gap:10px;padding:15px 26px 15px 20px;border-radius:28px 28px 8px 28px;
  font-family:"Gaegu",var(--sans);font-size:clamp(21px,1.7vw,26px);font-weight:700;letter-spacing:.01em;line-height:1;white-space:nowrap;color:oklch(0.27 0.03 60);
  background:url("../assets/img/paper/paper_grain.webp") 0 0/var(--tile,683px) repeat,oklch(0.96 0.015 85);
  box-shadow:inset 0 1px 0 #fff,inset 0 -2px 5px oklch(0.75 0.04 75 / .35),0 16px 40px -12px oklch(0 0 0 / .6),0 0 46px -8px rgba(255,206,110,.5);
  transform-origin:100% 100%;opacity:0;transform:translate(16px,18px) scale(.55) rotate(-6deg);filter:blur(8px)}
.bubble > span:last-child{--pc:oklch(0.27 0.03 60)}
.bubble::after{content:"";position:absolute;right:-10px;bottom:-10px;width:26px;height:26px;
  background:url("../assets/img/paper/paper_grain.webp") 0 0/var(--tile,683px) repeat,oklch(0.95 0.016 84);clip-path:polygon(0 0,100% 100%,0 55%);border-radius:0 0 5px 0}
.bubble .ico{color:#c8902c;font-size:22px}
.trial.in .bubble{opacity:1;transform:none;filter:none;transition:opacity 1.1s var(--soft),transform 1.5s var(--soft),filter 1s var(--soft);animation:bob 3.6s ease-in-out 1.6s infinite}
.bubble:hover{transform:translateY(-2px) scale(1.03);transition:transform .6s var(--soft)}
.bubble:active{transform:scale(.97);transition-duration:.11s}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -5px}}

/* 꼬마 왕이 '?!' 하는 표시 = 체험수업 신청 페이지 링크(10차). 종이 없이 만화의 놀람 글자처럼. 높이는 꼬마 왕 키의 1/3, 자리는 머리 옆(app.js layoutStation) */
.trial-go{left:0;top:0;display:block;transform:translate(-50%,-50%) rotate(8deg);transform-origin:50% 50%;text-decoration:none;filter:drop-shadow(0 6px 10px oklch(0.1 0.02 40 / .55));
  opacity:0;visibility:hidden;scale:.4;transition:opacity .25s var(--soft),scale .3s var(--soft),visibility 0s linear .25s}
.trial-go svg{display:block;width:100%;height:100%;overflow:visible}
.trial-go .tg-line *,.trial-go .tg-fill *{stroke-linecap:round;stroke-linejoin:round}
.trial-go .tg-line path:nth-child(1){fill:none;stroke:oklch(0.22 0.05 45);stroke-width:30}
.trial-go .tg-line circle,.trial-go .tg-line path:nth-child(3){fill:oklch(0.22 0.05 45);stroke:oklch(0.22 0.05 45);stroke-width:12}
.trial-go .tg-fill path:nth-child(1){fill:none;stroke:oklch(0.86 0.15 88);stroke-width:18}
.trial-go .tg-fill circle,.trial-go .tg-fill path:nth-child(3){fill:oklch(0.86 0.15 88)}
.trial.in + .trial-go{opacity:1;visibility:visible;scale:1;transition:opacity .25s var(--soft) .7s,scale .75s var(--spring) .7s,visibility 0s linear .7s;animation:bob 3.6s ease-in-out 2.2s infinite}
.trial-go svg{transition:scale .35s var(--soft)}
.trial-go:hover svg{scale:1.08}
/* 21차(형님 '?! 아이콘 내 노란색 부분에 밝게 깜빡이는 빛'): 노란 칠과 같은 모양의 밝은 겹(index.html .tg-shine)을 1.6초마다 반짝 켰다 끈다.
   움직이는 것은 그 겹의 투명도 하나(화면 합성만, 흐림 필터 없음). 노란 칠은 검은 테두리 안쪽에만 있어 빛도 노란 부분에만 보인다. ?!가 보일 때만 돌고, 움직임 줄이기 설정이면 끈다 */
.trial-go .tg-shine{position:absolute;inset:0;opacity:0;pointer-events:none}
.trial-go .tg-shine .tg-fill path:nth-child(1){stroke:oklch(0.995 0.045 100)}
.trial-go .tg-shine .tg-fill circle,.trial-go .tg-shine .tg-fill path:nth-child(3){fill:oklch(0.995 0.045 100)}
.trial.in + .trial-go .tg-shine{animation:tgShine 1.6s ease-in-out 1.6s infinite;will-change:opacity}
@keyframes tgShine{0%,28%{opacity:0}46%{opacity:1}64%,100%{opacity:0}}
@media (prefers-reduced-motion: reduce){ .trial.in + .trial-go .tg-shine{animation:none;opacity:0} }

/* 끝 장면 — 세로 화면은 영상 속 로고가 잘리므로 영상을 어둡게 내리고 같은 로고를 화면 폭에 맞춰 띄운다 */
.finale{left:50%;bottom:calc(9vh + var(--safe-b));transform:translateX(-50%)}
.fin-logo{position:absolute;left:50%;top:44%;width:min(80vw,520px);transform:translate(-50%,-50%);display:none;flex-direction:column;align-items:center;gap:8vw;pointer-events:none;
  opacity:0;transition:opacity 1s var(--ease)}
.fin-tag{display:flex;flex-direction:column;align-items:center;gap:7px;color:oklch(0.93 0.025 85);text-align:center;white-space:nowrap}
.fin-tag .ko{font-size:15px;letter-spacing:.14em;padding-left:.14em}
.fin-tag .en{font-family:var(--serif);font-size:9px;letter-spacing:.42em;padding-left:.42em;color:oklch(0.85 0.02 85 / .7)}
#film{transition:opacity 1s var(--ease)}
@media (max-aspect-ratio: 4/5){
  .fin-logo{display:flex}
  body.at-finale .fin-logo{opacity:1}
  body.at-finale #film{opacity:.0}
}
#stage{background:radial-gradient(70% 60% at 50% 46%, oklch(0.3 0.04 65) 0%, oklch(0.19 0.03 62) 52%, oklch(0.12 0.015 60) 100%)}
.finale .row{display:flex;gap:14px}

/* 다음 */
.next{left:50%;bottom:calc(26px + var(--safe-b));margin-left:-22px;opacity:0;pointer-events:none;transition:opacity .5s,transform .45s var(--ease)}
.next.show{opacity:1;pointer-events:auto}
.next .ico{animation:nudge 2s var(--ease) infinite}
/* 장면 영상을 받는 동안 둘레가 돈다(11차). 잠깐 기다리는 경우에는 보이지 않게 0.6초 뒤에 나타난다 */
.next .spin{position:absolute;inset:-6px;border-radius:50%;border:2px solid oklch(1 0 0 / .14);border-top-color:oklch(0.92 0.06 85);opacity:0;pointer-events:none;transition:opacity .3s}
.next.waiting .spin{opacity:1;transition-delay:.6s;animation:nextSpin 1s linear infinite}
.next.waiting .ico{animation:none}
@keyframes nextSpin{to{transform:rotate(360deg)}}
@keyframes nudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}

/* 아래 왕관 진행 */
/* 화면 아래 가운데 알약 모양: 다섯 왕관 = 다섯 분야. 지금 분야가 빛난다 */
.dock{position:absolute;left:50%;bottom:calc(18px + var(--safe-b));transform:translate(-50%,12px);display:flex;gap:4px;
  padding:5px 8px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .6s,transform .6s var(--ease);
  background:oklch(0.14 0.01 80 / .55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid var(--line-2);box-shadow:inset 0 1px 0 oklch(1 0 0 / .1),0 10px 30px -12px oklch(0 0 0 / .6)}
.dock.show{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.dock button{position:relative;width:40px;height:40px;border-radius:50%;display:grid;place-items:center}
.dock button svg{width:20px;height:20px;color:rgba(var(--c),.6);transition:color .3s,transform .4s var(--spring),filter .3s}
.dock button:hover svg{color:rgba(var(--c),1);transform:scale(1.15)}
.dock button.on svg{color:rgb(var(--c));filter:drop-shadow(0 0 6px rgba(var(--c),.95));transform:scale(1.25)}
.dock .tip{top:auto;bottom:calc(100% + 10px)}
body.has-dock .next{bottom:calc(84px + var(--safe-b))}
.rail{position:absolute;left:0;bottom:0;height:2px;width:100%;background:oklch(1 0 0 / .06)}
.rail i{display:block;height:100%;width:0;background:linear-gradient(90deg, oklch(1 0 0 / .25), oklch(1 0 0 / .7))}

/* ---------- 상단 ---------- */
#top{position:fixed;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;
  padding:calc(18px + var(--safe-t)) clamp(16px,2.4vw,32px) 0;z-index:20;pointer-events:none;opacity:0;transition:opacity .8s}
body.started #top{opacity:1}
#top > *{pointer-events:auto}
.brand img{height:34px;width:auto;filter:drop-shadow(0 2px 10px oklch(0 0 0 / .5));opacity:.92;transition:opacity .3s}
.brand:hover img{opacity:1}
.tools{display:flex;gap:10px}
.tools .round{width:40px;height:40px;font-size:16px}

/* ---------- 인트로 ---------- */
#intro{position:fixed;inset:0;z-index:40;display:grid;place-items:center;
  background:radial-gradient(62% 62% at 50% 45%, rgb(47 27 10) 0%, rgb(29 16 6) 52%, rgb(8 5 2) 100%); /* 인트로 영상 바탕색에 맞춤 */
  transition:opacity 1s var(--ease-io), visibility 1s}
#intro.gone{opacity:0;visibility:hidden}
#intro::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.07;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* 인트로 영상: 16:9 상자를 화면 가운데에. 가장자리는 둥글게 흐려 바탕과 이어진다.
   세로 화면은 상자를 화면보다 넓게 키워 글자와 꼬마 왕이 작아지지 않게 한다(양옆 빈 바탕만 잘림) */
.intro-film{position:absolute;left:50%;top:47%;width:min(100vw,120vh);aspect-ratio:16/9;transform:translate(-50%,-50%)}
@media (max-aspect-ratio: 4/5){ .intro-film{width:150vw} }
#introVid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s var(--ease);
  /* 상자 네 가장자리만 바탕으로 녹인다(가운데 꼬마 왕·글자는 그대로) */
  -webkit-mask:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%),linear-gradient(180deg,transparent 0,#000 6%,#000 88%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%) intersect,linear-gradient(180deg,transparent 0,#000 6%,#000 88%,transparent 100%)}
#intro.play #introVid{opacity:1}
/* 태그라인: 글자로 써서 언제나 정확히 가운데. 로고보다 한참 작게 */
.tagline{position:absolute;left:0;right:0;top:71%;transform:translateY(10px);display:flex;flex-direction:column;align-items:center;gap:7px;
  white-space:nowrap;text-align:center;opacity:0;filter:blur(6px);color:oklch(0.93 0.025 85)}
.tagline .ko{font-size:clamp(14px,1.25vw,19px);font-weight:400;letter-spacing:.14em;padding-left:.14em}
.tagline .en{font-family:var(--serif);font-size:clamp(8.5px,.62vw,10.5px);letter-spacing:.42em;padding-left:.42em;color:oklch(0.85 0.02 85 / .7)}
@media (max-aspect-ratio: 4/5){ .tagline .ko{font-size:15px} .tagline .en{font-size:9px} }
#intro.tag .tagline{animation:tagIn 1.1s var(--ease) forwards}
@keyframes tagIn{to{opacity:1;transform:none;filter:none}}

.enter{position:absolute;left:50%;bottom:calc(6vh + var(--safe-b));margin-left:-23px;width:46px;height:46px;font-size:17px;opacity:0;transform:translateY(8px)}
#intro.tag .enter{animation:tagIn .8s var(--ease) .5s forwards}
.enter .ring{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);transform:rotate(-90deg);pointer-events:none}
.enter .ring circle{fill:none;stroke:oklch(1 0 0 / .12);stroke-width:1.5}
.enter .ring .p{stroke:oklch(0.92 0.06 85);stroke-linecap:round;stroke-dasharray:188.5;stroke-dashoffset:188.5;transition:stroke-dashoffset .4s}
.enter.ready .ico{animation:nudge 2s var(--ease) infinite}

/* ---------- 창 화면 = 종이 (6차에 한 곳으로 합침) ----------
   종이는 사진을 붙이지 않고 app.js Paper가 화면 실제 픽셀로 그린다(가장자리·결·그림자가 한 장). 이 구역은 글자·배치만 맡는다.
   여백 규칙: --pad = 종이 안쪽 여백, 묶음 안 8~12px, 묶음 사이 24~32px. 글자 크기 = 13 / 15 / 20 / 30 네 단계. */
/* 7차: 컴퓨터·태블릿은 뒤 장면이 보이는 창. 상세 창 자리·크기는 app.js placeSheet가, 안내 패널은 오른쪽 위 메뉴 버튼 아래 드롭다운으로.
   창 바깥은 장면을 그대로 두고 살짝만 어둡게 한다. 휴대폰(640px 이하)은 아래 @media에서 지금까지처럼 화면을 채운다 */
#modal,#menu{position:fixed;inset:0;z-index:60;pointer-events:none}
.scrim{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .45s var(--ease);background:oklch(0.1 0.02 40 / .5)}
#modal.docked .scrim{background:radial-gradient(60% 95% at var(--sx,50%) 52%, oklch(0.1 0.02 40 / .06) 0%, oklch(0.1 0.02 40 / .5) 100%)}
#modal.centered .scrim{pointer-events:auto}
#menu .scrim{background:oklch(0.1 0.02 40 / .22)}
.open .scrim{opacity:1}
body.ov .field-title{opacity:0;transition:opacity .3s}
body.ov .next.show{opacity:0;pointer-events:none}
body.ov-center .arc,body.ov-center .three{visibility:hidden}
body.ov .three .glass.peek .tip{opacity:0;visibility:hidden}
.arc .glass.cur,.three .glass.cur{box-shadow:0 0 0 2px oklch(0.97 0.01 85 / .9),0 0 22px 2px rgba(var(--accent-rgb),.55)}
.sheet,.panel{
  --ink:oklch(0.26 0.03 60);--ink-2:oklch(0.32 0.03 60 / .86);--ink-3:oklch(0.36 0.03 60 / .78);
  --line:oklch(0.35 0.04 60 / .30);--line-2:oklch(0.35 0.04 60 / .16);
  --mark:color-mix(in oklab,var(--accent) 66%,#3a2414);
  --pad:clamp(20px,2.4vw,32px);
  position:absolute;isolation:isolate;display:flex;flex-direction:column;pointer-events:auto;
  color:var(--ink);font-family:"Special Elite","Nanum Gothic Coding",var(--sans);font-size:15px;line-height:1.65;letter-spacing:.005em;
  word-break:keep-all;overflow-wrap:break-word;
  }
/* 지니(9차): 창을 가로 또는 세로로 잘게 나눈 사본이 버튼 자리의 작은 구멍에서 휘어지며 빠져나오고 같은 곳으로 빨려 들어간다. 움직임은 app.js Genie. 원본 창은 그동안 숨긴다 */
.genie{position:fixed;inset:0;z-index:7;pointer-events:none;overflow:hidden}

.genie-s{position:absolute;left:0;top:0;overflow:hidden;transform-origin:0 0;will-change:transform;backface-visibility:hidden;opacity:0}
.genie-s > canvas{position:absolute;display:block;max-width:none}
.genie-c{position:absolute!important;margin:0!important;visibility:visible!important;pointer-events:none!important;transform:none!important}
.genie-c,.genie-c *{animation:none!important;transition:none!important}
.genie-hole{position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;opacity:0;will-change:transform,opacity;
  background:radial-gradient(circle,oklch(0.05 0.01 40) 0 42%,oklch(0.1 0.03 30 / .85) 58%,oklch(0.6 0.1 60 / .32) 70%,transparent 78%)}
canvas.paper{position:absolute;z-index:-1;pointer-events:none}
.sheet .round.sm,.panel .round.sm{width:40px;height:40px;font-size:16px}

/* 색연필 글씨: 글자 모양으로 오린 색 위에 종이 알갱이(필터 없이 선명) */
.sheet h3,.sub-h,.place h4,.route b,.follow b,.link b,.bubble > span:last-child{color:transparent;-webkit-background-clip:text;background-clip:text;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .96  0 0 0 0 .93  0 0 0 0 .86  0 0 0 -1.5 .92'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),linear-gradient(var(--pc),var(--pc));background-size:140px 140px,100% 100%}
.sheet h3,.sub-h,.place h4,.route b,.follow b,.link b{--pc:var(--mark);font-family:"Gaegu",var(--sans);font-weight:700;letter-spacing:0;font-style:normal}

/* 종이 위 버튼 한 가지: 연필로 그린 테두리. 크기·글씨는 여기서만 정한다 */
/* 28차: 종이 위 버튼에 눌러 찍은 듯한 두께(윗빛·아랫단면) */
.sheet .glass,.panel .glass{height:42px;padding:0 18px;gap:8px;color:var(--ink);background:linear-gradient(180deg, oklch(0.995 0.008 88 / .78), oklch(0.93 0.022 78 / .5));-webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:inset 0 1.5px 0 oklch(1 0 0 / .85), inset 0 0 0 1.6px oklch(0.28 0.04 60 / .78), 0 2.5px 0 oklch(0.26 0.04 50 / .26), 0 8px 14px -6px oklch(0.2 0.03 50 / .3);font-family:"Gaegu",var(--sans);font-weight:700;font-size:18px;line-height:1;text-decoration:none}
.sheet .glass::before,.panel .glass::before{display:none}
.sheet .glass::after,.panel .glass::after{background:radial-gradient(80px 80px at var(--mx,50%) var(--my,0%), rgba(var(--accent-rgb),.25), transparent 62%)}
.sheet .glass .ico,.panel .glass .ico{filter:none;color:var(--mark)}
.sheet .round.sm,.panel .round.sm{padding:0;background:linear-gradient(180deg, oklch(0.995 0.008 88 / .6), oklch(0.93 0.022 78 / .3));box-shadow:inset 0 1.5px 0 oklch(1 0 0 / .8), inset 0 0 0 1.6px oklch(0.3 0.04 60 / .66), 0 2px 0 oklch(0.26 0.04 50 / .2), 0 6px 12px -6px oklch(0.2 0.03 50 / .28)}
.sheet .glass:hover,.panel .glass:hover{transform:translateY(-1.5px)}
.sheet .glass:active,.panel .glass:active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(0.2 0.04 45 / .3), inset 0 0 0 1.6px oklch(0.28 0.04 60 / .8)}

/* ---- 상세 창: 다섯 분야 모두 같은 틀 ---- */
/* 27차: 종이 위 색연필 색(--mark)이 금색 장면(첫 장면·최상위미대입시반)에서만 밝아 제목·F O L W 글자가 흐렸다(밝기 0.60). 밝기 위를 0.5로 막는다. 다른 네 색은 0.44~0.51이라 그대로 보인다 */
@supports (color:oklch(from red l c h)){ .sheet,.panel{--mark:oklch(from color-mix(in oklab,var(--accent) 66%,#3a2414) min(l,.5) c h)} }
/* 27차: 종이 창 안 키보드 초점 테두리. 공용 테두리는 밝은 크림색이라 종이 위에서 안 보였다. 네모 칸(원장 사진 칸·연결 칸)은 제 모서리 그대로 */
.sheet :focus-visible,.panel :focus-visible,.lb-card :focus-visible{outline-color:var(--mark)}
.dir:focus-visible{border-radius:12px}
.link:focus-visible{border-radius:10px}
.sheet > header{display:flex;align-items:center;gap:12px;flex:none;padding:calc(var(--pad)*.72) var(--pad) 10px}
.badge{width:12px;height:12px;border-radius:50% 45% 55% 48%;background:var(--mark);flex:none}
.sheet h3{font-size:30px;line-height:1.1;flex:1}
.sheet .glass.resp-btn{height:34px;padding:0 14px;font-family:"Literata",var(--serif);font-style:italic;font-weight:500;font-size:14px}
.sheet .resp-btn[aria-expanded=true]{background:oklch(0.3 0.04 60);color:oklch(0.97 0.012 85)}
.body.dimmed .ph > :not(.ph-head),.body.dimmed .ph-words{opacity:.2;transition:opacity .3s}
/* RESPECTFUL 여섯: 위치는 app.js makeArc. 첫 장면 버튼과 같은 유리·같은 등장 */
.resp{position:absolute;left:0;top:0;width:0;height:0;z-index:5;visibility:hidden}
.resp.on{visibility:visible}
.resp .glass{position:absolute;left:0;top:0;width:54px;height:54px;margin:-27px 0 0 -27px;pointer-events:auto;text-decoration:none;
  opacity:var(--o,0);transform:translate(var(--x,0),var(--y,0)) scale(var(--s,1));transition:box-shadow .3s,opacity .3s}
.resp .glass:hover{transform:translate(var(--x),var(--y)) scale(1.08)}
.resp .mk{font-family:"Literata",var(--serif);font-style:italic;font-size:17px;letter-spacing:.01em}
.resp.on .tip{opacity:1;visibility:visible;filter:none;transform:translate(-50%,0);top:calc(100% + 5px);font-size:11px;padding:3px 8px;letter-spacing:.02em}
.sheet h3 small{font-family:"Special Elite",monospace;font-weight:400;font-size:13px;margin-left:10px;color:var(--ink-3);-webkit-text-fill-color:var(--ink-3)}
.body{flex:1;min-height:0;overflow:auto;padding:4px var(--pad) var(--pad);overscroll-behavior:contain;touch-action:pan-y}
.body::-webkit-scrollbar,.tab-body::-webkit-scrollbar{width:8px}
.body::-webkit-scrollbar-thumb,.tab-body::-webkit-scrollbar-thumb{background:oklch(0.3 0.04 60 / .25);border-radius:8px}
.body:has(.helix-wrap,.roll){overflow:hidden;padding-bottom:calc(var(--pad)*.5)}
/* 영상·커리큘럼·강사는 종이 한가운데에 놓는다(내용이 넘치면 그대로 스크롤) */
.body:not(:has(.helix-wrap,.roll)){display:flex;flex-direction:column}
.body:not(:has(.helix-wrap,.roll)) > :first-child{margin-top:auto}
.body:not(:has(.helix-wrap,.roll)) > :last-child{margin-bottom:auto}
.body.swap > *{animation:paneIn .35s var(--ease)}   /* 창이 열린 채 내용만 바꿀 때만. 처음 열 때 글을 흐리게 시작하면 빈 종이가 먼저 보였다(9차) */

/* 수업 장면: 세로로 쌓인 카드가 기울며 돌아가고 왼쪽 글이 함께 바뀐다(motion.dev Infinite Scroll Cards 방식) */
.roll{position:relative;height:100%;display:grid;grid-template-columns:minmax(140px,24%) 1fr;column-gap:20px;overflow:hidden;cursor:var(--cur,grab);user-select:none;touch-action:none}
.roll:active{cursor:var(--cur-dn,grabbing)}
.roll-caps{position:relative;list-style:none}
.roll-caps li{position:absolute;left:0;right:0;top:50%;font-size:15px;line-height:1.4;color:var(--ink);will-change:transform,opacity}
.roll-stage{position:relative;perspective:1200px;overflow:hidden;
  -webkit-mask:linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);mask:linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%)}
.roll-card{position:absolute;left:50%;top:50%;height:60%;aspect-ratio:4/3;max-width:96%;will-change:transform,opacity;backface-visibility:hidden}
.roll-card img{width:100%;height:100%;object-fit:cover;border-radius:6px;background:oklch(0.88 0.012 85);box-shadow:0 18px 34px -16px oklch(0.2 0.03 60 / .7);pointer-events:none}
.roll-card.front{cursor:var(--cur-on,zoom-in)}
.roll-caps small{display:block;font-size:13px;color:var(--ink-3);line-height:1.45;margin-top:2px}
.hx-card.blank .frame{aspect-ratio:3/4;border-radius:3px;display:grid;place-items:center;color:var(--ink-3);border:1.8px dashed var(--ink-3);background:oklch(1 0 0 / .18)}
.hx-card.blank .frame svg{width:34px;height:34px}
.vid.blank{display:grid;place-items:center;background:oklch(1 0 0 / .18);box-shadow:none;border:1.8px dashed var(--ink-3);color:var(--ink-3)}
.vid.blank svg{width:56px;height:56px}
.person[data-zoom]{cursor:var(--cur-on,zoom-in)}
.person.blank .av{box-shadow:none;border:1.8px dashed var(--ink-3);color:var(--ink-3);background:oklch(1 0 0 / .18)}
.person.blank .av svg{width:64px;height:64px}
.person.off{opacity:.5}   /* 사진·주소를 아직 받지 못한 강사 자리(14차 하현채). data.js에 값을 넣으면 보통 카드가 된다 */
.people.many .person.blank .av svg{width:44px;height:44px}

/* 그림·작품: 나선(HELIX). 작품은 잘리지 않게 */
.helix-wrap{height:100%;display:flex;flex-direction:column;gap:6px}
.helix{position:relative;flex:1;min-height:0;perspective:1300px;perspective-origin:50% 40%;overflow:hidden;cursor:var(--cur,grab);touch-action:none;user-select:none;
  -webkit-mask:linear-gradient(180deg,transparent 0,#000 10%,#000 90%,transparent 100%);mask:linear-gradient(180deg,transparent 0,#000 10%,#000 90%,transparent 100%)}
.helix:active{cursor:var(--cur-dn,grabbing)}
.hx-stage{position:absolute;left:50%;top:13%;width:0;height:0;transform-style:preserve-3d;will-change:transform}
.hx-card{position:absolute;left:-140px;top:0;width:280px;backface-visibility:hidden;transform-style:preserve-3d}
.hx-card img{width:100%;height:auto;max-height:390px;object-fit:contain;border-radius:14px;box-shadow:0 18px 34px -14px oklch(0.2 0.03 60 / .62);pointer-events:none}
.hx-card figcaption{text-align:center;font-size:13px;padding-top:8px;color:var(--ink-2);opacity:0;transition:opacity .4s}
.hx-card.front{cursor:var(--cur-on,zoom-in)}
.hx-card.front figcaption{opacity:1}
.hx-hint{flex:none;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;color:var(--ink-3);pointer-events:none;white-space:nowrap}
.hx-hint .ico{transform:rotate(-90deg)}
.pick-pane .helix-wrap{flex:1;min-height:0;height:auto}
.hx-card.th img{aspect-ratio:3/4;height:auto;max-height:none;object-fit:cover;background:oklch(0.88 0.012 85)}
.hx-hint:has(.ico:only-child) .ico{transform:none;font-size:18px}

/* 설명 영상 */
.vids{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:20px;width:100%}
.vids.first-wide{margin-top:16px}
.vids.first-wide > :first-child{grid-column:1/-1}
.links.end{justify-content:flex-end;margin-top:18px}
.vids:has(> :only-child){max-width:780px;margin-inline:auto}
.vids figcaption{font-size:14px;padding-top:8px;color:var(--ink-2);line-height:1.45}
.vid{position:relative;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:oklch(0.2 0.01 70);box-shadow:0 14px 28px -14px oklch(0.2 0.03 60 / .6)}
.vid iframe,.vid button{position:absolute;inset:0;width:100%;height:100%;border:0}
.vid video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:oklch(0.12 0.01 70)}
.vid button img{width:100%;height:100%;object-fit:cover;opacity:.88;transition:opacity .3s,transform .6s var(--ease)}
.vid button:hover img{opacity:1;transform:scale(1.03)}
.sheet .vid .glass{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;padding:0;font-size:26px;border-radius:50%;background:oklch(0.97 0.012 85 / .86)}

/* 커리큘럼: 글 상자 대신 한 줄로 이어진 길 */
.lead{font-size:16px;line-height:1.7;color:var(--ink-2);max-width:62ch}
.route{list-style:none;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;margin:24px 0 28px}
.route li{position:relative;padding-right:18px;display:grid;gap:6px;align-content:start}
.route li:not(:last-child)::before{content:"";position:absolute;left:58px;right:12px;top:26px;border-top:1.6px dashed var(--line)}
.route b{font-size:40px;line-height:1.25;--pc:var(--mark);width:max-content}
.route span{font-size:16px;line-height:1.5;color:var(--ink)}
.sub-h{font-size:30px;line-height:1.2;margin:0 0 6px}
.links{display:flex;flex-wrap:wrap;gap:10px}
.block + .block{margin-top:30px;padding-top:26px;border-top:1.4px dashed var(--line-2)}

/* 담당 강사: 글 대신 사람 얼굴. 누르면 카드(경력)가 크게 */
.people{display:flex;flex-wrap:wrap;justify-content:center;gap:40px}
.person{display:grid;justify-items:center;text-align:center;gap:16px;max-width:460px}
.person .av{position:relative;width:clamp(150px,20vh,210px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-size:48px;color:var(--mark);box-shadow:inset 0 0 0 1.6px var(--line)}
.person .av img{width:100%;height:100%;object-fit:cover;border-radius:50%;box-shadow:0 18px 30px -16px oklch(0.2 0.03 60 / .7)}
.person[data-zoom] .av::after{content:"+";position:absolute;right:6%;bottom:6%;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-family:"Gaegu",var(--sans);font-size:26px;line-height:1;color:var(--ink);background:oklch(0.96 0.015 85);box-shadow:inset 0 0 0 1.6px oklch(0.3 0.04 60 / .72);transition:scale .3s var(--ease)}
.person[data-zoom]:hover .av::after{scale:1.14}
.person b{display:block;font-family:"Gaegu",var(--sans);font-size:30px;line-height:1.2}
.person span{font-size:15px;color:var(--ink-2);line-height:1.55}

.empty-state{height:100%;display:grid;align-content:center;justify-items:center;text-align:center;gap:16px;padding:24px 0}
.empty-state .big-ico{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;font-size:30px;color:var(--mark);box-shadow:inset 0 0 0 1.6px var(--line)}
.empty-state p{color:var(--ink-2)}

/* ---- 안내 패널: 다섯 칸 모두 같은 머리·여백 ---- */
.panel{--tabs-h:42px;top:calc(76px + var(--safe-t));right:clamp(18px,2.4vw,32px);width:min(620px,calc(100vw - 36px));max-height:calc(100dvh - 100px - var(--safe-t))}
#menu .panel{transform-origin:calc(100% - 26px) -20px}
#menu:not(.open) .panel{transform:translateY(-24px) scale(.5) rotate(2deg)}
.tabs{position:relative;display:flex;gap:2px;flex:none;margin:calc(var(--pad)*.72) calc(var(--pad) + 48px) 12px var(--pad)}
.tab{position:relative;z-index:1;display:flex;align-items:center;gap:6px;height:var(--tabs-h);padding:0 11px;font-family:inherit;font-size:15px;color:var(--ink-2);white-space:nowrap;scale:var(--ps,1);transition:scale .22s var(--ease),color .3s}
.tab .ico{color:var(--mark)}
.tab:hover{color:var(--ink)}
.tab[aria-selected=true],.tab[aria-selected=true] .ico{color:rgb(255 244 222)}   /* 28차: 고른 탭 = 버건디 면 위 크림 글자 */
.tab-ind{position:absolute;left:0;top:0;height:var(--tabs-h);width:0;background:linear-gradient(180deg, rgb(86 20 33), rgb(108 34 48));box-shadow:inset 0 3px 5px rgb(30 4 9 / .5), inset 0 -1px 0 rgb(255 214 190 / .26);border-radius:14px 18px 12px 20px / 18px 12px 20px 14px;
  transition:transform .5s cubic-bezier(.22,1,.36,1),width .5s cubic-bezier(.22,1,.36,1);pointer-events:none}
.panel .close{position:absolute;right:var(--pad);top:calc(var(--pad)*.72 + 1px)}
.tab-body{flex:1;min-height:0;overflow:auto;padding:6px var(--pad) var(--pad);overscroll-behavior:contain;touch-action:pan-y}
.tab-pane{display:flex;flex-direction:column;gap:22px;animation:paneIn .45s var(--ease)}
@keyframes paneIn{from{opacity:0;transform:translateY(12px)}}
.sub-label{font-size:13px;color:var(--ink-3);display:block;margin-bottom:6px}
/* 줄맞춤(8차): 문맥 중간의 외톨이 줄을 없앤다. 짧은 글은 줄 길이를 고르게, 긴 글은 끝줄이 너무 짧지 않게 */
.panel p,.panel small,.panel em,.lead,.dr-id .quote{text-wrap:balance}
.ph-p,.ph-list dd,.route span,.vids figcaption{text-wrap:pretty}

/* 소개 */
.intro-line{font-size:15px;line-height:1.6}
.about{display:grid;grid-template-columns:136px 1fr;gap:24px;align-items:stretch}
.dir{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;border-radius:12px;transition:background .3s}
.dir:hover{background:rgba(var(--accent-rgb),.12)}
.dir img{width:112px;aspect-ratio:1;border-radius:50%;object-fit:cover;box-shadow:0 12px 24px -12px oklch(0.2 0.03 60 / .6)}
.dir b{display:block;font-family:"Gaegu",var(--sans);font-size:24px;line-height:1.2}
.dir span{font-size:13px;color:var(--ink-2)}
.follow{list-style:none;display:grid;grid-auto-rows:1fr}
.follow li{display:grid;grid-template-columns:56px 1fr;align-items:center;column-gap:14px;padding:10px 0;border-top:1.4px dashed var(--line-2)}
.follow li:first-child{border-top:0}
.follow b{font-size:44px;line-height:1}
.follow em{display:block;font-style:normal;font-size:15px;color:var(--ink)}
.follow p{font-size:14px;line-height:1.55;color:var(--ink-2)}

/* 위치: 종이가 찢겨 자줏빛이 드러난 띠(그림은 Paper가 그 자리 크기로 그린다) */
.orn-band{position:relative;flex:none;height:84px;margin:-2px calc(var(--pad)*-1) 0}
.orn-band canvas{position:absolute;left:0;top:0;pointer-events:none}
.orn-band span{position:absolute;left:var(--pad);top:50%;transform:translateY(-50%);font-family:"Gaegu",var(--sans);font-weight:700;font-size:clamp(24px,2.6vw,32px);color:oklch(0.95 0.025 85);letter-spacing:.04em}
.places{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px}
.place{display:grid;gap:8px;justify-items:start;align-content:start}
.place h4{display:flex;align-items:center;gap:10px;font-size:30px;line-height:1.2}
.place h4 .ico{-webkit-text-fill-color:initial;color:var(--mark);font-size:20px}
.place p{font-size:16px;line-height:1.55}
.place .glass{margin-top:6px}
.tel-line{display:flex;align-items:center;gap:12px}
.place .mail{font-size:13px;color:var(--ink-2);text-decoration:none;word-break:break-all}
.panel .glass.icon{width:42px;height:42px;padding:0;border-radius:50%;flex:none;justify-content:center}
.panel .glass.icon .ico{font-size:19px}
.places.facts{padding-top:24px;border-top:1.4px dashed var(--line-2)}
.panel[data-tab="where"] .tab-pane{justify-content:space-between}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:15px}
.kv dt{color:var(--ink-3)}

/* 신청: 종이 클립이 위 가장자리를 물고 있다 */
#menu .panel[data-tab="apply"]::after{content:"";position:absolute;right:calc(var(--pad) + 64px);top:-12px;width:38px;height:113px;z-index:4;pointer-events:none;
  background:url("../assets/img/paper/clip.webp") center/contain no-repeat;filter:drop-shadow(2px 4px 2px oklch(0 0 0 / .35))}
.form{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 16px}
.form > label,.form > .chips-f{display:grid;gap:8px;align-content:start;font-size:13px;color:var(--ink-3);min-width:0}
.form > label.w4{grid-template-rows:auto 1fr;align-content:stretch}
.form .w2,.form .w3,.form .w4{grid-column:1/-1}
.form input:not([type=checkbox]):not([type=radio]),.form select,.form textarea{width:100%;font:inherit;font-size:15px;color:var(--ink);background:oklch(1 0 0 / .32);border:0;border-bottom:1.6px solid oklch(0.3 0.04 60 / .45);border-radius:4px 4px 0 0;padding:10px 12px;height:48px;outline:none;transition:background .3s,border-color .3s;touch-action:auto}
.form textarea{height:84px;resize:none;line-height:1.5}
.form input:focus,.form select:focus,.form textarea:focus{background:oklch(1 0 0 / .55);border-color:var(--mark);box-shadow:0 1.5px 0 0 var(--mark)}   /* 27차: 적고 있는 칸의 밑줄을 두껍게(자리 변화 없이) */
.form select option{background:#f3ece0;color:#2b2118}
.form ::placeholder{color:oklch(0.36 0.03 60 / .5)}   /* 27차: 보조 글을 진하게 올렸으므로 입력 예시는 따로 연하게 둔다(적은 값처럼 보이지 않게) */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips label{display:block}
.chips input{position:absolute;opacity:0;pointer-events:none}
.chips span{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 13px;border-radius:999px;box-shadow:inset 0 0 0 1.4px var(--line);font-size:14px;color:var(--ink-2);cursor:var(--cur-on,pointer);transition:background .25s,box-shadow .25s,color .25s}
.chips input:checked + span{color:var(--ink);background:rgba(var(--accent-rgb),.22);box-shadow:inset 0 0 0 1.6px var(--mark)}
.chips input:focus-visible + span{outline:2px solid var(--mark);outline-offset:2px}
.chips i{width:9px;height:9px;border-radius:50%;background:var(--c)}
.form-end{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px}
.form .note{font-size:13px;color:var(--ink-3);line-height:1.5;max-width:48ch}
.form .note span{display:inline-block}   /* 27차: 문장 단위로 줄이 바뀌게('…열립니다. 그 / 화면에서'처럼 끊기지 않게) */
.form .send{flex:none;height:48px;padding:0 26px;font-size:20px}
.form .send.sending{pointer-events:none;opacity:.7}
.form .send.sending .ico{animation:spinIco .8s linear infinite}
@keyframes spinIco{to{transform:rotate(360deg)}}
/* 25차: 상담 희망 시간 옆 안내 글(시간 칸과 아래를 맞춤), 아직 요일을 안 골라 잠긴 시간 칸, 사람에게 안 보이는 자동 입력 걸러내기 칸 */
.form .when-note{align-self:end;margin:0 0 12px;font-size:13px;color:var(--ink-3);line-height:1.5}
.form .when-note span{white-space:nowrap}
.form select:disabled{opacity:.55;cursor:default}
.form .hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
/* 25차 후속(메인 대조): 휴대폰 세로는 반 칸 폭이 좁아 '시간을 골라 주세요'가 잘렸다 → 시간 칸을 한 줄 전체 폭으로, 안내 글은 그 아래 */
@media (max-width:640px){ .form .when-l,.form .when-note{grid-column:1/-1} .form .when-note{margin:-4px 0 0} }
.form .done{grid-column:1/-1;padding:12px 16px;border-radius:6px;background:rgba(var(--accent-rgb),.16);font-size:14px}

/* 연결: 찢어 낸 구멍 안에 COCODIO, 아래는 아이콘 여섯 */
.orn-hole{position:relative;flex:none;align-self:center;width:min(250px,70%);aspect-ratio:745/255}
.orn-hole img{width:100%;height:100%;display:block}
.orn-hole span{position:absolute;left:57%;top:56%;transform:translate(-50%,-50%);font-family:"Literata",var(--serif);font-style:italic;font-size:21px;color:oklch(0.93 0.03 85);letter-spacing:.02em}
.link-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px 2px}
.link{display:grid;justify-items:center;align-content:start;text-align:center;gap:2px;padding:8px 4px;text-decoration:none;color:inherit;border-radius:10px;transition:background .3s}
.link:hover{background:rgba(var(--accent-rgb),.12)}
.link .ico{width:44px;height:44px;border-radius:50%;font-size:20px;color:var(--mark);box-shadow:inset 0 0 0 1.6px var(--line);margin-bottom:4px;transition:box-shadow .3s}
.link .ico svg{width:20px;height:20px}
.link:hover .ico{box-shadow:inset 0 0 0 1.8px var(--mark)}
.link b{font-size:17px;line-height:1.2}
.link small{font-size:12px;color:var(--ink-3);line-height:1.3;overflow-wrap:anywhere}

/* INFO: 종이 위에 매달린 조명, 빛이 고인 자리에 교습비 표 */
/* 매달린 조명: 고른 칸 위로 옮겨 가고(--lx) 빛이 함께 움직인다(8차) */
.lamp{position:absolute;left:var(--lx,60px);bottom:calc(100% - 12px);width:80px;height:137px;margin-left:-40px;z-index:4;pointer-events:none;transform-origin:50% 0;
  background:url("../assets/img/paper/lamp.webp") center bottom/contain no-repeat;transition:left .7s cubic-bezier(.3,1,.3,1)}
.lamp.swing{animation:lampSwing 1.1s ease-out}
@keyframes lampSwing{0%{rotate:0deg}22%{rotate:-3.2deg}50%{rotate:2deg}75%{rotate:-.9deg}100%{rotate:0deg}}
.pl-light{position:absolute;inset:8px;overflow:hidden;z-index:-1;pointer-events:none;border-radius:10px}
.pl-light i{position:absolute;top:-14px;left:calc(var(--lx,60px) - 8px);width:560px;height:430px;margin-left:-280px;transition:left .7s cubic-bezier(.3,1,.3,1);
  background:radial-gradient(50% 100% at 50% 0,rgba(255,250,222,.72) 0%,rgba(255,250,226,.24) 50%,rgba(255,250,230,0) 100%)}
.bus-row{display:flex;align-items:center;gap:8px}
.bus-row .bus-btn{flex:1;min-width:0}
/* 7차: 표를 바로 보이지 않고 아이콘 넷으로 나눈다. 누르면 크게(#lightbox) */
.info-block{display:grid;gap:4px}
.fee-row{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.fee{display:grid;justify-items:center;align-content:start;gap:2px;padding:10px 4px;border-radius:10px;font-family:inherit;cursor:var(--cur-on,zoom-in);transition:background .3s}
.fee:hover{background:rgba(var(--accent-rgb),.12)}
.fee .ico{width:52px;height:52px;border-radius:50%;font-size:22px;color:var(--mark);box-shadow:inset 0 0 0 1.6px var(--line);margin-bottom:6px;transition:box-shadow .3s}
.fee .ico svg{width:22px;height:22px}
.fee:hover .ico{box-shadow:inset 0 0 0 1.8px var(--mark)}
.fee b{font-family:"Gaegu",var(--sans);font-size:19px;line-height:1.2;color:var(--ink)}
.fee small{font-size:12px;color:var(--ink-3);line-height:1.35}
.bus-btn{justify-items:start;grid-template-columns:auto 1fr;column-gap:14px;text-align:left;padding:10px 12px;cursor:var(--cur-on,pointer)}
.bus-btn .ico{grid-row:1/3;margin:0}
.bus-btn b{align-self:end}

/* ---- 첫 장면 세 창: 원장 소개·교육 철학 ---- */
.quote{font-family:"Gaegu",var(--sans);font-size:24px;line-height:1.3;color:var(--ink)}
.dr{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 24px;align-items:center}
.dr-photo img{width:100%;height:auto;border-radius:20px;box-shadow:0 0 0 1px oklch(0.3 0.04 60 / .16),0 18px 32px -16px oklch(0.2 0.03 60 / .75)}
.dr-id{display:grid;justify-items:start;gap:2px}
.dr-id b{font-family:"Gaegu",var(--sans);font-size:32px;line-height:1.1}
.dr-id em{font-style:normal;font-size:13px;color:var(--ink-3)}
.dr-id > span{font-size:14px;color:var(--ink-2)}
.dr-id .quote{margin:12px 0 14px}
.voice-box{display:grid;gap:8px;justify-items:start;width:100%}
.sheet .glass.voice{height:38px;padding:0 16px}
.voice .vl{font-family:"Literata",var(--serif);font-style:italic;font-weight:500;font-size:16px;letter-spacing:.01em}
.voice[aria-pressed=true]{background:rgba(var(--accent-rgb),.22)}
.vbar{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;width:100%}
.vbar[hidden]{display:none!important}
.vt{font-family:"Special Elite",monospace;font-size:12.5px;color:var(--ink-2);white-space:nowrap}
.vr{-webkit-appearance:none;appearance:none;width:100%;height:22px;background:transparent;cursor:var(--cur-on,pointer);touch-action:none;--p:0%}
.vr::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(90deg,var(--mark) var(--p),oklch(0.3 0.04 60 / .24) var(--p))}
.vr::-moz-range-track{height:4px;border-radius:4px;background:oklch(0.3 0.04 60 / .24)}
.vr::-moz-range-progress{height:4px;border-radius:4px;background:var(--mark)}
.vr::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:oklch(0.97 0.012 85);box-shadow:0 0 0 2px var(--mark),0 2px 4px oklch(0 0 0 / .3)}
.vr::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:oklch(0.97 0.012 85);box-shadow:0 0 0 2px var(--mark)}
.dr-hist{grid-column:1/-1;display:grid;gap:10px;padding-top:14px;border-top:1.4px dashed var(--line-2)}
.dr-hist h5{font-family:"Gaegu",var(--sans);font-size:20px;line-height:1.2;color:var(--mark);margin-bottom:4px}
.dr-hist ul{list-style:none;font-size:13px;line-height:1.55;color:var(--ink-2)}
.dr-hist ul{columns:2;column-gap:18px}
.dr-hist li{break-inside:avoid}
.dr > .links{grid-column:1/-1}
/* 맨 아래 버튼 넷: 같은 크기 두 줄(8차) */
.dr-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dr-btns .glass{width:100%;justify-content:center;padding:0 10px}
.ph{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.ph > section{min-width:0}
.ph-ask{font-size:15px;color:var(--ink-2)}
.ph-head{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 16px}
.ph-words{display:grid;gap:6px}
.ph .quote{font-size:30px}
.ph-head .resp-btn{justify-self:center}
.ph section{padding-top:18px;border-top:1.4px dashed var(--line-2)}
.ph .sub-h{font-size:24px}
.ph-p{font-size:15px;line-height:1.7;color:var(--ink-2)}
.ph-p + .ph-p{margin-top:8px}
.ph-one{margin:10px 0;font-family:var(--sans);font-weight:600;font-size:15px;line-height:1.5;letter-spacing:-.01em;color:var(--ink);white-space:nowrap;overflow:hidden}
.ph-one.wrap{white-space:normal;text-wrap:balance}
.ph .lead{font-size:15px;margin-bottom:10px}
.ph .follow li{grid-template-columns:44px 1fr}
.ph .follow b{font-size:34px}
.ph-list{display:grid;gap:2px}
.ph-list dt{font-family:"Gaegu",var(--sans);font-size:19px;font-weight:700;margin-top:8px}
.ph-list dd{font-size:14px;line-height:1.55;color:var(--ink-2)}

/* 노트북처럼 세로가 낮은 화면: 원장 창 맨 아래 버튼이 스크롤 없이 보이게 사진을 줄인다 */
@media (min-width:641px) and (max-height:820px){
  .dr{grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:12px 20px}
  .dr-hist{padding-top:10px;gap:6px}
  .dr-hist ul{line-height:1.4}
}

/* ---- 디자인 칸(12차): 고르는 버튼 + 고른 내용 ---- */
.body:has(.picks){display:flex;flex-direction:column;gap:12px}
.body:has(.picks) > *{margin-block:0!important}
.body:has(.picks.n8){overflow:auto}
.picks{display:flex;gap:8px;flex:none}
.sheet .glass.pick{width:44px;height:44px;padding:0;border-radius:50%;flex:none;font-size:15px}
.sheet .glass.pick .ico{font-size:20px}
.sheet .glass.pick[aria-pressed=true]{background:linear-gradient(180deg, rgb(86 20 33), rgb(108 34 48));color:rgb(255 244 222);box-shadow:inset 0 3px 5px rgb(30 4 9 / .55), inset 0 -1px 0 rgb(255 214 190 / .28), 0 2px 0 oklch(0.26 0.04 50 / .22)}   /* 28차: 고른 상태를 받침과 같은 버건디 색면으로 통일 */
.sheet .glass.pick[aria-pressed=true] .ico{color:inherit}
.pick-pane{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
.pick-pane.in > *{animation:paneIn .3s var(--ease)}
.pick-t{font-size:24px;line-height:1.2;margin:0;width:max-content;max-width:100%}
.pick-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.sheet .glass.go-link{width:40px;height:40px;padding:0;border-radius:50%;flex:none}
.sheet .glass.go-link .ico{font-size:18px}
.glass.go-link.off{opacity:.35;pointer-events:none}
.roll.solo{grid-template-columns:minmax(0,1fr);flex:1;height:auto;min-height:240px}
.roll.solo .roll-caps{display:none}
.roll.solo .roll-card{height:66%}
.roll-card.vc{background:oklch(0.14 0.01 70);border-radius:6px;overflow:hidden;box-shadow:0 18px 34px -16px oklch(0.2 0.03 60 / .7)}
.roll-card.vc video{display:block;width:100%;height:100%;object-fit:contain}
.roll-card:not(.front) video{pointer-events:none}
.roll-card.vc.front{cursor:var(--cur,default)}
.people.many{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px;justify-items:center}
.people.many:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px;margin-inline:auto}   /* 두 분이면 두 칸(14차: 만화·중등·SPACE) */
.person.linked{color:inherit;text-decoration:none;gap:10px}
.people.many .av{width:clamp(96px,15vh,136px)}
.people.many b{font-size:24px}
.people.many span{display:block;font-size:13px;line-height:1.35}
.person .go{position:absolute;right:2%;bottom:2%;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:var(--ink);background:oklch(0.97 0.012 85);box-shadow:inset 0 0 0 1.6px oklch(0.3 0.04 60 / .6),0 2px 0 oklch(0.3 0.04 60 / .14);transition:scale .2s var(--ease)}
.person .go svg{width:18px;height:18px}
.person.linked:hover .go{scale:1.14}
.lb-card.plain{cursor:var(--cur,zoom-out)}

/* ---- 커리큘럼(13차): 창 안 아이콘 버튼 2개 → 누르면 밤하늘 마인드맵 ---- */
.sky-btns{display:flex;justify-content:center;gap:clamp(28px,6vw,64px);padding:clamp(16px,4vh,36px) 0}
.sky-btn{display:grid;justify-items:center;gap:12px;font-family:inherit;color:var(--ink)}
.sky-btn .glass{width:clamp(84px,14vh,112px);height:clamp(84px,14vh,112px);border-radius:50%;padding:0;font-size:clamp(30px,5vh,40px);transition:transform .35s var(--ease)}
.sky-btn:hover .glass{transform:scale(1.07)}
.sky-btn b{font-family:"Gaegu",var(--sans);font-size:22px;line-height:1.2;color:oklch(0.24 0.03 60)}
#sky{position:fixed;inset:0;z-index:70;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;color:oklch(0.96 0.012 85);--night:oklch(0.13 0.022 285)}
.sk-disc{position:absolute;left:0;top:0;width:100px;height:100px;border-radius:50%;background:var(--night);will-change:transform}
.sk-bg{position:absolute;inset:0;background:radial-gradient(120% 95% at 50% 42%,oklch(0.19 0.034 285) 0%,oklch(0.13 0.022 285) 52%,oklch(0.09 0.012 290) 100%);opacity:0;transition:opacity .5s linear}
.sk-bg canvas{position:absolute;left:0;top:0}
#sky.lit .sk-bg{opacity:1}
#sky.closing .sk-bg{transition-duration:.25s}
.sk-lines{position:absolute;left:0;top:0;pointer-events:none;opacity:0;transition:opacity .25s}
.sk-nodes{position:absolute;inset:0;opacity:0;transition:opacity .25s}
#sky.lit .sk-lines,#sky.lit .sk-nodes{opacity:1}
.sk-bar,.sk-x,.sk-back{opacity:0;transition:opacity .35s .1s}
#sky.lit .sk-bar,#sky.lit .sk-x,#sky.lit .sk-back{opacity:1}
.sk-bar{position:absolute;left:50%;top:calc(10px + var(--safe-t));transform:translateX(-50%);display:flex;gap:10px;z-index:5}
#sky .glass.sk-m{width:44px;height:44px;padding:0;font-size:19px;color:oklch(0.92 0.015 85)}
#sky .glass.sk-m[aria-pressed=true]{background:oklch(0.92 0.03 85 / .9);color:oklch(0.2 0.02 285)}
#sky .glass.sk-m[aria-pressed=true] .ico{color:inherit}
.sk-x{position:absolute;right:clamp(12px,2vw,24px);top:calc(12px + var(--safe-t));z-index:5}
.sk-back{position:absolute;left:clamp(12px,2vw,24px);top:calc(12px + var(--safe-t));z-index:5}
.sk-back[hidden]{display:none}
.sk-n{position:absolute;left:0;top:0;width:0;height:0;padding:0;font:inherit;color:inherit;background:none;border:0;cursor:var(--cur-on,pointer);will-change:transform,opacity;-webkit-tap-highlight-color:transparent;outline:none}
.sk-n::before{content:"";position:absolute;left:-22px;top:-22px;width:44px;height:44px;border-radius:50%}
.sk-n.off{pointer-events:none}
.sk-n.off *{pointer-events:none}
.sk-o{position:absolute;left:0;top:0;border-radius:50%;transform-origin:0 0;will-change:transform;display:grid;place-items:center}
.sk-o.pic{background:oklch(0.26 0.03 285);overflow:hidden;box-shadow:0 0 0 2px oklch(0.92 0.04 85 / .5),0 0 44px 2px oklch(0.85 0.09 75 / .32)}
.sk-o.pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s linear;-webkit-user-drag:none}
.sk-o.pic img.in{opacity:1}
.sk-o.pic::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 34% 28%,oklch(1 0 0 / .12) 0%,transparent 38%,oklch(0.1 0.02 285 / .5) 100%);pointer-events:none}
.sk-o.flat::after{background:radial-gradient(circle at 50% 50%,transparent 70%,oklch(0.2 0.03 285 / .22) 100%)}
.sk-o.star{background:radial-gradient(circle,oklch(0.99 0.02 90) 0%,oklch(0.93 0.09 82) 26%,oklch(0.84 0.1 75 / .22) 52%,transparent 72%)}
.sk-o.core{background:radial-gradient(circle,oklch(0.98 0.03 88) 0%,oklch(0.9 0.1 80) 34%,oklch(0.8 0.11 70 / .28) 62%,transparent 76%);color:oklch(0.2 0.03 285)}
.sk-o.core .ico{font-size:88px;line-height:1}
.sk-o.end .ico{font-size:40px;color:oklch(0.92 0.06 85)}
.sk-o.end{background:oklch(0.14 0.02 285);box-shadow:0 0 0 2px oklch(0.92 0.06 85 / .8),0 0 24px oklch(0.85 0.09 75 / .5)}
.sk-n:focus-visible .sk-o{outline:3px solid oklch(0.92 0.09 85);outline-offset:3px}
.sky-btn:focus-visible{outline:none}
.sky-btn:focus-visible .glass{outline:3px solid oklch(0.5 0.12 45);outline-offset:3px}
@media (hover:hover){.sk-n:hover .sk-o.pic{box-shadow:0 0 0 2px oklch(0.95 0.06 85 / .85),0 0 56px 6px oklch(0.85 0.09 75 / .5)}}
.sk-l{position:absolute;left:0;top:0;display:block;width:max-content;text-align:center;line-height:1.3;opacity:0;pointer-events:none;transition:opacity .35s linear;text-shadow:0 0 8px oklch(0.1 0.02 285),0 0 3px oklch(0.1 0.02 285),0 0 2px oklch(0.1 0.02 285);word-break:keep-all}
.sk-l[data-side=r]{text-align:left}
.sk-l[data-side=l]{text-align:right}
.sk-n.lab .sk-l{opacity:1;pointer-events:auto}
.sk-n.dim .sk-o{box-shadow:none}
@media (hover:hover){.sk-n:hover{z-index:9!important}.sk-n:not(.off):hover .sk-l{opacity:1;pointer-events:auto}}
.sk-l b{display:block;font-weight:600;font-size:14px;letter-spacing:-.01em;text-wrap:balance}
.sk-l em{display:block;font-style:normal;font-family:"Literata",var(--serif);font-size:11px;letter-spacing:.06em;color:oklch(0.86 0.1 80);margin-bottom:1px}
.sk-l i{display:none;font-style:normal;font-size:11px;color:oklch(0.86 0.1 80);margin-bottom:1px}
.sk-l small{display:none;font-size:12px;line-height:1.4;color:oklch(0.82 0.015 85);text-wrap:balance}
.sk-n.sub .sk-l small.s{display:block}
.sk-n.full .sk-l small.d{display:block;white-space:pre-line;margin-top:3px;font-size:14px;line-height:1.45}
.d0 .sk-l b{font-family:"Gaegu",var(--sans);font-weight:700;font-size:clamp(20px,2.4vh,28px)}
.d0 .sk-l small.s{font-size:13px}
.d1 .sk-l b{font-size:15px}
.sk-n.full.d1 .sk-l b{font-family:"Gaegu",var(--sans);font-weight:700;font-size:clamp(22px,3vh,30px)}
.sk-n.full.d2 .sk-l b{font-size:16px}
.sk-n.stp .sk-l b,.d2:not(.full) .sk-l b{font-size:13px;font-weight:500}
.sk-n.stp.lab .sk-l i{display:block}
.sk-l b u{text-decoration:none;font-family:"Literata",var(--serif);font-style:italic;color:oklch(0.86 0.1 80);margin-right:5px}
body.sky-full > *:not(#sky):not(#lightbox):not(script){visibility:hidden}
@media (max-width:640px){
  .sk-l b{font-size:13px}
  .d1 .sk-l b{font-size:13px}
  .sk-l small{font-size:12px}
  .sk-n.full.d2 .sk-l b{font-size:15px}
  .sk-n.full .sk-l small.d{font-size:13px}
  .sk-n.stp .sk-l b{font-size:12px}
}
/* 휴대폰 가로: 세로가 낮아 수업 카드가 창 아래로 잘리고, 카드 위에서는 밀어도 창이 내려가지 않았다. 고르는 버튼을 왼쪽 세로로 옮겨 카드가 창 안에 들어오게 한다 */
@media (min-width:641px) and (max-height:480px){
  .body:has(.picks){flex-direction:row;overflow:hidden}   /* 14차: 묶음 수(8·5·4·3)와 상관없이 같은 배치 */
  .picks{display:grid;grid-template-columns:repeat(2,36px);gap:4px;align-content:start}
  .picks .glass.pick{width:36px;height:36px}
  .picks .glass.pick .ico{font-size:17px}
  .pick-pane{gap:4px;min-width:0}
  .pick-t{font-size:18px}
  .roll.solo{min-height:0}
  /* 작품 나선: 창 세로가 낮으니 제목·연결을 나선 위에 얹고 카드를 줄인다 */
  .pick-pane:has(.helix-wrap){position:relative}
  .pick-pane:has(.helix-wrap) .pick-head{position:absolute;left:0;right:0;top:0;z-index:2;pointer-events:none}
  .pick-pane:has(.helix-wrap) .go-link{pointer-events:auto}
  .pick-pane .hx-hint{display:none}
  .pick-pane .hx-stage{top:4px}
  .hx-card.th{width:112px;left:-56px}
  .hx-card.th img{border-radius:9px}
  .roll.solo .roll-card{height:88%}
}

/* ---- 휴대폰: 지금까지처럼 화면을 채운다 ---- */
@media (max-width:640px){
  .sheet,.panel{--pad:20px;position:relative;top:auto;right:auto;width:calc(100vw - 12px);height:calc(100dvh - 52px - var(--safe-t));max-height:none;margin-bottom:6px}
  #modal,#menu{display:grid;place-items:end center;pointer-events:auto}
  .scrim,#modal.docked .scrim,#menu .scrim{pointer-events:auto;background:radial-gradient(120% 95% at 50% 38%, oklch(0.27 0.095 22) 0%, oklch(0.18 0.07 22) 55%, oklch(0.12 0.04 25) 100%)}
  .tab-pane{min-height:100%}
  .dr{grid-template-columns:1fr}
  .dr-hist ul{columns:1}
  .sheet h3{font-size:26px}
  .sheet h3 small{display:block;margin:2px 0 0;font-size:12px}
  .roll{grid-template-columns:1fr;grid-template-rows:1fr auto}
  .roll-stage{grid-row:1}
  .roll-card{height:auto;width:92%;max-width:92%}
  .roll-caps{grid-row:2;height:60px}
  .roll-caps li{text-align:center}
  .hx-card{width:190px;left:-95px}
  .hx-card img{max-height:280px}
  .route{grid-auto-flow:row;gap:14px;margin:16px 0 22px}
  .route li{grid-template-columns:52px 1fr;align-items:center;padding:0}
  .route b{font-size:32px}
  .route li:not(:last-child)::before{left:16px;right:auto;top:44px;bottom:-12px;border-top:0;border-left:1.6px dashed var(--line)}
  .person b{font-size:26px}
  /* 칸 머리: 닫기 줄(종이 클립도 이 줄에) + 다섯 칸을 한 줄에 같은 폭으로. 옆으로 밀지 않아도 다 보인다 */
  .tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:0;margin:62px 14px 10px;--tabs-h:56px}
  .tab{flex-direction:column;justify-content:center;gap:2px;padding:0;font-size:13px}
  .tab .ico{font-size:17px}
  .panel .close{top:16px;right:16px}
  .tab-pane{gap:22px}
  .lamp{width:58px;height:99px;margin-left:-29px;bottom:calc(100% - 46px)}
  .sheet .glass.resp-btn{height:30px;padding:0 10px;font-size:12px}
  .picks{flex-wrap:wrap;justify-content:center}
  .picks.n8{display:grid;grid-template-columns:repeat(4,44px);justify-content:space-around}
  .people.many{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* 머리 문구 옆에 버튼을 두면 폭이 모자라 문구가 네 줄로 끊겼다(11차). 휴대폰은 오른쪽 여백이 없으니 문구 아래 가운데에 둔다. 가운데라야 펼친 반원 끝 버튼이 이 버튼을 덮지 않는다 */
  .ph-head{grid-template-columns:minmax(0,1fr)}
  .ph-head .resp-btn{justify-self:center}
  .ph .quote{font-size:clamp(21px,6.6vw,26px)}
  .resp.on .tip{white-space:normal;width:64px;text-align:center;line-height:1.1;font-size:10px;padding:2px 3px}
  .about{grid-template-columns:1fr;gap:18px}
  .orn-band{height:clamp(84px,12vh,118px)}
  .dir{flex-direction:row;justify-content:flex-start;text-align:left}
  .dir img{width:72px}
  .follow li{grid-template-columns:44px 1fr}
  .follow b{font-size:36px}
  .places{grid-template-columns:1fr;gap:20px}
  .places.facts{grid-template-columns:1fr 1fr;gap:16px}
  .form{gap:14px 12px}
  .form textarea{height:76px;min-height:76px}
  .form-end{flex-direction:column-reverse;align-items:stretch;gap:10px}
  .form .send{width:100%}
  #menu .panel[data-tab="apply"]::after{right:76px;top:-24px;width:28px;height:84px}
  .link-grid{grid-template-columns:repeat(3,1fr)}
  .fee-row{grid-template-columns:repeat(4,1fr)}
  .fee .ico{width:46px;height:46px}
  .fee small{font-size:11px}
  .hx-stage{top:17%}
}

/* 크게 보기: 뒤가 보이는 어둠 위에 종이 카드 한 장(7차). 그림 크기는 화면을 채우지 않게 제한한다. 교습비 = 세로 표라 높이 기준 */
#lightbox{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:oklch(0.06 0.01 70 / .58);padding:16px;opacity:0;transition:opacity .3s var(--ease)}
#lightbox.open{opacity:1}
.lb-card{--ink:oklch(0.26 0.03 60);--ink-2:oklch(0.32 0.03 60 / .86);--ink-3:oklch(0.36 0.03 60 / .78);--line:oklch(0.35 0.04 60 / .30);--line-2:oklch(0.35 0.04 60 / .16);--mark:color-mix(in oklab,var(--accent) 66%,#3a2414);
  position:relative;isolation:isolate;max-width:100%;max-height:100%;padding:18px;color:var(--ink);font-family:"Special Elite","Nanum Gothic Coding",var(--sans);word-break:keep-all;transform:translateY(14px) scale(.97);transition:transform .45s var(--ease);cursor:var(--cur,zoom-out)}
#lightbox.open .lb-card{transform:none}
.lb-card.stay{cursor:var(--cur,default);width:min(600px,100%)}
.lb-body{max-height:calc(100dvh - 68px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.lb-body img{display:block;max-width:min(860px,100%);max-height:min(74vh,720px);width:auto;height:auto;margin-inline:auto;border-radius:3px}
.lb-card.fee img{height:min(70vh,640px);max-height:none;aspect-ratio:auto}
.lb-body p{color:var(--ink-2);font-size:13px;margin-top:10px;text-align:center}
.lb-x{position:absolute;right:-10px;top:-10px;z-index:3;width:38px;height:38px;font-size:14px;padding:0;color:var(--ink);background:oklch(0.97 0.012 85);box-shadow:inset 0 0 0 1.6px oklch(0.3 0.04 60 / .6),0 4px 10px -4px oklch(0 0 0 / .5)}
.lb-x::before{display:none}
.lb-x .ico{filter:none}
/* 버스 노선표 */
.bus{display:grid;gap:12px;justify-items:start;padding:4px 6px}
.bus-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding-right:26px}
.bus h4{font-family:"Gaegu",var(--sans);font-size:26px;line-height:1.15;color:var(--ink)}
.seg{display:flex;gap:2px;padding:2px;border-radius:999px;box-shadow:inset 0 0 0 1.4px var(--line)}
.seg button{height:30px;padding:0 13px;border-radius:999px;font-size:14px;color:var(--ink-2);font-family:inherit}
.seg button[aria-pressed=true]{background:linear-gradient(180deg, rgb(86 20 33), rgb(108 34 48));color:rgb(255 244 222);box-shadow:inset 0 3px 5px rgb(30 4 9 / .55), inset 0 -1px 0 rgb(255 214 190 / .28), 0 2px 0 oklch(0.26 0.04 50 / .22)}   /* 28차: 고른 상태를 받침과 같은 버건디 색면으로 통일 */
.bus-nos{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%}
.bus-nos button{width:34px;height:34px;border-radius:50%;font-size:15px;font-weight:700;color:var(--n);font-family:inherit;box-shadow:inset 0 0 0 2px var(--n);transition:background .25s,color .25s}
.bus-nos button[aria-pressed=true]{background:var(--n);color:#fff}
.bus-dir{margin-left:8px;font-size:14px;color:var(--ink-2)}
.bus-dir b{color:var(--ink);font-weight:700}
.stops{list-style:none;width:100%;display:grid;grid-template-rows:repeat(8,auto);grid-auto-flow:column;grid-auto-columns:1fr;column-gap:16px;min-height:206px;align-content:start}
.stops li{position:relative;padding:4px 0 4px 20px;font-size:13.5px;line-height:1.3;color:var(--ink)}
.stops li::before{content:"";position:absolute;left:5px;top:0;bottom:0;width:2.5px;background:var(--c)}
.stops li::after{content:"";position:absolute;left:1px;top:calc(4px + .65em - 5px);width:10.5px;height:10.5px;border-radius:50%;background:oklch(0.97 0.012 85);box-shadow:inset 0 0 0 2.4px var(--c)}
.stops li:first-child::before{top:calc(4px + .65em)}
.stops li:last-child::before{bottom:auto;height:calc(4px + .65em)}
.stops li:first-child,.stops li:last-child{font-weight:700}
.lb-body .bus-note{font-size:13px;line-height:1.55;color:var(--ink-2);text-align:left;margin:0}
.bus .glass{height:40px;padding:0 16px;gap:8px;color:var(--ink);background:oklch(0.98 0.01 85 / .45);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:inset 0 0 0 1.6px oklch(0.3 0.04 60 / .72);font-family:"Gaegu",var(--sans);font-weight:700;font-size:18px;text-decoration:none}
.bus .glass::before{display:none}
.bus .glass .ico{filter:none;color:var(--ink)}
@media (max-width:640px){
  .stops{grid-template-rows:none;grid-auto-flow:row;min-height:0}
  .lb-card{padding:12px}
  .lb-x{right:-6px;top:-6px}
  .lb-card.fee img{height:auto;width:100%;max-height:72dvh;object-fit:contain}
}

/* ---------- 반응형 ---------- */
@media (max-width: 860px), (pointer: coarse) and (max-width: 1100px){
    .three .glass{width:52px;height:52px;margin:-26px 0 0 -26px;font-size:20px}
  .arc .glass{width:48px;height:48px;margin:-24px 0 0 -24px;font-size:19px}
  .dock{bottom:calc(14px + var(--safe-b))}
  .dock .tip{display:none}
  body.has-dock .next{bottom:calc(78px + var(--safe-b))}
}
/* 세로 화면: 제목은 왼쪽 여백에 두 줄까지, 손가락으로 쓰는 기기는 버튼 이름을 늘 작게 보여 준다 */
@media (max-aspect-ratio: 4/5){
  .field-title .en{font-size:clamp(26px,7.4vw,46px);line-height:1.04}
  .field-title .ko{font-size:clamp(11.5px,3vw,14px);letter-spacing:.06em}
}
@media (pointer: coarse){
  .arc .tip{top:calc(100% + 5px);font-size:11px;padding:3px 8px;background:oklch(0.12 0.01 80 / .55)}  /* 손가락 화면은 가운데 온 버튼 이름만 보인다(.focus) */
}
@media (max-width: 560px){
  .tools .round{width:38px;height:38px}
  .brand img{height:28px}
  .finale .row{gap:10px}
  .finale .round{width:42px;height:42px}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .tagline{opacity:1;transform:none;filter:none}
  .enter,#introVid{opacity:1;transform:none;filter:none}
}
@media (pointer: coarse) and (min-width: 700px){
  .arc .glass{width:58px;height:58px;margin:-29px 0 0 -29px;font-size:22px}
  .arc .tip{font-size:12.5px}
}

/* 체험수업 말풍선 뒤집기 */
.trial.flip{transform:translate(0,-100%)}
.trial.flip .bubble{border-radius:28px 28px 28px 8px;transform-origin:0 100%;transform:translate(-16px,18px) scale(.55) rotate(6deg)}
.trial.flip.in .bubble{transform:none}
.trial.flip .bubble::after{right:auto;left:-10px;clip-path:polygon(100% 0,0 100%,100% 55%);border-radius:0 0 0 5px}

/* ---------- 버퍼링 수정(2026-11-07 측정): 보이지 않는 유리 버튼도 흐림을 매 화면 다시 계산해 1초 60번에 묶였다.
   사라진 뒤(사라지는 움직임이 끝난 뒤)에는 화면에서 내려 계산하지 않게 한다 ---------- */
body:not(.started) #top{visibility:hidden}
.dock{visibility:hidden;transition:opacity .6s,transform .6s var(--ease),visibility 0s linear .6s}
.dock.show{visibility:visible;transition:opacity .6s,transform .6s var(--ease),visibility 0s}
.next{visibility:hidden;transition:opacity .5s,transform .45s var(--ease),visibility 0s linear .5s}
.next.show{visibility:visible;transition:opacity .5s,transform .45s var(--ease),visibility 0s}
.field .arc{visibility:hidden;transition:visibility 0s linear .8s}
.field.in .arc{visibility:visible;transition:visibility 0s}
.tip{visibility:hidden;transition:opacity .35s var(--ease),transform .45s var(--ease),filter .35s,visibility 0s linear .35s}
.has-tip:hover .tip,.has-tip:focus-visible .tip,.arc .glass.focus .tip{visibility:visible;transition:opacity .35s var(--ease),transform .45s var(--ease),filter .35s,visibility 0s}
@media (pointer: coarse){ .arc .glass.focus .tip{visibility:visible} }
/* 7차: 손가락 화면은 누른 뒤에도 '마우스 올림' 상태가 남아 이름표가 계속 보였다. 마우스 없는 기기에서는 쓰지 않는다(가운데 버튼 이름 .focus는 그대로) */
@media (hover: none){ .has-tip:hover .tip{opacity:0;visibility:hidden} .field.in .arc .glass.focus .tip{opacity:1;visibility:visible} }

.field-title .en.morphing{filter:url(#tmorph)}
/* 세로 화면에서 긴 분야 이름은 왕관을 가리지 않게 두 줄로(app.js fitTitle이 왕관까지 남은 폭으로 판단) */
.field-title .en.two{height:2.12em;width:var(--mw)}
.field-title .en.two i{white-space:normal;width:var(--mw)}
/* 마우스가 가까울수록 커지는 네비게이션(collectui Proximity-Based Scaling). app.js proximity가 --ps를 준다 */
.dock button,.finale .row .glass{scale:var(--ps,1);transition:scale .22s var(--ease),transform .5s var(--ease),box-shadow .5s var(--ease),opacity .4s}   /* 글자가 바뀌는 0.75초 동안만 녹이는 필터 */

/* ---------- 소리 버튼 = 턴테이블 ---------- */
.tt-ico{width:1.55em;height:1.55em}
.tt{overflow:visible}
.tt .rec{transform-origin:14px 17.5px;transform-box:view-box}
.tt .arm{transform-origin:26.6px 6.6px;transform-box:view-box;transform:rotate(-24deg);transition:transform .9s var(--soft)}
#soundBtn.on .tt .arm{transform:rotate(0)}
#soundBtn.on .tt .rec{animation:spinRec 2.4s linear infinite}
@keyframes spinRec{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){ #soundBtn.on .tt .rec{animation:none} }

/* ===== 중등 꽃 커리큘럼(14차, app.js Bloom) =====
   참고 영상 문법: 짙은 코발트 단색 바탕 + 가는 남색 선 + 명암 없는 평면 색, 화분은 아래에 고정되고 줄기는 위로만 자란다.
   자라는 순서: 줄기(선 길이 전환) → 가지 → 봉오리(작은 원) → 꽃잎이 가운데서 바깥으로(꽃잎마다 시차) → 작품 원 → 이름 */
#bloom{position:fixed;inset:0;z-index:70;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;color:#f4f1e8;--cob:#1b4cc0;--bink:#0c1a4d}
body.bloom-full > *:not(#bloom):not(#lightbox):not(script){visibility:hidden}
.bl-disc{position:absolute;left:0;top:0;width:100px;height:100px;border-radius:50%;background:var(--cob);will-change:transform}
.bl-svg{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .3s}
.bl-nodes{position:absolute;inset:0;opacity:0;transition:opacity .3s}
#bloom.lit .bl-svg,#bloom.lit .bl-nodes{opacity:1}
#bloom.closing .bl-svg,#bloom.closing .bl-nodes,#bloom.closing .bl-panel,#bloom.closing .bl-x,#bloom.closing .bl-back,#bloom.closing .bl-more{visibility:hidden}   /* 닫을 때는 파란 원이 덮고 있는 동안 바로 감춘다(투명 전환을 원 축소와 겹치면 멈칫, 14차 측정) */
.bl-table{fill:#7aa9ea;stroke:var(--bink);stroke-width:1.4}
.bl-table.e{fill:none}
.bl-pot{fill:#2c62e4;stroke:var(--bink);stroke-width:1.6}
.bl-soil{fill:var(--bink)}
.bl-stem{fill:none;stroke:#3f8f45;stroke-width:4;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.7s cubic-bezier(.3,.1,.3,1),opacity .4s}
.bl-stem.o{stroke:var(--bink);stroke-width:7}
.bl-br{fill:none;stroke:var(--bink);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .38s ease-out,opacity .4s}
.bl-br.on{stroke-dashoffset:0}
.bl-leaf{fill:#3a5ef0;stroke:var(--bink);stroke-width:1.3;transform-box:fill-box;transform-origin:0 50%;scale:0;transition:scale .5s cubic-bezier(.2,1.3,.4,1) var(--d,0ms),opacity .4s}
#bloom.grow .bl-stem,#bloom.grown .bl-stem{stroke-dashoffset:0}
#bloom.grow .bl-leaf,#bloom.grown .bl-leaf{scale:1}
#bloom.grown .bl-br{stroke-dashoffset:0}
#bloom.focused .bl-svg{opacity:.28}
/* 꽃 하나 = 단추. 자리는 --x·--y(꽃 가운데), 크기는 --s. 꽃(.bl-f)마다 따로 그려(will-change) 꽃잎이 바뀔 때 화면 전체를 다시 그리지 않는다(14차 측정) */
.bl-n{position:absolute;left:0;top:0;width:0;height:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:var(--cur-on,pointer);transform:translate(var(--x),var(--y));transition:transform .7s var(--ease),opacity .45s}
.bl-n.dim{opacity:.16}
.bl-n.dim .bl-l,.bl-n.cur .bl-num{opacity:0!important}
#bloom.focused .bl-top{opacity:.12}
.bl-f{will-change:transform;position:absolute;left:calc(var(--s) / -2);top:calc(var(--s) / -2);width:var(--s);height:var(--s);display:block;scale:0;transition:scale .35s cubic-bezier(.2,1.3,.4,1),left .7s var(--ease),top .7s var(--ease),width .7s var(--ease),height .7s var(--ease)}
.bl-n.bud .bl-f{scale:.42}
.bl-n.open .bl-f{scale:1;transition:scale .6s cubic-bezier(.2,1.25,.4,1),left .7s var(--ease),top .7s var(--ease),width .7s var(--ease),height .7s var(--ease)}
.bl-f svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.bl-f .pt > *{stroke:var(--bink);stroke-width:1.5;vector-effect:non-scaling-stroke}
.bl-f .pt{transform-box:view-box;transform-origin:50px 50px;scale:0;rotate:-40deg;transition:scale .55s cubic-bezier(.2,1.35,.4,1) calc(var(--k) * 32ms),rotate .55s var(--ease) calc(var(--k) * 32ms)}
.bl-top .pt{transform-origin:50px 74px;rotate:0deg}
.bl-n.open .pt{scale:1;rotate:0deg}
.bl-c{position:absolute;left:23%;top:23%;width:54%;height:54%;border-radius:50%;object-fit:cover;background:var(--c,#f3b72f);box-shadow:0 0 0 2px var(--bink);opacity:0;transition:opacity .4s .25s}
.bl-n.bud .bl-c{opacity:1}
.bl-num{position:absolute;left:-2%;top:-2%;min-width:26px;height:26px;padding:0 6px;border-radius:13px;display:grid;place-items:center;font:700 14px/1 var(--sans);font-style:normal;color:var(--bink);background:#f4f1e8;box-shadow:0 0 0 1.6px var(--bink);opacity:0;transition:opacity .3s .3s}
.bl-n.open .bl-num{opacity:1}
.bl-n.cur .bl-num{min-width:40px;height:40px;border-radius:20px;font-size:20px}
/* 이름표: 꽃 바깥쪽(r·l) 또는 아래(b). 짧은 화면(휴대폰 가로)은 번호만 */
.bl-l{position:absolute;top:0;width:max-content;max-width:var(--lw,200px);font:600 15px/1.32 var(--sans);text-align:left;word-break:keep-all;text-shadow:0 1px 2px rgb(10 24 70 / .5);opacity:0;transition:opacity .35s .35s}
.bl-l b{font-weight:600}
.bl-n.open .bl-l{opacity:1}
.bl-n[data-lab=r] .bl-l{left:calc(var(--s) / 2 + 10px);transform:translateY(-50%)}
.bl-n[data-lab=l] .bl-l{right:calc(var(--s) / 2 + 10px);transform:translateY(-50%);text-align:right}
.bl-n[data-lab=b] .bl-l{left:0;top:calc(var(--s) / 2 + 4px);transform:translateX(-50%);text-align:center;font-size:12px}
.bl-n[data-lab=t] .bl-l{left:0;top:calc(var(--s) / -2 - 6px);transform:translate(-50%,-100%);font:700 13px/1 var(--sans);letter-spacing:.24em;padding-left:.24em}
.bl-n[data-lab=none] .bl-l{display:none}
.bl-top{pointer-events:none}
.bl-n:focus-visible{outline:none}
.bl-n:focus-visible .bl-f{outline:2.5px solid #f4f1e8;outline-offset:6px;border-radius:50%}
/* 다 핀 뒤 흔들림은 넣지 않는다: 휴대폰에서 흔들림이 시작될 때 0.25초 멈칫, 다 핀 뒤에도 매 프레임 그리기가 생겼다(14차 측정). 다 핀 뒤에는 화면을 다시 그리지 않는다 */
.bl-tag{position:absolute;left:0;top:0;pointer-events:none}
.bl-tag.pot{display:grid;gap:3px;translate:0 -50%}
.bl-tag.pot b{font:700 clamp(13px,1.2vw,17px)/1.25 var(--sans)}
.bl-tag.pot small{font:500 12px/1.2 var(--sans);opacity:.85}
.bl-tag.grp{translate:-50% -50%;padding:4px 10px;border-radius:12px;background:var(--bink);font:700 11px/1 var(--sans);letter-spacing:.14em;opacity:0;transition:opacity .4s var(--d,0ms)}
#bloom.grow .bl-tag.grp,#bloom.grown .bl-tag.grp{opacity:1}
.bl-tag.grp.first{translate:calc(-100% + 4px) -50%}
#bloom.focused .bl-tag{opacity:.25}
#bloom.focused .bl-tag.grp,#bloom.short .bl-tag.grp{display:none}   /* 펼친 단계·세로 높이가 낮은 화면(휴대폰 가로)은 무리 띠를 감춘다. 낮은 화면은 꽃 번호만 */
/* 펼친 단계: 작품 칸 */
.bl-panel{position:absolute;display:flex;flex-direction:column;gap:8px;overflow:auto;touch-action:pan-y;padding-right:4px}
.bl-panel.in > *{animation:blIn .35s var(--ease) both}
@keyframes blIn{from{opacity:0;translate:0 10px}}
.bl-pn{display:flex;align-items:center;gap:10px;margin:0;font:700 12px/1 var(--sans);letter-spacing:.16em;opacity:.85}
.bl-pn u{text-decoration:none;font:800 clamp(34px,4vw,52px)/1 var(--sans);letter-spacing:0}
.bl-panel h3{margin:0;font:700 clamp(20px,2vw,30px)/1.25 var(--sans);word-break:keep-all}
.bl-ps{margin:0;font:500 15px/1.45 var(--sans);opacity:.92;word-break:keep-all}
.bl-px{margin:0;align-self:flex-start;padding:5px 12px;border-radius:14px;background:#f4f1e8;color:var(--bink);font:700 13px/1.3 var(--sans);word-break:keep-all}
.bl-works{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:10px;margin-top:6px}
.bl-works.n1{--cols:1;max-width:520px}.bl-works.n2{--cols:2}.bl-works.n3{--cols:3}.bl-works.n4{--cols:4}
.bl-w{padding:0;border:0;border-radius:10px;overflow:hidden;background:#f4f1e8;box-shadow:0 0 0 2px var(--bink);aspect-ratio:1;cursor:var(--cur-on,zoom-in)}
.bl-works.n1 .bl-w{aspect-ratio:auto}
.bl-w img{width:100%;height:100%;object-fit:cover;display:block;transition:scale .3s var(--ease)}
.bl-works.n1 .bl-w img{object-fit:contain}
.bl-w:hover img{scale:1.05}
.bl-x,.bl-back,.bl-more{position:absolute;top:calc(12px + var(--safe-t));z-index:5;opacity:0;transition:opacity .35s .1s}
#bloom.lit .bl-x,#bloom.lit .bl-back,#bloom.lit .bl-more{opacity:1}
.bl-x{right:clamp(12px,2vw,24px)}
.bl-back{left:clamp(12px,2vw,24px)}
.bl-back[hidden]{display:none}
.bl-more{right:calc(clamp(12px,2vw,24px) + 48px);display:grid;place-items:center;color:inherit}
@media (max-width:640px){
  .bl-works.n4,.bl-works.n3{--cols:3}
  .bl-l{font-size:12.5px;line-height:1.3}
  .bl-ps{font-size:14px}
  .bl-num{min-width:22px;height:22px;font-size:12px}
}
@media (prefers-reduced-motion: reduce){
  .bl-stem,.bl-br,.bl-leaf,.bl-f,.bl-f .pt,.bl-c,.bl-l,.bl-num,.bl-tag.grp{transition:none!important}
}

/* ---- 설명 영상 안 버튼·세로 영상(15차) ---- */
.picks.one{display:none}   /* 묶음이 하나뿐인 칸(만화 COCO VIEW)은 고를 것이 없다 */
.picks.vp{justify-content:center}   /* 설명 영상 안 버튼은 가운데 영상 위에 가운데로 */
.picks.lab{gap:clamp(28px,6vw,56px)}
.pick-l{display:grid;justify-items:center;gap:6px;padding:0;border:0;background:none;font:inherit;color:var(--ink);cursor:var(--cur-on,pointer)}
.pick-l small{font-size:13px;line-height:1.2;color:var(--ink-2);white-space:nowrap}
.sheet .pick-l[aria-pressed=true] .glass.pick{background:linear-gradient(180deg, rgb(86 20 33), rgb(108 34 48));color:rgb(255 244 222);box-shadow:inset 0 3px 5px rgb(30 4 9 / .55), inset 0 -1px 0 rgb(255 214 190 / .28), 0 2px 0 oklch(0.26 0.04 50 / .22)}   /* 28차: 고른 상태를 받침과 같은 버건디 색면으로 통일 */
.sheet .pick-l[aria-pressed=true] .glass.pick .ico{color:inherit}
.pick-l:focus-visible{outline:none}
.pick-l:focus-visible .glass{outline:3px solid oklch(0.5 0.12 45);outline-offset:3px}
.vid.tall{aspect-ratio:9/16;height:min(62vh,680px);width:auto;max-width:100%;margin-inline:auto}   /* 세로 영상(만화소개)은 세로 칸으로 */
.vids:has(.vid.tall){max-width:none}
.vids:has(.vid.tall) figcaption:empty{display:none}
@media (min-width:641px) and (max-height:480px){
  .picks.lab{grid-template-columns:1fr;gap:10px;justify-items:center}
  .pick-l small{font-size:11px}
  .vid.tall{height:calc(100dvh - 178px)}
  .body:has(.picks.vp){overflow:auto}   /* 고르는 버튼 칸은 창 안 스크롤을 막아 두었는데(수업 카드용), 설명 영상은 세로 영상 아래 재생 단추까지 내려 볼 수 있어야 한다 */
  /* 영상이 하나뿐인 칸(experience·디자인 COCO VIEW·설명 영상 빈 자리·SPACE)은 창 안 높이에 맞춘다. 전에는 16:9 칸이 창 아래로 넘쳐 재생 단추가 안 보였다(15차).
     창 높이 = 화면 - 위 72 - 아래(왕관 줄이 있으면 78, 없으면 24), 그 안에서 제목·여백 약 95를 뺀다(app.js placeSheet) */
  .vids:has(> :only-child) .vid:not(.tall){height:calc(100dvh - 192px);width:auto;max-width:100%;margin-inline:auto}
  body.has-dock .vids:has(> :only-child) .vid:not(.tall){height:calc(100dvh - 246px)}
  .vids:has(> :only-child) figcaption:empty{display:none}
}
@media (max-width:640px){
  .vid.tall{height:min(58dvh,560px)}
}

/* ---------- 영상 칸 위 제목 줄(16차: COCODIO experience 창 '패러다임의 전환_경험을 디자인하다') ---------- */
.block + .vids{margin-top:16px}
/* 휴대폰 가로(16차): COCO_STORY 창은 글 한 줄 + 영상 + 유튜브 채널 버튼을 세로로 쌓으면 창 안 높이(약 229)를 넘어 영상 아래와 버튼이 스크롤해야 보였다.
   채널 버튼을 글 줄 오른쪽으로 올리고, 영상 칸은 남은 높이에 맞춘다(창 본문 위 137 + 글 줄·여백 47 + 아래 여백 44 ≈ 230) */
@media (min-width:641px) and (max-height:480px){
  .body:has(> .vids.first-wide){position:relative}
  .body:has(> .vids.first-wide) > .links.end{position:absolute;top:0;right:20px;margin:0}
  .body:has(> .vids.first-wide) .vids:has(> :only-child) .vid:not(.tall){height:calc(100dvh - 230px)}
}

/* ---------- 영상 크기에 맞춘 창(17차: 디자인 COCO VIEW·만화 설명 영상, data fit) ----------
   창 폭과 영상 폭(--vw)은 app.js placeSheet가 창 높이 안에서 정한다. 휴대폰 세로는 창이 화면을 채우는 틀이라 영상만 폭에 맞춘다 */
#modalBody .vids.fitv{max-width:none}
#modalBody .vids.fitv .vid{width:var(--vw,100%);max-width:100%;height:auto;aspect-ratio:var(--ar);margin-inline:auto}
#modalBody .vids.fitv figcaption:empty{display:none}
@media (max-width:640px){
  #modal:has(.vids.fitv){place-items:center}   /* 휴대폰: 영상 크기에 맞춘 창은 아래에 붙이지 않고 가운데에 */
}

/* ---------- COCODIO 칸 여러 영상: 누른 영상을 맨 위 한 줄 전체로(17차) ---------- */
.vids.pickv > .big{order:-1;grid-column:1/-1}
/* 휴대폰 가로는 창이 낮아 커진 영상이 창 높이보다 크다. 높이를 창에 맞추면 블럭보다 작아져서(재 보니 256 < 330) 폭 전체로 두고 창 안을 내려 본다 */

/* ---------- 버튼만 먼저 보이는 설명 영상 창(18차: 디자인 기초디자인·기초소양_조형) ----------
   창은 작게(app.js _narrow 440), 버튼은 가운데에 크게. 누르면 그 영상 창(fitv)으로 바뀐다 */
.picks.play{justify-content:center;align-items:flex-start;padding:18px 0 10px}
.picks.play .glass.pick{width:64px;height:64px}
.picks.play .glass.pick .ico{font-size:26px}
.picks.play .pick-l small{font-size:14px}
@media (min-width:641px) and (max-height:480px){
  .picks.lab.play{display:flex;grid-template-columns:none;gap:40px;padding:6px 0 0}
}
@media (max-width:640px){
  #modal:has(.picks.play){place-items:center}
  #modal .sheet:has(.picks.play){height:auto}
  .picks.play{display:flex;grid-template-columns:none}
}
@media (min-width:641px) and (max-height:480px){
  .body:has(.picks.play){justify-content:center}
}

/* ================= 19차 (11-11 형님 지시) ================= */
/* ---------- 왼쪽 위 cocodio 왕관 글자 로고: 중간 속도로 깜빡이는 빛 ----------
   빛 두 겹: 로고 모양 그대로의 금빛 번짐(.brand-glow, 부모 흐림 + 자식 로고 모양 가림)이 2.6초마다 켜졌다 꺼지고,
   켜지는 순간 로고 글자 위로 얇은 빛줄기(.brand-gleam)가 한 번 지나간다. 움직이는 것은 투명도·자리뿐이라 화면 다시 그리기가 거의 없다.
   로고 그림 자체에는 필터를 걸지 않는다(5차: 글자에 필터를 늘 걸면 흐려 보였다) */
.brand{position:relative;display:block;isolation:isolate;line-height:0}
.brand-glow,.brand-gleam{position:absolute;inset:0;pointer-events:none}
.brand-glow{z-index:-1;filter:blur(6px);opacity:0;animation:brandGlow 2.6s ease-in-out infinite;will-change:opacity}
.brand-glow::before,.brand-glow::after{content:"";position:absolute;inset:0;background:oklch(0.9 0.14 82);
  -webkit-mask:url(../assets/img/logo_script_b2.webp) center/contain no-repeat;mask:url(../assets/img/logo_script_b2.webp) center/contain no-repeat}
.brand-glow::after{transform:scale(1.035);background:oklch(0.82 0.15 70)}   /* 가는 필기체라 한 겹은 번짐이 약했다(11-11 실측 사진) — 조금 큰 두 번째 겹으로 획을 두껍게 */
.brand-gleam{overflow:hidden;-webkit-mask:url(../assets/img/logo_script_b2.webp) center/contain no-repeat;mask:url(../assets/img/logo_script_b2.webp) center/contain no-repeat}
.brand-gleam::before{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:38%;
  background:linear-gradient(100deg,transparent 0%,oklch(1 0.03 90 / .0) 25%,oklch(1 0.04 90 / .95) 50%,oklch(1 0.03 90 / 0) 75%,transparent 100%);
  transform:translateX(-120%) skewX(-14deg);animation:brandGleam 2.6s cubic-bezier(.45,.05,.35,1) infinite;will-change:transform}
@keyframes brandGlow{0%,100%{opacity:0}38%{opacity:.95}62%{opacity:.55}}
@keyframes brandGleam{0%,22%{transform:translateX(-120%) skewX(-14deg)}58%,100%{transform:translateX(330%) skewX(-14deg)}}
.brand:hover .brand-glow{animation-duration:1.6s}
@media (prefers-reduced-motion: reduce){ .brand-glow{animation:none;opacity:.4} .brand-gleam::before{animation:none;opacity:0} }

/* ---------- 손가락 커서(마우스 화면만) ----------
   21차(11-11): 꼬마 왕 점토 손을 운영체제가 그리는 커서 그림으로 쓴다(assets/img/d20_cursor/cur21_*, 도구/content_v21_cursor.py). 32px 칸, 1배·1.5배·2배 그림.
   20차의 화면 위 손(#fc)은 페이지가 바쁘면 멈췄다 실제 마우스에서 떨어진 자리로 튀어서 뺐다. 누른 자리 금빛 고리만 css/cursor20.css · js/cursor20.js.
   기준점(손가락 끝) = 보통 3 1 · 누를 수 있는 곳 7 4 · 누르는 중 4 1 (도구가 낸 hot21.json 값). 32px를 넘기면 크롬이 화면 가장자리에서 기본 화살표로 바꾸므로 넘기지 않는다.
   기존 커서 지정은 모두 var(--cur…, 원래 값)으로 바꿔 두었다. 손가락 화면에는 값이 없어 원래 값 그대로다. 19차(d19/cur_hand*)·20차(d20_cursor의 hand_*, cur_*) 그림은 11-11 마무리 정리 때 _휴지통/2026-11-11_홈페이지스크롤_19-22차_마무리정리/로 옮겼다 */
@media (hover: hover) and (pointer: fine){
  :root{
    --cur:-webkit-image-set(url(../assets/img/d20_cursor/cur21_n.png?v=31) 1x,url(../assets/img/d20_cursor/cur21_n@1.5x.png?v=31) 1.5x,url(../assets/img/d20_cursor/cur21_n@2x.png?v=31) 2x) 4 1,auto;
    --cur-on:-webkit-image-set(url(../assets/img/d20_cursor/cur21_o.png?v=31) 1x,url(../assets/img/d20_cursor/cur21_o@1.5x.png?v=31) 1.5x,url(../assets/img/d20_cursor/cur21_o@2x.png?v=31) 2x) 6 1,pointer;
    --cur-dn:-webkit-image-set(url(../assets/img/d20_cursor/cur21_d.png?v=31) 1x,url(../assets/img/d20_cursor/cur21_d@1.5x.png?v=31) 1.5x,url(../assets/img/d20_cursor/cur21_d@2x.png?v=31) 2x) 4 1,pointer}
  html{cursor:var(--cur)}
  a[href],select,summary,label[for],[role="button"],.trial-go,.crown-go{cursor:var(--cur-on)}
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),textarea{cursor:text}
  :is(a[href],button,select,.glass,.hx-card.front,.roll-card.front,[data-zoom],.sk-n,.bl-n,.bl-w,.pick-l,.crown-go,.trial-go):active{cursor:var(--cur-dn) !important}
}

/* ---------- 첫 멈춤 화면 꼬마 왕 왕관: 천천히 깜빡이는 발광 + 누르면 광고 영상 ----------
   자리·크기는 app.js layoutStation('three')이 왕관 자리(data.js CROWN_AD.crown)에 맞춘다. 버튼 3개 등장이 끝난 뒤 .in.
   빛은 화면 더하기(screen)로 왕관 위에 얹고 투명도·크기만 움직인다. 숨길 때는 visibility로 내린다(5번 규칙) */
.crown-go{position:absolute;left:0;top:0;width:48px;height:48px;padding:0;border-radius:50%;background:none;-webkit-tap-highlight-color:transparent;
  opacity:0;visibility:hidden;transition:opacity .5s var(--ease),visibility 0s linear .5s}
.crown-go.in{opacity:1;visibility:visible;transition:opacity 1.4s var(--ease),visibility 0s}
.crown-go i{position:absolute;left:50%;top:50%;pointer-events:none;border-radius:50%}
.crown-go .cg-halo{width:240%;height:240%;margin:-120% 0 0 -120%;mix-blend-mode:screen;
  background:radial-gradient(closest-side,oklch(0.99 0.05 95 / .95) 0%,oklch(0.9 0.15 85 / .7) 22%,oklch(0.8 0.15 70 / .28) 52%,transparent 100%);
  animation:crownBlink 3.6s ease-in-out infinite;will-change:opacity,transform}
.crown-go .cg-glint{width:30%;height:30%;margin:-62% 0 0 18%;border-radius:0;mix-blend-mode:screen;
  background:conic-gradient(from 0deg,transparent 0 40deg,oklch(1 0.05 95) 45deg,transparent 50deg 130deg,oklch(1 0.05 95) 135deg,transparent 140deg 220deg,oklch(1 0.05 95) 225deg,transparent 230deg 310deg,oklch(1 0.05 95) 315deg,transparent 320deg);
  -webkit-mask:radial-gradient(closest-side,#000 15%,transparent 100%);mask:radial-gradient(closest-side,#000 15%,transparent 100%);
  animation:crownGlint 3.6s ease-in-out infinite;will-change:opacity,transform}
@keyframes crownBlink{0%,100%{opacity:.18;transform:scale(.86)}50%{opacity:1;transform:scale(1.08)}}
@keyframes crownGlint{0%,35%,100%{opacity:0;transform:scale(.4) rotate(0deg)}52%{opacity:1;transform:scale(1.1) rotate(45deg)}70%{opacity:0;transform:scale(.6) rotate(90deg)}}
.crown-go:hover .cg-halo,.crown-go:focus-visible .cg-halo{animation-duration:1.8s}
.crown-go:focus-visible{outline:2px solid oklch(0.97 0.01 85 / .9);outline-offset:4px}
body.ov-center .crown-go{visibility:hidden}
@media (prefers-reduced-motion: reduce){ .crown-go .cg-halo{animation:none;opacity:.7} .crown-go .cg-glint{display:none} }

/* ---------- 작품 크게 보기: 그림 아래 가운데 작은 cocodio 글자 로고 ----------
   로고 그림(logo_script)을 모양으로만 쓰고 색은 종이 위 잉크색. 높이 15px(휴대폰 13px) — 그림을 가리지 않고 서명처럼 */
.lb-logo{display:block;width:46px;height:15px;margin:12px auto 0;background:var(--ink);opacity:.72;
  -webkit-mask:url(../assets/img/logo_script.webp) center/contain no-repeat;mask:url(../assets/img/logo_script.webp) center/contain no-repeat}
@media (max-width:640px){ .lb-logo{width:40px;height:13px;margin-top:10px} }

/* ---------- 디자인 설명 영상 창의 뒤로 버튼(닫기 X 자리) ---------- */
#modal .sheet header .back .ico{transform:translateX(-1px)}

/* 27차: 크게 보기 카드(.lb-card)도 종이 창과 같은 색연필 색(위 .sheet 규칙과 같은 값. 이 카드의 변수 선언이 그 규칙보다 아래에 있어 여기에 둔다) */
@supports (color:oklch(from red l c h)){ .lb-card{--mark:oklch(from color-mix(in oklab,var(--accent) 66%,#3a2414) min(l,.5) c h)} }

/* 27차 후속(형님 11-12 "흐리게해."): 끝 장면은 화면 가운데에 큰 cocodio 로고가 있으므로 왼쪽 위 작은 로고(빛 포함)를 흐리게 내려 가운데로 눈이 모이게 한다. 다른 장면은 그대로. 마우스를 올리거나 키보드 초점이 가면 다시 또렷해진다(처음으로 가는 버튼이라) */
.brand{transition:opacity .9s var(--ease)}
body.at-finale .brand{opacity:.22}
body.at-finale .brand:hover,body.at-finale .brand:focus-visible{opacity:1;transition-duration:.3s}

/* ================= 28차 (11-12 형님 '모두 진행해.') =================
   장면별 디자인 고도화. 묶음 [A] 인트로 [B] 유리 버튼 [C] 왕관 다섯 [D] 분야 장면 [E] 체험수업 [F] 끝 장면. 앞 구역의 값을 여기서 덮어쓴다(19차 구역과 같은 방식).
   종이 창 [G]는 '창 화면 = 종이' 구역 제자리에, 두루마리 [H]는 roll22.css 끝에 있다. 움직이는 것은 transform·opacity뿐이고 새 흐림 필터는 없다. 상세 인계/28_핸드오프_28차.md */
/* ---- [B] 첫 장면·공용 유리 버튼: 흰빛 대신 장면의 따뜻한 금빛이 맺히는 유리 + 이름표를 명패처럼 ---- */
.glass{
  background:
    var(--gl-noise),
    radial-gradient(100% 44% at 50% 108%, oklch(0.95 0.08 82 / .26) 0%, oklch(0.95 0.06 82 / .06) 52%, oklch(1 0 0 / 0) 70%),
    linear-gradient(180deg, oklch(0.09 0.008 70 / .70) 0%, oklch(0.17 0.012 70 / .50) 58%, oklch(0.24 0.02 72 / .34) 100%);
  box-shadow:
    inset 0 9px 12px -7px oklch(0 0 0 / .66),
    inset 0 2px 2px oklch(0 0 0 / .45),
    inset 0 -1.5px 1px oklch(0.95 0.08 84 / .62),
    inset 0 -11px 15px -10px oklch(0.92 0.09 80 / .40),
    0 -1px 0 oklch(0.96 0.05 84 / .22),
    0 1px 1.5px oklch(0 0 0 / .42),
    0 10px 26px -8px oklch(0 0 0 / .55);
}
.glass::before{background:linear-gradient(170deg, oklch(0.97 0.05 84 / .62) 0%, oklch(0.97 0.04 84 / .10) 22%, oklch(0 0 0 / .25) 50%, oklch(0.95 0.06 82 / .10) 78%, oklch(0.95 0.08 82 / .40) 100%)}
.glass:hover{
  box-shadow:inset 0 9px 12px -7px oklch(0 0 0 / .58), inset 0 2px 2px oklch(0 0 0 / .4), inset 0 -1.5px 1px oklch(0.96 0.09 84 / .78),
    inset 0 -13px 17px -10px oklch(0.92 0.10 80 / .50), 0 -1px 0 oklch(0.96 0.05 84 / .28), 0 1px 1.5px oklch(0 0 0 / .42), 0 16px 34px -8px oklch(0 0 0 / .62)}
.tip{padding:7px 13px;background:linear-gradient(180deg, oklch(0.19 0.015 78 / .92), oklch(0.11 0.01 78 / .96));border-color:oklch(0.95 0.05 84 / .14);
  box-shadow:inset 0 1px 0 oklch(0.96 0.04 84 / .22), 0 10px 24px -8px oklch(0 0 0 / .6)}
.tip small{color:oklch(0.84 0.05 84 / .86)}
.three .tip{padding:8px 15px;gap:9px}
/* 아스트라: 왕관 빛이 넓어 뾰족한 왕관 모양을 덮는다 → 빛을 왕관 크기로 모은다(천천히 깜빡이는 것은 그대로) */
.crown-go .cg-halo{width:176%;height:176%;margin:-88% 0 0 -88%;background:radial-gradient(closest-side,oklch(0.99 0.05 95 / .72) 0%,oklch(0.9 0.15 85 / .52) 24%,oklch(0.8 0.15 70 / .2) 54%,transparent 100%)}

/* ---- [C] 왕관 다섯: 흰 심지 선은 그대로 두고 바깥 색빛만 왕관마다 다른 박자로 숨 쉬게 + 아래 진행 표시는 지금 분야만 색이 켜지게 ---- */
.hub .crowns g:nth-child(1) .crown-edge{animation-duration:1.9s,3.4s} .hub .crowns g:nth-child(1) .crown-halo{animation-duration:1.6s,3.4s}
.hub .crowns g:nth-child(2) .crown-edge{animation-duration:1.9s,4.3s} .hub .crowns g:nth-child(2) .crown-halo{animation-duration:1.6s,4.3s}
.hub .crowns g:nth-child(3) .crown-edge{animation-duration:1.9s,2.9s} .hub .crowns g:nth-child(3) .crown-halo{animation-duration:1.6s,2.9s}
.hub .crowns g:nth-child(4) .crown-edge{animation-duration:1.9s,3.9s} .hub .crowns g:nth-child(4) .crown-halo{animation-duration:1.6s,3.9s}
.hub .crowns g:nth-child(5) .crown-edge{animation-duration:1.9s,3.1s} .hub .crowns g:nth-child(5) .crown-halo{animation-duration:1.6s,3.1s}
.crown-edge{stroke-width:3.4;opacity:.86}
.crown-line{stroke-width:1.3;stroke:rgba(255,248,232,.62)}
.crown-halo{stroke-width:24}
@keyframes crownFill{0%,100%{fill:rgba(var(--c),.02)}50%{fill:rgba(var(--c),.12)}}
@keyframes haloIn{to{opacity:.4}}
@keyframes haloPulse{0%,100%{opacity:.2}50%{opacity:.52}}
.dock{padding:6px 10px;gap:6px;background:linear-gradient(180deg, oklch(0.10 0.01 75 / .86), oklch(0.20 0.018 72 / .78) 60%, oklch(0.36 0.035 70 / .66));
  border-color:oklch(0.95 0.05 84 / .10);box-shadow:inset 0 8px 12px -4px oklch(0 0 0 / .5), inset 0 -5px 8px -3px oklch(0.92 0.08 82 / .22), inset 0 -1px 0 oklch(0.95 0.07 84 / .3), 0 12px 32px -12px oklch(0 0 0 / .7)}
.dock button svg{color:rgba(var(--c),.8)}
.dock button.on{background:radial-gradient(64% 56% at 50% 88%, rgba(var(--c),.34), transparent 76%)}
.dock button.on svg{filter:none;transform:scale(1.22)}

/* ---- [D] 분야 장면: 분야 색이 장면 전체에 스미게 — 가는 빛살, 색 공기, 제목 잔광과 사그라드는 선, 버튼 아랫면에 고이는 색빛 ---- */
#glow .rays{opacity:.9;
  background:repeating-conic-gradient(from 0deg, rgba(var(--accent-rgb),.34) 0deg 1.1deg, transparent 1.1deg 6deg, rgba(var(--accent-rgb),.15) 6deg 8.4deg, transparent 8.4deg 13deg, rgba(var(--accent-rgb),.26) 13deg 13.8deg, transparent 13.8deg 21deg);
  -webkit-mask:radial-gradient(circle, #000 0%, rgba(0,0,0,.72) 18%, rgba(0,0,0,.26) 42%, transparent 66%);mask:radial-gradient(circle, #000 0%, rgba(0,0,0,.72) 18%, rgba(0,0,0,.26) 42%, transparent 66%)}
body.dim .vignette{background:radial-gradient(70% 82% at var(--fx,50%) var(--fy,40%), rgba(var(--accent-rgb),.13) 0%, rgba(var(--accent-rgb),.05) 26%, transparent 44%, oklch(0.07 0.012 70 / .74) 100%)}
/* 아스트라: 빛살이 얼굴까지 덮는다(특히 휴대폰) → 빛살 지름을 2.6배에서 1.9배로 줄여 왕관 둘레로 모으고, 제목은 한 단계 크게 */
#glow .rays{width:calc(var(--g,240px)*1.9);height:calc(var(--g,240px)*1.9);opacity:.72}
.field-title .en{font-size:clamp(36px,4.9vw,84px)}
.field-title .en{text-shadow:0 2px 6px oklch(0 0 0 / .6), 0 0 34px rgba(var(--accent-rgb),.42)}
.field-title .ko{gap:12px;letter-spacing:.2em;color:oklch(0.93 0.015 84 / .9)}
.field-title .ko::before{width:44px;height:1px;border-radius:0;background:linear-gradient(90deg, rgb(var(--accent-rgb)), rgba(var(--accent-rgb),0));box-shadow:none}
.arc .glass{
  box-shadow:
    inset 0 9px 12px -7px oklch(0 0 0 / .66),
    inset 0 2px 2px oklch(0 0 0 / .45),
    inset 0 -1.5px 1px rgba(var(--accent-rgb),.74),
    inset 0 -12px 16px -9px rgba(var(--accent-rgb),.36),
    0 -1px 0 oklch(0.96 0.05 84 / .2),
    0 1px 1.5px oklch(0 0 0 / .42),
    0 10px 26px -8px oklch(0 0 0 / .55)}
.arc .glass.cur,.three .glass.cur{box-shadow:inset 0 9px 12px -7px oklch(0 0 0 / .5), inset 0 -1.5px 1px rgba(var(--accent-rgb),.95), inset 0 -16px 20px -7px rgba(var(--accent-rgb),.66), 0 0 0 1px rgba(var(--accent-rgb),.5), 0 8px 26px -4px rgba(var(--accent-rgb),.5)}

/* ---- [E] 체험수업: 말풍선을 부푼 쿠션 대신 얇고 고운 종이 조각으로(노란 후광을 걷고 종이 단면과 가까운 그림자만), 흐림 없이 또렷하게 등장, 말풍선과 ?!가 서로 다른 느린 박자로. ?! 모양과 빛은 그대로(형님 21차 지정) ---- */
.bubble{padding:16px 28px 16px 22px;gap:12px;border-radius:20px 20px 6px 20px;filter:none;transform:translate(8px,14px) scale(.9);
  box-shadow:inset 0 1px 0 oklch(1 0 0 / .9), inset 0 -1.5px 0 oklch(0.70 0.05 70 / .4), 0 1.5px 0 oklch(0.52 0.05 65 / .5), 0 12px 22px -9px oklch(0.2 0.05 50 / .62)}
.trial.in .bubble{transition:opacity .65s var(--soft),transform .8s var(--soft);animation-duration:6.2s}
.trial.in + .trial-go{animation-duration:4.4s}

/* ---- [F] 끝 장면: 버튼 여섯이 가운데부터 차례로 올라오고 금빛 테가 맺힘, 세로 화면은 로고 뒤 조명과 금빛 실선 ---- */
@keyframes finIn{from{opacity:0;transform:translateY(16px) scale(.86)}}
body.at-finale .finale .row .glass{animation:finIn .95s var(--soft) backwards;
  box-shadow:inset 0 9px 12px -7px oklch(0 0 0 / .7), inset 0 2px 2px oklch(0 0 0 / .45), inset 0 -1.5px 1px oklch(0.92 0.11 84 / .8), inset 0 -12px 16px -9px oklch(0.86 0.12 80 / .42),
    0 -1px 0 oklch(0.96 0.05 84 / .2), 0 1px 1.5px oklch(0 0 0 / .42), 0 12px 28px -8px oklch(0 0 0 / .7)}
body.at-finale .finale .row .glass:nth-child(3),body.at-finale .finale .row .glass:nth-child(4){animation-delay:.25s}
body.at-finale .finale .row .glass:nth-child(2),body.at-finale .finale .row .glass:nth-child(5){animation-delay:.36s}
body.at-finale .finale .row .glass:nth-child(1),body.at-finale .finale .row .glass:nth-child(6){animation-delay:.47s}
.finale .row{gap:16px}
.fin-logo{gap:clamp(26px,5.5vw,40px)}
.fin-logo::before{content:"";position:absolute;inset:-34vh -22vw;z-index:-1;background:radial-gradient(50% 42% at 50% 46%, oklch(0.40 0.07 76 / .34), transparent 70%)}
.fin-tag .en::before,.tagline .en::before{content:"";display:block;width:34px;height:1px;margin:3px auto 10px;background:linear-gradient(90deg, transparent, oklch(0.86 0.09 84 / .7), transparent)}
.fin-tag .ko{text-shadow:0 0 26px oklch(0.78 0.11 75 / .4)}
/* 아스트라: 세로 화면에서 로고·문구가 벌어져 있다 → 한 묶음으로 조이고 영문을 읽히는 크기로 */
.fin-tag{gap:10px}
.fin-tag .en{font-size:11px;letter-spacing:.28em;padding-left:.28em}
@media (prefers-reduced-motion: reduce){ body.at-finale .finale .row .glass{animation:none} }

/* ---- [A] 인트로: 영상 가장자리를 네모 대신 둥근 무대 조명처럼 녹이고, 표어에 빛 번짐과 금빛 실선, 시작 버튼 금빛 테 ---- */
#introVid{-webkit-mask:radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);-webkit-mask-composite:source-over;mask:radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%)}
.tagline{filter:none;transform:translateY(14px)}
@keyframes tagIn{to{opacity:1;transform:none}}
.tagline .ko{font-size:clamp(17px,1.42vw,24px);letter-spacing:.1em;padding-left:.1em;text-shadow:0 2px 10px rgb(0 0 0 / .8), 0 0 28px oklch(0.78 0.11 75 / .42)}
.tagline{gap:10px}
.tagline .en{letter-spacing:.3em;padding-left:.3em}
@media (max-aspect-ratio: 4/5){ .tagline .ko{font-size:18px} }
.enter{width:56px;height:56px;margin-left:-28px;font-size:20px;box-shadow:inset 0 10px 14px -4px oklch(0 0 0 / .62), inset 0 2px 2px oklch(0 0 0 / .45), inset 0 -1.5px 1px oklch(0.94 0.09 84 / .6), inset 0 -9px 13px -6px oklch(0.88 0.1 80 / .3), 0 12px 28px -8px oklch(0 0 0 / .7)}
.enter .ring circle{stroke:oklch(1 0 0 / .09)}
.enter .ring .p{stroke:oklch(0.9 0.11 84);stroke-width:2}

/* 34차(11-14): 상단 '코코 메타버스' 버튼은 링크(a)다 — 버튼과 같은 손 커서·밑줄 없음. 주소가 없으면 숨김 */
.tools a.round{text-decoration:none;cursor:var(--cur-on,pointer)}
#metaBtn[hidden]{display:none}

/* 36차(11-14): 손가락 화면 밀기 안내 — 다음 버튼 위 가운데, 손이 오른쪽에서 왼쪽으로 미는 움직임. 누르기는 그대로 통과한다 */
.swipe-hint{position:fixed;left:50%;bottom:calc(150px + var(--safe-b));transform:translate(-50%,8px);z-index:6;display:flex;align-items:center;gap:10px;
  padding:9px 16px 9px 12px;border-radius:999px;background:oklch(0.14 0.01 80 / .58);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  color:oklch(0.96 0.01 84);font-size:13px;letter-spacing:.04em;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;
  transition:opacity .5s var(--ease),transform .5s var(--ease),visibility 0s linear .5s}
.swipe-hint b{font-weight:600}
.swipe-hint.show{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .5s var(--ease),transform .5s var(--ease),visibility 0s}
.swipe-hint .sh-hand{display:inline-flex;font-size:20px;animation:shSwipe 1.6s var(--ease) infinite}
@keyframes shSwipe{0%{transform:translateX(10px);opacity:0}20%{opacity:1}70%{transform:translateX(-12px);opacity:1}100%{transform:translateX(-14px);opacity:0}}
body.ov .swipe-hint{opacity:0;visibility:hidden}
@media (prefers-reduced-motion: reduce){ .swipe-hint .sh-hand{animation:none} }

/* 36차(형님 "만화_디지털드로잉 … '잉'이 아랫줄로", "최상위 미대입시반 … '반'이 아랫줄로"): 분야 한글 이름은 한 줄. 세로 화면은 앞 줄을 짧게·글자 간격을 좁혀 왕관 앞 폭에 맞춘다 */
.field-title .ko b{white-space:nowrap}
@media (max-aspect-ratio: 4/5){
  .field-title .ko{gap:8px;letter-spacing:.08em}
  .field-title .ko::before{width:22px}
}

/* 36차(형님 "세부모달에서 영상 및 강사안내 페이지 등 … 종이질감 백그라운드가 … 너무 여백이 많아"): 휴대폰에서 내용이 짧은 창은 화면을 채우지 않고 내용 높이에 맞춰 가운데에(app.js placeSheet가 snug를 붙인다) */
@media (max-width:640px){
  #modal.snug{place-items:center}
  #modal.snug .sheet{height:auto;max-height:calc(100dvh - 52px - var(--safe-t));margin-bottom:0}
}
/* 37차(11-14): 학원 교육 안내 카드(안내 패널 정보 칸 '교육 안내' → 크게 보기). 버스 노선표 카드와 같은 종이·글자 */
.edu{display:grid;gap:12px;padding:4px 6px;text-align:left;color:var(--ink)}
.edu h2{font-family:"Gaegu",var(--sans);font-size:26px;line-height:1.15;padding-right:26px}
.edu h2 span{font-family:"Literata",var(--serif);font-style:italic;font-size:16px;color:var(--ink-3);margin-left:6px}
.edu .edu-lead{font-size:15px;line-height:1.65;margin:0}
.edu .edu-lead b{color:var(--mark);font-weight:700}
.edu dl{display:grid;grid-template-columns:auto 1fr;gap:9px 14px;margin:2px 0 0;font-size:14px;line-height:1.55}
.edu dt{font-weight:700;color:var(--ink-2);white-space:nowrap}
.edu dd{margin:0;color:var(--ink)}
.edu a{color:var(--mark);font-weight:700}
@media (max-width:640px){ .edu dl{grid-template-columns:1fr;gap:2px} .edu dd{margin-bottom:8px} }
/* 38차(11-14): 체험수업 신청 완료 카드 — 접수되면 신청서 칸을 감추고 이 카드만 보인다(app.js submitApply) */
.form.sent > *:not(.sent-card){display:none}
.sent-card{grid-column:1/-1;display:grid;justify-items:center;gap:10px;text-align:center;padding:28px 16px 22px;outline:none}
.sent-card .sent-ico{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;font-size:30px;color:var(--mark);background:rgba(var(--accent-rgb),.14);box-shadow:inset 0 0 0 1.6px rgba(var(--accent-rgb),.5)}
.sent-card h4{font-family:"Gaegu",var(--sans);font-size:26px;line-height:1.2;color:var(--ink);margin:4px 0 0}
.sent-card p{margin:0;font-size:15px;line-height:1.7;color:var(--ink)}
.sent-card .sent-sub{font-size:14px;color:var(--ink-2)}
.sent-card a{color:var(--mark);font-weight:700}
.sent-card .sent-ok{margin-top:6px;min-width:120px;justify-content:center}
.form .done.err{background:oklch(0.62 0.17 28 / .14)}.sent-card .nw,.sent-card a{white-space:nowrap}
/* 42차(형님 11-17 "상담신청 페이지를 네비게이션 버튼 위치의 밖으로 하나더 빼줘" → "글자빼 상담신청에서. 우리컨셉을 유지해."): 상단 아이콘 묶음 밖의 둥근 아이콘 버튼(index.html #askBtn → 안내 패널 신청 칸).
   다른 상단 버튼과 같은 둥근 유리, 금빛 테두리·금빛 달력 아이콘으로만 구분. 컴퓨터·태블릿은 아이콘 왼쪽에 간격을 두고, 휴대폰(560px 이하)은 아이콘 줄 아래 오른쪽 */
.tools{align-items:center}
.ask-btn{margin-right:12px}
.ask-btn .ico{color:oklch(0.86 0.12 80)}
.ask-btn::before{background:linear-gradient(170deg, oklch(0.90 0.11 82 / .95) 0%, oklch(0.80 0.11 76 / .40) 38%, oklch(0.62 0.09 70 / .35) 62%, oklch(0.88 0.11 80 / .85) 100%)}
/* 휴대폰(형님 11-17 "모바일에서 한줄로 넣어야지 … 로고로 너무 붙으면 버튼의 크기를 조금 더 줄여"): 상담 신청을 포함한 상단 버튼 여섯을 로고와 한 줄에. 폭에 맞춰 버튼·간격을 줄여 로고와 최소 15px을 띄운다 */
@media (max-width:560px){
  .tools{gap:7px}
  .tools .round{width:34px;height:34px;font-size:14px}
  .ask-btn{margin-right:5px}
}
@media (max-width:400px){
  .tools{gap:6px}
  .tools .round{width:32px;height:32px;font-size:13.5px}
  .ask-btn{margin-right:4px}
}
@media (max-width:370px){
  .tools{gap:5px}
  .tools .round{width:30px;height:30px;font-size:13px}
}
@media (max-width:345px){
  .brand img{height:22px}
  .tools{gap:5px}
  .tools .round{width:28px;height:28px;font-size:12.5px}
  .ask-btn{margin-right:3px}
}
/* 42차(형님 11-17): 교육 안내 카드 아래 사업자 표시(상호명·대표자명·이메일) */
.edu dl.edu-biz{margin-top:2px;padding-top:12px;border-top:1px dashed rgba(var(--accent-rgb),.35);gap:4px 14px;font-size:13px;grid-template-columns:auto 1fr}
.edu dl.edu-biz dd{margin:0}
/* 42차(형님 11-17): 신청서 — 관심 분야 네 개(디자인·만화·디지털드로잉·중등특화반)를 한 줄로, 캠퍼스와 상담 희망 요일을 한 줄로(신청 단추가 덜 내려가게) */
.chips.f4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.chips.f4 span{justify-content:center;width:100%;padding:0 8px;white-space:nowrap}
.form .pair{display:grid;grid-template-columns:auto 1fr;gap:16px 22px;align-items:start}
.form .pair > .chips-f{display:grid;gap:8px;align-content:start;font-size:13px;color:var(--ink-3);min-width:0}
.form .pair .chips{flex-wrap:nowrap}
@media (max-width:640px){
  .chips.f4{grid-template-columns:repeat(4,auto);justify-content:space-between;gap:4px}
  .chips.f4 span{gap:0;padding:0 9px;font-size:13px}
  .chips.f4 i{display:none}
  .form .pair{gap:10px 10px}
  .form .pair .chips{gap:4px}
  .form .pair .chips span{height:34px;padding:0 9px;font-size:13.5px}
  .form .pair .days{gap:3px}
  .form .pair .days span{width:31px;padding:0;justify-content:center}
}
@media (max-width:345px){
  .form .pair{grid-template-columns:1fr}
  .chips.f4 span{padding:0 6px;font-size:12px}
}

