@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/*
 * 라이트 테마. 방향: 또렷하고 차분하게, 밝은 회의실·종이 보고서·형광펜.
 * - 조작 화면(발표석)은 회색 계열, 장표·스크린은 따뜻한 종이색.
 * - 강조는 호박색 하나. 형광펜 칠(--marker)은 읽은 부분 표시에만 쓴다.
 */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --raised: #f4f4f5;
  --ink: #171717;
  --ink2: #525252;
  --mute: #737373;
  --line: rgba(23, 23, 23, .08);
  --line2: rgba(23, 23, 23, .14);
  --accent: #e59a2f;      /* 채움(막대·진행 막대) */
  --accent-ink: #b45309;  /* 글자로 쓸 때 */
  --marker: #ffe08a;      /* 형광펜 */
  --red: #dc2626;
  --green: #16a34a;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
/* 장표·스크린은 종이색 */
.stage, body.screen, .intro {
  --bg: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --ink: #1f1b16;
  --ink2: #5e554a;
  --mute: #7b7266;
  --line: rgba(31, 27, 22, .08);
  --line2: rgba(31, 27, 22, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
[hidden] { display: none !important; }

/* ---------- 무대(1920×1080) ---------- */
.viewport { position: relative; overflow: hidden; background: #f7f4ee; }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: var(--bg); }
.slide { position: absolute; inset: 0; padding: 120px 144px; }

/* 등장: 장표가 열릴 때 한 번, 단계는 말에 맞춰 */
.rise { opacity: 0; transform: translateY(16px); animation: rise .6s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
[data-step] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-step].on { opacity: 1; transform: none; }
.stage.static .rise { animation: none; opacity: 1; transform: none; }
.stage.static [data-step], .stage.static [data-step] * { transition: none; }

.eyebrow { margin: 0 0 24px; font-size: 28px; font-weight: 500; color: var(--ink2); }
.slide h2 { margin: 0 0 64px; font-size: 72px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.note { position: absolute; left: 144px; bottom: 88px; margin: 0; font-size: 24px; color: var(--mute); }

/* 표지 / 마지막 */
.s-cover, .s-end { display: flex; flex-direction: column; justify-content: center; }
.cover-title { margin: 0; font-size: 140px; font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
.cover-title .line { display: block; }
.accent { color: var(--accent-ink); }
.cover-sub { margin: 40px 0 0; font-size: 36px; color: var(--ink2); }
.end-title { margin: 0; font-size: 160px; font-weight: 600; letter-spacing: -.03em; }

/* 목록 */
.big-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.big-list li { display: flex; align-items: center; gap: 40px; padding: 36px 48px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-size: 48px; font-weight: 500; }
.big-list b { font-size: 40px; font-weight: 500; color: var(--mute); }

/* 막대: 한 장에 강조 하나, 나머지는 종이색 단계 */
.bars { display: flex; align-items: flex-end; gap: 72px; height: 560px; padding: 0 40px; border-bottom: 2px solid var(--line2); }
.bar { flex: 1; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.bar i { display: block; height: var(--h); border-radius: 8px 8px 0 0; background: #d8cfc1;
  transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); }
.bar.on i { transform: scaleY(1); }
.bar.hot i { background: var(--accent); }
.bar em { position: absolute; bottom: -64px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 32px; color: var(--mute); }
.bar strong { position: absolute; left: 0; right: 0; text-align: center; font-size: 52px; font-weight: 600; bottom: calc(var(--h) + 16px); }
.bar.hot strong { color: var(--accent-ink); }

/* 흐름 */
.flow { display: flex; align-items: center; gap: 28px; margin-top: 64px; }
.node { flex: 1; padding: 48px 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); text-align: center; }
.node b { display: block; font-size: 48px; font-weight: 600; margin-bottom: 20px; }
.node span { font-size: 30px; color: var(--ink2); line-height: 1.45; }
.node.hot { border: 2px solid var(--accent); }
.node.hot b { color: var(--accent-ink); }
.arrow { width: 56px; height: 3px; background: var(--mute); position: relative; transform-origin: left; transform: scaleX(0); }
.arrow.on { transform: scaleX(1); }
.arrow::after { content: ""; position: absolute; right: -4px; top: -9px; border: 10px solid transparent; border-left-color: var(--mute); border-right: 0; }

/* ---------- 스크린 화면 ---------- */
body.screen { overflow: hidden; }
body.screen.armed { cursor: none; }
.screen .viewport { position: fixed; inset: 0; }
.subtitle { position: fixed; left: 50%; bottom: 4vh; transform: translateX(-50%); max-width: 84vw;
  padding: 1.2vh 2.4vw; border-radius: 1.2vh; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  font-size: clamp(18px, 2.8vh, 48px); font-weight: 500; line-height: 1.5; text-align: center; transition: opacity .3s var(--ease); }
.subtitle:empty { opacity: 0; }
/* 글자마다 형광펜이 왼쪽에서 오른쪽으로 칠해진다 */
.subtitle .line { display: inline-block; animation: subIn .3s var(--ease); }
@keyframes subIn { from { opacity: 0; transform: translateY(6px); } }
.subtitle .c { color: var(--ink2);
  background: linear-gradient(transparent 56%, var(--marker) 56%, var(--marker) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  transition: background-size .14s linear, color .14s linear; }
.subtitle .c.on { color: var(--ink); background-size: 100% 100%; }
.subtitle.off { display: none; }
.hint { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.05);
  color: var(--ink2); font-size: 14px; transition: opacity .4s var(--ease); pointer-events: none; z-index: 6; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.dot.ok { background: var(--green); }

/* ---------- 대기 화면 ---------- */
.intro { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; padding: 0 9vw 6vh;
  background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
.intro.hide { opacity: 0; visibility: hidden; }
.intro .eyebrow { margin: 0 0 3vh; font-size: 3vh; color: var(--ink2); }
.intro h1 { margin: 0; font-size: 10vh; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
body.screen.standby .subtitle { opacity: 0; }

/* ---------- 스크린 시작 화면(담당자용) ---------- */
.gate { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: var(--bg); transition: opacity .3s var(--ease), visibility .3s; }
.gate.hide { opacity: 0; visibility: hidden; }
.gate-box { display: grid; justify-items: center; gap: 12px; width: min(480px, 90vw); padding: 40px 32px 32px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.06); text-align: center; }
.gate-box p { margin: 0; }
.gate-label { font-size: 14px; color: var(--mute); }
.gate-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px !important; }
.gate-btn { width: 100%; height: 56px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; font-size: 18px; font-weight: 500; cursor: pointer;
  transition: background-color .15s var(--ease), transform .12s var(--ease); }
.gate-btn:hover { background: #3a332b; }
.gate-btn:active { transform: scale(.98); }
.gate-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gate-note { font-size: 14px; color: var(--ink2); }
.gate-status { margin-top: 8px !important; font-size: 13px; color: var(--mute); }
