/* 더시드 새 홈 — 컴퓨터 화면 · 글라스 (2026-10-28 시작) */
:root {
  --bg: #05070d;
  --fg: #f2f4f8;
  --sub: rgba(242, 244, 248, .62);
  --blue: #8fd3f4;
  --gold: #d6a55c;
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .11);
  --edge: rgba(255, 255, 255, .16);
  --hi: rgba(255, 255, 255, .28);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--sans);
  overflow: hidden; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── 글라스 ── */
.glass {
  background: linear-gradient(160deg, var(--glass-strong), var(--glass) 60%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--hi), 0 24px 60px rgba(0, 0, 0, .45);
}

/* ── 바탕화면 ── */
.wall { position: fixed; inset: 0; overflow: hidden; z-index: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 28px 28px,
    radial-gradient(120% 80% at 50% 120%, #0b1424 0%, var(--bg) 60%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -10vmax; background: radial-gradient(circle, #2c7fb8, transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 46vmax; height: 46vmax; right: -12vmax; bottom: -14vmax; background: radial-gradient(circle, #a8732f, transparent 65%); animation: drift2 30s ease-in-out infinite alternate; }
.b3 { width: 30vmax; height: 30vmax; left: 40%; top: 35%; background: radial-gradient(circle, #3d5f9a, transparent 65%); opacity: .35; animation: drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-8vmax, -5vmax) scale(1.08); } }

/* ── 메뉴 막대 ── */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: 34px;
  display: flex; align-items: center; gap: 22px; padding: 0 16px;
  border-width: 0 0 1px; border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
  font-size: 13px; font-weight: 500;
}
.mb-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .08em; }
.mb-logo img { width: 16px; }
.mb-menu { display: flex; gap: 18px; color: var(--sub); }
.mb-item { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.mb-item:hover { color: var(--fg); }
.mb-clock { margin-left: auto; color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-logo { white-space: nowrap; flex: 0 0 auto; }
.mb-who { display: flex; align-items: center; gap: 7px; padding: 3px 10px 3px 4px; margin-right: -6px; border-radius: 999px; color: var(--fg); transition: background .2s; }
.mb-who:hover { background: rgba(255,255,255,.08); }
.mb-who:not(:has(.dot)) { padding: 3px 10px; }
.mb-who .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #05070d;
  background: linear-gradient(135deg, var(--blue), var(--gold)); }

/* ── 창 ── */
.desk { position: fixed; inset: 34px 0 0; z-index: 5; display: grid; place-items: center; padding: 16px 16px 120px; }
.desk > * { grid-area: 1 / 1; }

/* ── 바탕화면 로고 · 회로 목록 (처음 화면) ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desk-logo { position: relative; text-align: center; user-select: none; -webkit-user-select: none;
  transition: opacity .4s, filter .4s, transform .7s cubic-bezier(.22,1,.36,1); }
.desk-logo.open { transform: translate(var(--pan, 0px), var(--shift, 0px)); }
.desk-logo.open.panning { transition: opacity .4s, filter .4s; }
.wall { transform: translateX(var(--pan-bg, 0px)); transition: transform .9s cubic-bezier(.22,1,.36,1); }
/* 하위 가지 끝 목록 — 본 목록보다 조금 작게 */
.hub-sub .t { font-size: 20px; }
.hub-sub .d { margin-top: 4px; }
.hub-item.focus .node { background: var(--tone); box-shadow: 0 0 14px var(--tone); }
.hub-list.focus .hub-item:not(.focus):not(.hub-sub) { opacity: .25; filter: blur(1.5px); }
.hub-list.focus .hub-zone { opacity: .2; }
/* 휴대폰 — 좌우로 밀어 보라는 안내 */
.hub-swipe { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; white-space: nowrap; pointer-events: none;
  font-size: 11.5px; letter-spacing: .06em; color: rgba(242,244,248,.6); opacity: 0; transition: opacity .6s; display: none; }
.hub-swipe span { display: inline-block; color: var(--blue); animation: nudge 1.4s ease-in-out infinite; }
.hub-swipe span:last-child { color: var(--gold); animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(-4px); } }
.hub-swipe.on { opacity: 1; }
.desk.has-win .desk-logo { opacity: .18; filter: blur(2px); }

.hub-btn { position: relative; z-index: 2; display: block; margin: 0 auto; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 24px; }
.hub-btn img { width: clamp(120px, 22vmin, 200px); margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(143, 211, 244, .38)) drop-shadow(0 0 60px rgba(214, 165, 92, .18));
  transition: transform .5s cubic-bezier(.22,1,.36,1), filter .5s; }
.hub-btn:hover img { transform: scale(1.035); filter: drop-shadow(0 0 34px rgba(143, 211, 244, .55)) drop-shadow(0 0 70px rgba(214, 165, 92, .28)); }
.hub-btn:active img { transform: scale(.97); transition-duration: .15s; }
.hub-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 10px; }
.hub-btn.charge img { animation: charge .5s cubic-bezier(.22,1,.36,1); }
@keyframes charge { 35% { transform: scale(.95); filter: brightness(1.5) drop-shadow(0 0 40px rgba(143,211,244,.9)); } }
.desk-word, .desk-sub { display: block; transition: opacity .35s, transform .45s cubic-bezier(.22,1,.36,1); }
.desk-word { margin-top: 30px; font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 2.2vmin, 18px); letter-spacing: .38em; padding-left: .38em; }
.desk-sub { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; padding-left: .3em; color: var(--gold); opacity: .85; }
.desk-logo.open .desk-word, .desk-logo.open .desk-sub { opacity: 0; transform: translateY(-6px); }

.hub-hint { position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--sub); opacity: 0; transition: opacity .8s; pointer-events: none; }
.hub-hint::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
  background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: blink 1.4s steps(1) infinite; }
.hub-hint.on { opacity: .75; }
.desk-logo.open .hub-hint, .desk.has-win .hub-hint { opacity: 0; transition-duration: .2s; }

/* 회로 — 좌표는 hub.js 가 목록 자리를 재서 그림 */
.hub-lines { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; z-index: 1; }
.hub-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hub-lines .glow { stroke-width: 7; opacity: .42; filter: url(#hub-glow); transition: opacity .3s, stroke-width .3s; }
.hub-lines .core { stroke-width: 1.7; transition: stroke-width .3s, opacity .3s; }
.hub-lines .twig { transform-box: fill-box; transform-origin: center; }
.hub-lines .twig-line { stroke-width: 1.2; opacity: .85; }
.hub-lines g.dim .twig { filter: opacity(.35); }
.hub-lines .spark { stroke: #fff; stroke-width: 2.2; opacity: .9; }
.hub-lines .surge { stroke: #fff; stroke-width: 3.4; filter: url(#hub-glow-s); }
.hub-lines g.dim .core { opacity: .35; } .hub-lines g.dim .glow { opacity: .12; }
.hub-lines g.hot .core { stroke-width: 2.6; } .hub-lines g.hot .glow { opacity: .85; stroke-width: 10; }

/* 목록 — 가지 끝에 달림. 자리(left · top)는 hub.js 가 가지 끝 마디 자리로 정함 */
.hub-list { position: absolute; left: 0; top: 0; width: 0; height: 0; visibility: hidden; z-index: 2; }
.desk-logo.open .hub-list, .desk-logo.closing .hub-list { visibility: visible; }
.hub-item { position: absolute; left: 0; top: 0; width: 210px; display: flex; flex-direction: column; gap: 0;
  padding: 14px 16px 15px; border-radius: 18px; color: var(--fg); outline: none;
  opacity: 0; transform: translateX(var(--from, 0px)); filter: blur(4px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1), filter .5s; }
/* 왼쪽 가지 끝 목록은 마디 왼쪽에(글자 오른쪽 맞춤), 오른쪽은 마디 오른쪽에 */
.hub-item[data-side="left"] { translate: calc(-100% - 16px) -50%; text-align: right; align-items: flex-end; --from: 10px; }
.hub-item[data-side="right"] { translate: 16px -50%; text-align: left; align-items: flex-start; --from: -10px; }
.hub-item.on { opacity: 1; transform: none; filter: none; }
.hub-item::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transform: scale(.96); transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1); }
.hub-item:hover::before, .hub-item:focus-visible::before { opacity: 1; transform: none; }
.hub-item:focus-visible { box-shadow: 0 0 0 2px var(--tone); }
.hub-item[data-tone="blue"] { --tone: var(--blue); --tone-a: rgba(143,211,244,.55); }
.hub-item[data-tone="gold"] { --tone: var(--gold); --tone-a: rgba(214,165,92,.55); }
/* 구역 이름 — 왼쪽 사업 · 오른쪽 이용 플랫폼 */
.hub-zone { position: absolute; white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--faint, rgba(242,244,248,.38));
  opacity: 0; transition: opacity .6s .1s; pointer-events: none; }
.hub-zone[data-side="left"] { translate: calc(-100% - 16px) -50%; text-align: right; color: rgba(143,211,244,.5); }
.hub-zone[data-side="right"] { translate: 16px -50%; color: rgba(214,165,92,.55); }
.hub-zone.on { opacity: 1; }
.hub-list.focus .hub-zone { opacity: 0; }
@media (max-width: 759px) { .hub-zone { font-size: 8.5px; letter-spacing: .18em; } .hub-zone[data-side="left"] { translate: calc(-100% - 12px) -50%; } .hub-zone[data-side="right"] { translate: 12px -50%; } }
/* 마디 — 가지 끝의 동그란 단자 (엠블럼의 회로 점) */
.hub-item .node { position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  border: 1.8px solid var(--tone); background: #05070d; box-shadow: 0 0 10px var(--tone-a); transform: scale(0); }
.hub-item[data-side="left"] .node { right: -22px; }
.hub-item[data-side="right"] .node { left: -22px; }
.hub-item.on .node { animation: node-pop .55s cubic-bezier(.22,1,.36,1) both; }
.hub-item .node::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--tone); opacity: 0; }
.hub-item.on .node::after { animation: ripple .9s ease-out .05s; }
.hub-item:hover .node, .hub-item:focus-visible .node { background: var(--tone); box-shadow: 0 0 16px var(--tone), 0 0 4px #fff; }
@keyframes node-pop { 0% { transform: scale(0); } 60% { transform: scale(1.5); background: #fff; } 100% { transform: scale(1); } }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(4.2); } }
.hub-item .no em { font-style: normal; }
.hub-item .no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--tone); opacity: .9; }
.hub-item .t { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15;
  transition: transform .4s cubic-bezier(.22,1,.36,1); }
.hub-item .d { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--sub); }
.hub-item .go { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--tone);
  opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1); }
.hub-item[data-side="left"] .go { transform: translateX(4px); }
.hub-item[data-side="right"] .go { transform: translateX(-4px); }
.hub-item:hover .go, .hub-item:focus-visible .go { opacity: 1; transform: none; }
.hub-item[data-side="left"]:hover .t { transform: translateX(-2px); }
.hub-item[data-side="right"]:hover .t { transform: translateX(2px); }
.hub-item:active { transform: scale(.98); transition-duration: .12s; }
.hub-list.picked .hub-item:not(.picked) { opacity: .25; filter: blur(2px); }

/* 페이지로 넘어갈 때 */
.page-fade { position: fixed; inset: 0; z-index: 90; background: #05070d; opacity: 0; pointer-events: none; transition: opacity .32s ease-in; }
body.leaving .page-fade { opacity: 1; }

/* 휴대폰 — 작게. 로고 · 글자 · 목록을 줄이고, 목록은 번호 · 이름만 작은 알약으로 (2026-10-29 운영자 「핸드폰에서 너무 크다」) */
@media (max-width: 759px) {
  .hub-btn img { width: 92px; }
  .desk-word { margin-top: 18px; font-size: 13px; letter-spacing: .34em; padding-left: .34em; }
  .desk-sub { margin-top: 7px; font-size: 9.5px; }
  .hub-hint { font-size: 10px; top: calc(100% + 14px); }
  /* 로고는 뒤로 물러나고(작고 흐리게) 목록이 앞으로 (2026-10-31 운영자 「한 화면에 갇힌 느낌, 로고 뒤로, 목록 자세히, 좌우로 끌기」) */
  .desk-logo.open .hub-btn img { transform: scale(.5); opacity: .5; filter: blur(.5px) drop-shadow(0 0 20px rgba(143,211,244,.3)); }
  .hub-swipe { display: block; }
  .desk.open-m { touch-action: none; }
  /* 네모 틀 없이 글자만 — 가지 끝 마디 옆에 이름이 떠 있게 (2026-10-29 운영자 「네모난 틀 없애」) */
  .hub-item { width: 150px; max-width: none; padding: 6px 4px; border-radius: 0; }
  .hub-item[data-side="left"] { translate: calc(-100% - 12px) -50%; }
  .hub-item[data-side="right"] { translate: 12px -50%; }
  .hub-item .node { width: 10px; height: 10px; margin-top: -5px; }
  .hub-item[data-side="left"] .node { right: -17px; }
  .hub-item[data-side="right"] .node { left: -17px; }
  .hub-item .no { display: block; font-size: 9.5px; letter-spacing: .16em; margin-bottom: 3px; }
  .hub-item .no em { display: inline; }
  .hub-item .t { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; line-height: 1.2;
    text-shadow: 0 0 18px rgba(5,7,13,.9), 0 1px 2px rgba(5,7,13,.8); }
  .hub-item .d { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: rgba(242,244,248,.55); }
  .hub-item .go { display: none; }
  .hub-sub .t { font-size: 16px; }
  /* 긴 이름(THESEED COMPANY)은 두 줄로 */
  .hub-item .t.long { white-space: normal; font-size: 16px; letter-spacing: .02em; }
  .hub-item::before { display: none; }
  .hub-item::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 1.5px; border-radius: 2px;
    background: var(--tone); box-shadow: 0 0 8px var(--tone); transform: scaleX(0); transition: transform .45s cubic-bezier(.22,1,.36,1); }
  .hub-item[data-side="left"]::after { transform-origin: 100% 50%; } .hub-item[data-side="right"]::after { transform-origin: 0 50%; }
  .hub-item:focus-visible { box-shadow: none; } .hub-item:focus-visible::after { transform: none; }
  .dock-item.ghost { display: none; } .dock-sep { display: none; }
  .dock { padding: 7px; gap: 8px; border-radius: 19px; }
  .dock-item { width: 42px; height: 42px; border-radius: 11px; }
  .dock-item img { width: 24px; }
  .dock-sep { height: 28px; }


  /* 목록을 누르면 — 그 가지 쪽으로 확대되고 아래에서 상세 목록이 올라옴 */
  .desk-logo.open.zoomed { transform-origin: 0 0; transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(var(--zs, 1)); transition: transform .65s cubic-bezier(.22,1,.36,1); }
  .hub-list.focus .hub-item:not(.focus):not(.hub-sub) { opacity: .22; filter: blur(1.5px); }
  .hub-item.focus .t { color: #fff; text-shadow: 0 0 14px var(--tone-a), 0 0 18px rgba(5,7,13,.9); }
  .hub-item.focus::after { transform: none; }
  .hub-item.focus .node { background: var(--tone); box-shadow: 0 0 14px var(--tone); }
  body.zoomed .dock { opacity: 0 !important; pointer-events: none; transform: translate(-50%, 30px); transition: opacity .3s, transform .4s; }
  body.zoomed .menubar .mb-menu { opacity: 0; }
}

@media (max-width: 374px) {
  .menubar { gap: 10px; padding: 0 10px; font-size: 12px; }
  .mb-logo span { letter-spacing: .04em; }
  .dock .dock-item { width: 38px; height: 38px; }
  .dock { gap: 6px; }
}

/* 상세 목록 (휴대폰) — 코드 창 (2026-10-30 운영자 「창 말고, 01 뜨면서 코딩 창처럼 깔끔하게. 글자 색은 목록 색대로」)
   거의 검은 판에 그 목록 색 한 가지. 열리면 뒤로 01 이 한 번 쏟아지고, 글자는 01 에서 풀려 나옴 */
.hub-sheet { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto; border-radius: 16px; overflow: hidden; isolation: isolate;
  --tone: var(--blue); --tone-dim: rgba(143,211,244,.55); --tone-faint: rgba(143,211,244,.14);
  font-family: var(--mono), "Noto Sans KR", monospace;
  background: rgba(6,9,14,.9);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--tone-faint), 0 0 0 1px rgba(0,0,0,.4), 0 24px 70px rgba(0,0,0,.6), 0 0 50px var(--tone-faint);
  transform: translateY(calc(100% + 30px)); visibility: hidden; touch-action: none;
  transition: transform .5s cubic-bezier(.22,1,.36,1), visibility 0s .5s, box-shadow .4s; }
.hub-sheet.on { transform: translateY(var(--drag, 0px)); visibility: visible; transition: transform .5s cubic-bezier(.22,1,.36,1), visibility 0s, box-shadow .4s; }
.hub-sheet.dragging { transition: none; }
.hub-sheet[data-tone="gold"] { --tone: var(--gold); --tone-dim: rgba(214,165,92,.6); --tone-faint: rgba(214,165,92,.15); }

/* 01 비 — 열릴 때 한 번 */
.term-rain { position: absolute; inset: 0; z-index: -1; margin: 0; padding: 10px 12px; overflow: hidden; pointer-events: none;
  font: 500 12px/1.45 var(--mono); letter-spacing: .32em; color: var(--tone); opacity: 0; white-space: pre; }
.term-rain.go { animation: rain 1.4s ease-out; }
@keyframes rain { 0% { opacity: .7; transform: translateY(-16px); } 40% { opacity: .3; } 100% { opacity: 0; transform: translateY(12px); } }

/* 위 막대 — 경로 + 닫기. 여기를 끌어내리면 닫힘 */
.term-bar { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 14px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: grab; }
.term-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 8px var(--tone); flex: 0 0 auto; }
.term-path { font-size: 11.5px; color: var(--tone-dim); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-x { margin-left: auto; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: none; color: rgba(255,255,255,.5); transition: background .2s, color .2s; }
.sheet-x svg { width: 11px; height: 11px; }
.sheet-x:active { background: rgba(255,255,255,.08); color: #fff; }

/* 본문 — 그 목록 색 한 가지로 */
.term-body { padding: 16px 16px 14px; }
.term-title { display: flex; align-items: baseline; gap: 8px; font-size: 25px; font-weight: 700; color: var(--tone); letter-spacing: -.01em; line-height: 1.2; }
.term-prompt { color: var(--tone-dim); font-weight: 500; }
.term-cursor { width: 10px; height: 22px; align-self: center; background: var(--tone); opacity: .85; animation: blink 1.05s steps(1) infinite; }
.term-d { margin-top: 6px; font-size: 12.5px; color: rgba(242,244,248,.45); line-height: 1.55; }
.sheet-list { list-style: none; padding: 0; margin: 14px -6px 0; }
.sheet-list a { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 10px; border-radius: 10px;
  transition: background .2s; -webkit-tap-highlight-color: transparent; }
.sheet-list a:active { background: var(--tone-faint); }
.sheet-list em { font-style: normal; font-size: 11px; color: var(--tone-dim); width: 18px; flex: 0 0 auto; }
.sheet-list b { display: block; font-size: 15.5px; font-weight: 600; color: var(--tone); }
.sheet-list small { display: block; margin-top: 3px; font-size: 12px; color: rgba(242,244,248,.45); }
.sheet-list i { margin-left: auto; font-style: normal; font-size: 14px; color: var(--tone-dim); flex: 0 0 auto; }
.sheet-go { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; color: var(--tone); background: var(--tone-faint); box-shadow: inset 0 0 0 1px var(--tone-dim);
  transition: background .2s, transform .12s; -webkit-tap-highlight-color: transparent; }
.sheet-go:active { transform: scale(.985); background: color-mix(in srgb, var(--tone) 25%, transparent); }
.term-key { font-size: 13px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--tone-dim); line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .term-cursor { animation: none; } }

@media (max-width: 374px) { .hub-item { width: 132px; } .hub-item .t { font-size: 17px; } }
/* 자리를 잴 때만 — 움직임 없이 마지막 모습으로 */
.desk-logo.measure, .desk-logo.measure * { transition: none !important; animation: none !important; }

/* ── 창 ── */
.win { position: relative; width: min(680px, 100%); border-radius: 18px; overflow: hidden; touch-action: none;
  animation: win-open .45s cubic-bezier(.2,.8,.2,1) both; }
.win.closing { animation: win-close .25s ease-in both; }
@keyframes win-open { from { opacity: 0; transform: scale(.92) translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes win-close { to { opacity: 0; transform: scale(.94); filter: blur(4px); } }
.win-bar { position: relative; height: 40px; display: flex; align-items: center; padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08); cursor: grab; user-select: none; }
.win-bar:active { cursor: grabbing; }
.dots { display: flex; gap: 8px; }
.dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: #ff5f57cc; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.dots button:hover { background: #ff5f57; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.dots i:nth-of-type(1) { background: #febc2ecc; } .dots i:nth-of-type(2) { background: #28c840cc; }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--sub); font-weight: 500; letter-spacing: .06em; }
.win-body { padding: clamp(36px, 7vw, 64px) clamp(24px, 6vw, 56px) clamp(40px, 7vw, 60px); text-align: center; }
.win-emb { width: clamp(72px, 12vw, 104px); margin: 0 auto 26px; filter: drop-shadow(0 0 24px rgba(143, 211, 244, .35)); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; color: var(--gold); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 9vw, 76px); font-weight: 700; letter-spacing: .04em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.62)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.term { margin-top: 26px; font-family: var(--mono); font-size: 14px; color: var(--sub); }
.prompt { color: var(--blue); margin-right: 6px; }
.cursor { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: var(--blue); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── 독 ── */
.dock {
  position: fixed; z-index: 10; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 22px; max-width: calc(100% - 32px);
}
.dock-item { position: relative; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: transform .18s ease; }
.dock-item:hover { transform: translateY(-6px) scale(1.06); }
.dock-item img { width: 28px; }
.dock-item .label { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; padding: 4px 9px; border-radius: 7px; background: rgba(20,24,34,.85); border: 1px solid var(--edge); opacity: 0; pointer-events: none; transition: opacity .15s; }
.dock-item:hover .label { opacity: 1; }
.dock-item { cursor: pointer; font: inherit; color: inherit; padding: 0; }
.dock-item.ghost { background: transparent; border: 1px dashed rgba(255,255,255,.18); }
.dock-sep { width: 1px; height: 36px; background: rgba(255,255,255,.16); margin: 0 2px; }

/* ── 켜질 때 (인트로 뒤 / 바로) ── */
.menubar, .hub-btn, .dock { opacity: 0; }
body.booted .menubar { animation: in-down .7s cubic-bezier(.2,.8,.2,1) both; }
body.booted .hub-btn { animation: in-pop .9s cubic-bezier(.2,.8,.2,1) .12s both; }
body.booted .dock { animation: in-up .8s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes in-down { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes in-pop { from { opacity: 0; transform: scale(.94) translateY(12px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes in-up { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ── 인트로 ── */
#intro { position: fixed; inset: 0; z-index: 100; background: #000; transition: opacity .5s; }
html[data-intro="skip"] #intro { display: none; }
#intro.gone { opacity: 0; pointer-events: none; }
.intro-bits, .intro-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-lines { overflow: visible; transition: opacity .5s; }
.intro-logo { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); text-align: center; transition: opacity .6s, filter .6s; }
.intro-logo img { margin: 0 auto; opacity: 0; filter: blur(8px) brightness(.6); transition: opacity 1s ease, filter .9s ease; }
.intro-logo.dim img { opacity: .14; }
.intro-logo.lit img { opacity: 1; filter: blur(0) brightness(1.08) drop-shadow(0 0 22px rgba(143,211,244,.55)) drop-shadow(0 0 40px rgba(214,165,92,.3)); }
.intro-word { position: absolute; left: 50%; top: calc(100% + 34px); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .5em; padding-left: .5em; color: var(--fg); opacity: 0; transition: opacity .8s, letter-spacing 1.2s; }
.intro-logo.word .intro-word { opacity: .9; letter-spacing: .38em; }
.intro-logo.out { opacity: 0; filter: blur(10px); }
/* 건너뛰기 — 마우스면 커서 옆 말풍선, 손가락이면 아래 안내. 어디를 눌러도 건너뜀 */
#intro { cursor: pointer; }
.intro-tip { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  font: 500 12px var(--sans); color: #fff; padding: 6px 11px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .2s; }
.intro-tip.on { opacity: 1; }
.intro-hint { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); text-align: center;
  font: 500 13px var(--sans); color: rgba(255,255,255,.45); transition: opacity .3s; display: none; }
@media (hover: none), (pointer: coarse) { .intro-hint { display: block; } .intro-tip { display: none; } }
#intro.leaving .intro-hint, #intro.leaving .intro-tip { opacity: 0; }

@media (max-width: 640px) {
  .menubar { gap: 14px; padding: 0 12px; }
  .mb-menu { display: none; }
  .desk { padding-bottom: 110px; }

}
@media (hover: none) { .dock-item .label { display: none; } .dock-item:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .blob, .cursor, .hub-hint::before { animation: none; }
  .hub-item, .desk-logo { transition-duration: .01s; }
}
