:root {
  --black: #0a0a0a;
  --white: #fff;
  --paper: #fff;      /* 프레임 안 배경 */
  --outside: #ededed; /* PC에서 프레임 바깥 */
  --sub: #777;
  --frame: 480px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --display: "Archivo Black", var(--font);
}

/* 저녁 18시~새벽 6시: 다크. 글자·버튼 색을 뒤집고, 고정색 쓰는 곳은 아래 [data-theme="dark"] 규칙에서 따로 */
:root[data-theme="dark"] {
  --black: #f2f2f2;
  --white: #141414;
  --paper: #0e0e0e;
  --outside: #000;
  --sub: #9a9a9a;
}
body, .frame, .type, .row { transition: background-color .6s var(--ease), color .6s var(--ease); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--outside);
  color: var(--black);
  font-family: var(--font);
  line-height: 1.6;
  letter-spacing: -.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.frame { max-width: var(--frame); margin: 0 auto; min-height: 100vh; background: var(--paper); }

/* ── 헤더 ───────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 8px;
  background: #0a0a0a; color: #fff; /* 상단 바는 다크에서도 그대로 검정 */
}
.wordmark { display: block; }
.wordmark img { display: block; width: 168px; height: auto; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .2s, transform .2s var(--ease); }
.icon-btn:active { transform: scale(.9); }
@media (hover: hover) { .icon-btn:hover { background: rgba(255, 255, 255, .12); } }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }

/* ── 1. 첫 화면 ─────────────────────── */
.hero {
  --p: 0; /* 꾹 누른 정도 0~1, JS가 채움 */
  min-height: calc(100svh - 52px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  padding: 24px 28px 72px;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
/* 첫 화면에서는 상단 바를 숨기고 그 자리에 시계 (목록 화면에서는 바가 다시 보임) */
.frame:not(:has(.screen:target)) .topbar { display: none; }
.frame:not(:has(.screen:target)) .hero { min-height: 100svh; }

/* 지금 시각: 탁상 플립시계처럼 검정 카드에 숫자, 가운데 갈라진 선. 숫자가 바뀌면 위에서 넘어옴 */
.hero-time { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: fade .9s .08s var(--ease) both; }
/* 시:분:초 여섯 장 모두 같은 크기. 카드 폭(--cw)은 화면 폭에 맞춰 줄어듦 */
.flip { --cw: min(56px, calc((min(100vw, 480px) - 96px) / 6.5)); display: flex; align-items: center; gap: 5px; perspective: 400px; }
.flip-d {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  width: var(--cw); height: calc(var(--cw) * 1.4);
  border-radius: calc(var(--cw) * .18);
  background: linear-gradient(#262626 0 50%, #111 50% 100%);
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #fafafa;
  font-family: var(--display); font-size: calc(var(--cw) * .97); line-height: 1;
  font-variant-numeric: tabular-nums;
  transform-origin: 50% 50%;
}
.flip-d::after { /* 가운데 갈라진 선 */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(0, 0, 0, .65); box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.flip-d.is-flip { animation: flip .5s cubic-bezier(.3, .6, .3, 1); }
@keyframes flip { 0% { transform: rotateX(80deg); filter: brightness(.6); } 100% { transform: rotateX(0); filter: none; } }
/* 콜론: 카드 높이 가운데에 두 점 */
.flip-colon { position: relative; flex: none; width: calc(var(--cw) * .14); height: calc(var(--cw) * .55); margin: 0 2px; }
.flip-colon::before, .flip-colon::after { content: ""; position: absolute; left: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--black); }
.flip-colon::before { top: 0; } .flip-colon::after { bottom: 0; }
.flip-colon { animation: tick 1s steps(1) infinite; }
@keyframes tick { 50% { opacity: .25; } }
.hero-char {
  width: 240px; height: auto;
  /* 누를수록 커지고 떨림 (아래 시계를 덮지 않게 위로 커짐) */
  transform-origin: 50% 100%;
  transform: scale(calc(1 + var(--p) * .1)) rotate(calc(var(--shake, 0) * 1deg));
  animation: fade .9s var(--ease) both;
}

/* 진행률 버튼 (lucianLabs #004 기반) */
.enter { position: relative; height: 66px; display: flex; justify-content: center; animation: fade .9s .12s var(--ease) both; }
.enter-btn {
  --p: 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: block; width: 268px; height: 66px;
  border-radius: 999px;
  background: var(--black); color: var(--white);
  box-shadow: 0 22px 36px -22px rgba(0, 0, 0, .5);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: none; /* 꾹 누르는 중 손가락이 조금 움직여도 스크롤로 넘어가며 끊기지 않게 */
  transition: width .6s var(--ease), transform .5s var(--spring);
}
/* 마우스를 올리면: 살짝 떠오르고, 그림자가 깊어지고, 빛이 한 번 스치고, 그림이 흔들림 */
.enter-btn::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
}
@media (hover: hover) {
  .enter[data-state="idle"] .enter-btn:hover { transform: translateY(-4px); box-shadow: 0 28px 40px -20px rgba(0, 0, 0, .55); }
  .enter[data-state="idle"] .enter-btn:hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }
}
[data-theme="dark"] .enter-btn::after { background: linear-gradient(105deg, transparent 35%, rgba(0, 0, 0, .12) 50%, transparent 65%); }
.enter[data-state="run"] .enter-btn { transform: scale(.97); }
.enter-btn:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.enter-btn.is-nudge { animation: nudge .45s var(--spring); }
@keyframes nudge { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

.enter-idle, .enter-run, .enter-ok {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.enter-idle { gap: 14px; padding: 0 9px; }
/* 왼쪽 동그라미: 시간대 대표 그림 (JS 없으면 화살표) */
.enter-arw { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--black); overflow: hidden; }
.enter-arw svg { width: 38px; height: 38px; }
.enter-arw .enter-fallback { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .enter[data-state="idle"] .enter-btn:hover .enter-arw svg { animation: wiggle .6s var(--spring); } }
.enter-a { transition: transform .5s var(--ease); }
@media (hover: hover) { .enter-btn:hover .enter-a { animation: bob 1s var(--ease) infinite; } }
@keyframes bob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
/* 문구는 버튼 가운데: 왼쪽 그림(48px)+간격(14px)만큼 오른쪽도 비워서 균형 */
.enter-idle b { flex: 1; margin-right: 62px; text-align: center; white-space: nowrap; font-size: 17px; font-weight: 700; letter-spacing: -.02em; transition: letter-spacing .35s var(--ease); }
@media (hover: hover) { .enter[data-state="idle"] .enter-btn:hover .enter-idle b { letter-spacing: .01em; } }

/* 누르는 중: 버튼 바탕이 막대가 됨 */
.enter-track { position: absolute; inset: 0; background: #2b2b2b; opacity: 0; transition: opacity .4s var(--ease); }
.enter-bar { position: absolute; inset: 0; background: var(--white); transform-origin: 0 50%; transform: scaleX(var(--p)); border-radius: inherit; }
.enter-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, .08) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shine 1.3s linear infinite;
}
@keyframes shine { from { background-position: 120% 0; } to { background-position: -100% 0; } }
/* 흰 막대 위에서는 글자가 검게 뒤집힘 */
.enter-run { opacity: 0; transform: translateY(12px); }
/* 막대 위 물건 자리: 막대가 지나가면 하나씩 톡 올라옴 */
.enter-items { position: absolute; inset: 0 14px; }
.enter-item {
  position: absolute; top: 50%; width: 42px; height: 42px;
  transform: translate(-50%, -50%) scale(0) rotate(-25deg);
  transition: transform .4s var(--spring);
}
.enter-item.is-on { transform: translate(-50%, -50%) scale(1) rotate(0); }
.enter-item svg { width: 100%; height: 100%; display: block; }
.steam { animation: steam 1.4s ease-in-out infinite; }
.steam:nth-of-type(2) { animation-delay: .25s; }
.steam:nth-of-type(3) { animation-delay: .5s; }
@keyframes steam { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-2px); opacity: .45; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 65% { transform: rotate(9deg); } }

.enter-ok { justify-content: center; gap: 10px; opacity: 0; transform: scale(.6); }
.enter-ok i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.enter-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.enter-ok path { stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .45s var(--ease) .25s; }
.enter-ok > span { font-size: 16px; font-weight: 700; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .6s var(--ease), opacity .4s var(--ease); }

.enter[data-state="run"] .enter-idle { opacity: 0; transform: translateY(-12px); }
.enter[data-state="run"] .enter-a { transform: translateX(26px); }
.enter[data-state="run"] .enter-track { opacity: 1; }
.enter[data-state="run"] .enter-run { opacity: 1; transform: none; }
.enter[data-state="fold"] .enter-idle, .enter[data-state="done"] .enter-idle { opacity: 0; }
.enter[data-state="fold"] .enter-btn { width: 66px; }
.enter[data-state="fold"] .enter-ok, .enter[data-state="done"] .enter-ok { opacity: 1; transform: none; }
.enter[data-state="fold"] .enter-ok path, .enter[data-state="done"] .enter-ok path { stroke-dashoffset: 0; }
.enter[data-state="done"] .enter-btn { width: var(--done-w, 220px); transition-timing-function: var(--spring); }
.enter[data-state="done"] .enter-ok > span { max-width: 260px; opacity: 1; }
.enter-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero.is-done .hero-char { animation: gulp .5s var(--spring) forwards; }
.hero.is-leaving { opacity: 0; transform: translateY(-12px); }
@keyframes gulp { 40% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1.05); } }
@keyframes fade { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* 화면 전환: 기본은 첫 화면, /#menu 이면 메뉴만 (JS 없이도 동작) */
.screen { display: none; scroll-margin-top: 52px; }
.screen:target { display: block; }
main:has(.screen:target) .hero { display: none; }

/* ── 2. 메뉴 ───────────────────────── */
/* 타이핑 입력창: 헤더 아래 붙어 있어 키보드가 올라와도 보임 */
/* 입력 영역: 가운데 정렬 + 둥근 테두리 입력칸으로 목록 글자와 구분.
   크기는 스크롤과 상관없이 고정(바뀌면 스크롤 위치가 흔들려 떨림). 붙었을 때는 그림자만 */
.type {
  position: sticky; top: 52px; z-index: 5;
  display: block;
  padding: 24px 20px 18px;
  background: var(--paper);
  text-align: center;
  transition: box-shadow .25s var(--ease);
}
.type-hint { display: block; font-size: 13px; font-weight: 600; color: var(--sub); }
.type-input {
  display: block; width: 100%;
  margin-top: 8px; padding: 12px 18px;
  border: 1.5px solid var(--black); border-radius: 999px;
  background: var(--white); outline: none;
  text-align: center;
  font: inherit; font-size: 22px; font-weight: 800; letter-spacing: -.04em;
  color: var(--black); caret-color: var(--black);
}
.type-input::placeholder { color: #c8c8c8; }
.type-msg { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.type-msg:empty { display: none; }
.type.is-stuck { box-shadow: 0 12px 20px -14px rgba(0, 0, 0, .4); }
.type.is-wrong .type-input { animation: nudge .4s var(--spring); text-decoration: line-through; }
/* 칸을 눌렀는데 아직 안 열렸을 때: 입력창을 살짝 튕겨서 여기에 쓰라고 알려 줌 */
.type.is-hint .type-input { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.04); } }
.row.is-nudge { animation: nudge .45s var(--spring); }

/* 프로젝트는 모두 같은 폭의 그림자 카드 */
.list { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 0; }
.list li, .next, .note { animation: in .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 60ms); }

/* 자판기 구조: 2열 칸. 이름을 맞히면 그 칸이 선택되고, 꾹 누르면 그 프로젝트로 들어감 */
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row {
  --p: 0;
  position: relative;
  display: flex; flex-direction: column;
  height: 100%; min-height: 150px;
  padding: 16px 14px 46px; /* 아래 46px: 열렸을 때 '꾹 눌러서 들어가기' 자리 */
  background: #f4f4f4; /* 아직 안 열린 칸: 연한 회색 (누를 수 없는 상태) */
  border-radius: 18px;
  overflow: hidden; /* 꾹 누를 때 차오르는 검정도 둥근 모서리 안에서 */
  box-shadow: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .35s var(--ease), background-color .35s var(--ease);
}
/* 열린 카드: 잉크가 거의 다 차오른 뒤 더 떠오르고, 나머지 카드는 흐려짐 */
.row.is-open {
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .1);
  transition-delay: 1.1s;
}
.list:has(.row.is-open) .row:not(.is-open) { opacity: .4; transition-delay: 1.1s; }
/* 꾹 누르는 동안 아래에서 차오름. 흰 막을 difference로 덮어서, 차오른 부분만 바탕은 검게·글자는 희게 뒤집힘 */
.row::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: #fff; mix-blend-mode: difference; /* 흰 막이어야 라이트·다크 모두 뒤집힘 */
  transform: scaleY(var(--p)); transform-origin: bottom;
  pointer-events: none;
}

/* 이름: 친 글자는 검정, 남은 글자는 회색, 그 사이에 깜빡이는 커서 */
.row-name { padding-right: 28px; font-size: 20px; font-weight: 800; letter-spacing: -.045em; line-height: 26px; color: #9c9c9c; }
/* 치기 시작하면 안 맞는 칸은 흐려짐 */
.row.is-miss { opacity: .35; }
.row-name .typed { color: var(--black); }
/* 이름을 다 맞게 치면 글자 안에 검정 잉크가 물결치며 차오르고, 다 찬 뒤에도 윗면이 찰랑거림.
   물결 그림 두 겹(앞: 진한 잉크, 뒤: 옅은 잉크)을 글자 모양으로 잘라 보여 주고,
   --ink-y(수위)와 --ink-x(물결 흐름)를 따로 움직임 */
@property --ink-y { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ink-x { syntax: '<length>'; inherits: false; initial-value: 0px; }
.row.is-open .row-name .typed {
  color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100' preserveAspectRatio='none'%3E%3Cpath d='M0 8C13 2 27 2 40 8S67 14 80 8V100H0Z' fill='%230a0a0a'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100' preserveAspectRatio='none'%3E%3Cpath d='M0 8C13 2 27 2 40 8S67 14 80 8V100H0Z' fill='%230a0a0a' fill-opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(#cfcfcf, #cfcfcf);
  background-size: 80px 2.2em, 80px 2.2em, 100% 100%;
  background-repeat: repeat-x, repeat-x, no-repeat;
  /* 앞 물결은 왼쪽으로, 뒤 물결은 반대로 흘러서 출렁이는 느낌 */
  background-position:
    var(--ink-x) var(--ink-y),
    calc(23px - var(--ink-x)) calc(var(--ink-y) - .08em),
    0 0;
  -webkit-background-clip: text; background-clip: text;
  animation: ink-rise 1.6s cubic-bezier(.25, .6, .3, 1) forwards, ink-wave 1.4s linear infinite;
}
/* 다 차도 글자 윗부분에 물결이 보이도록 살짝 덜 채움 */
@keyframes ink-rise { from { --ink-y: 1.4em; } to { --ink-y: .14em; } }
@keyframes ink-wave { to { --ink-x: -80px; } }
/* 누르는 동안엔 검정으로 돌려서 차오른 부분이 흰 글자로 뒤집히게 */
.row.is-open.is-holding .row-name .typed { color: var(--black); background: none; animation: none; }
.row-name .caret { border-left: 2px solid var(--black); margin: 0 -1px 0 1px; animation: blink 1s steps(1) infinite; } /* inline이라 이름 중간에서 줄이 꺾이지 않음 */
@keyframes blink { 50% { opacity: 0; } }
.row-desc { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: #a8a8a8; transition: color .3s; }
.row.is-open .row-desc { color: #666; }

/* 링크라는 표시: 입력 전부터 보이는 ↗(열리면 숨김). 이름을 다 치면 카드 아래에 '꾹 눌러서 들어가기' */
.row-arrow { /* 이름 첫 줄(16px 여백 + 26px 줄 높이) 가운데에 맞춤. 열리기 전엔 회색 */
  position: absolute; right: 13px; top: 19px;
  width: 20px; height: 20px;
  fill: none; stroke: #b3b3b3; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .2s, transform .3s var(--ease);
}
.row.is-open .row-arrow { opacity: 0; transform: translate(4px, -4px); }

/* 이름을 다 치면 열림: 꾹 누르라는 표시가 나타남 */
.row-go {
  position: absolute; left: 14px; bottom: 14px; /* 카드 아래 빈 공간: 이름을 가리지 않게 */
  padding: 5px 11px; border-radius: 999px;
  background: var(--black); color: var(--white);
  font-size: 11.5px; font-weight: 700;
  opacity: 0; transform: translateY(6px) scale(.9); transform-origin: left bottom;
  transition: opacity .3s var(--ease), transform .4s var(--spring);
  pointer-events: none;
}
.row.is-open { cursor: pointer; touch-action: none; }
.row.is-open .row-go { opacity: 1; transform: none; }
.row:not(.is-open) { cursor: text; }

/* 다음 프로젝트: 아직 비어 있는 칸(점선). 아이디어를 인스타그램 DM으로 받는 작은 입구 (보조 기능) */
.next {
  display: flex; justify-content: space-between; align-items: center;
  margin: 10px 20px 0; padding: 18px 16px;
  border: 1.5px dashed #c4c4c4; border-radius: 14px;
  font-size: 13px; color: #8a8a8a;
  transition: border-color .2s, color .2s;
}
.next b { font-size: 15px; font-weight: 700; color: #8a8a8a; }
.next span { font-weight: 600; border-bottom: 1px solid currentColor; }
@media (hover: hover) { .next:hover { border-color: var(--black); color: var(--black); } }
.next:active { opacity: .6; }


/* 지금 접속자 수: 깜빡이는 점 + 한 줄 */
.here { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--sub); }
.here[hidden] { display: none; }
.here i { width: 7px; height: 7px; border-radius: 50%; background: #2ec27e; box-shadow: 0 0 0 0 rgba(46, 194, 126, .5); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(46, 194, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 194, 126, 0); } }
.type .here { margin-top: 10px; font-size: 12px; }

.note { padding: 40px 20px 0; }
.note p { font-size: 14px; color: #444; }
.note p + p { margin-top: 10px; }
.note-link {
  display: inline-block; margin-top: 20px;
  font-size: 14px; font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  transition: opacity .2s;
}
.note-link:active { opacity: .5; }

.foot { padding: 64px 20px calc(40px + env(safe-area-inset-bottom)); font-family: var(--display); font-size: 11px; color: #b0b0b0; }
.foot-logo { width: 150px; height: auto; margin-bottom: 14px; opacity: .9; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px;
  background: var(--black); color: var(--white); font-size: 13px;
}

/* ── 다크: 고정색을 쓰는 곳 ───────────── */
/* 다크는 첫 화면에만 (목록 화면은 항상 라이트).
   검정 로고를 흰색으로. 등장 애니메이션이 filter를 덮으므로 반전을 넣은 별도 애니메이션 */
[data-theme="dark"] .hero-char { filter: invert(1); animation-name: fade-inv; }
@keyframes fade-inv { from { opacity: 0; filter: invert(1) blur(6px); } to { opacity: 1; filter: invert(1); } }
/* 시계: 밝은 카드에 검정 숫자 */
[data-theme="dark"] .flip-d {
  background: linear-gradient(#fafafa 0 50%, #e4e4e4 50% 100%);
  color: #111;
  box-shadow: 0 10px 22px -10px rgba(255, 255, 255, .18);
}
[data-theme="dark"] .flip-d::after { background: rgba(0, 0, 0, .35); box-shadow: none; }
/* 버튼은 밝게 뒤집히고, 그림 동그라미와 차오르는 막대는 그림이 잘 보이게 흰색 유지 */
[data-theme="dark"] .enter-btn { box-shadow: 0 22px 36px -22px rgba(255, 255, 255, .25); }
[data-theme="dark"] .enter-arw { background: #fff; color: #111; }
[data-theme="dark"] .enter-track { background: #bdbdbd; }
[data-theme="dark"] .enter-bar { background: #fff; }
[data-theme="dark"] .enter-ok i { background: rgba(0, 0, 0, .1); }

@media (prefers-reduced-motion: reduce) {
  .hero-char, .enter, .enter-btn.is-nudge, .enter-bar::after, .list li, .next, .note, .hero.is-done .hero-char { animation: none; }
  .row.is-open .row-name .typed { animation: none; --ink-y: 0px; } /* 움직임 없이 꽉 찬 잉크로 */
}
