/* 종이 바탕에 먹색 글자. 색은 뇌 속 주황 하나만 쓴다. 유리(흐림)는 실제 내용 위를 지나는 곳에만: 위쪽 띠, 뇌에 걸친 눈금판, 누르고 쉬기 단추. */
:root { --paper: #f2eee5; --ink: #14202b; --sub: #5b6470; --hot: #d9541e; --line: rgba(20,32,43,.16);
  --serif: "Newsreader", "Noto Serif KR", "Noto Serif JP", "Noto Serif SC", "Iowan Old Style", "AppleMyungjo", Georgia, serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "PingFang SC", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.glass { background: rgba(255,255,255,.38); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border: 1px solid rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(20,32,43,.08); }
.nav { position: fixed; z-index: 5; top: 12px; left: 16px; right: 16px; max-width: 1150px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 12px; border-radius: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; }
.brand img { border-radius: 8px; }
.lang select { appearance: none; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 14px; }
.wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 1150px; margin: 0 auto; padding: 0 28px; gap: 56px; }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#brain { width: min(100%, 470px); }
.meter { margin: -34px 0 0; padding: 10px 18px; border-radius: 14px; color: var(--ink); font-size: 14px; display: flex; align-items: baseline; gap: 6px; position: relative; }
.meter b { font: 600 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.meter span { font-weight: 600; margin-right: 4px; }
.meter i { font-style: normal; color: var(--sub); }
.sec { padding: 120px 0 40px; }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(38px, 4.3vw, 60px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.18; margin-bottom: 26px; max-width: 16em; }
h3 { margin: 44px 0 6px; font-size: 18px; }
.lead { margin: 22px 0 0; color: var(--sub); font-size: 19px; max-width: 31em; }
.hint { margin: 54px 0 0; font-size: 15px; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 12px; max-width: 18em; }
.facts > div { padding: 22px 0 20px; border-top: 1px solid var(--line); }
.fact { margin: 0; font: 500 24px/1.4 var(--serif); }
.src { margin: 8px 0 0; color: var(--sub); font-size: 13.5px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 6px; }
.steps figure { margin: 0; }
.steps figure:nth-child(even) { margin-top: 46px; }
.shot { width: 100%; aspect-ratio: 1206 / 2622; border-radius: 14px; border: 1px solid var(--ink); background: #f4f5f5; object-fit: cover; display: block; }
figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--sub); }
figcaption b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
#hold { margin-top: 6px; padding: 20px 30px; border-radius: 18px; font: inherit; font-weight: 650; font-size: 18px; color: var(--ink); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .18s; }
#hold:active, body.resting #hold { transform: scale(.96); background: rgba(190,235,214,.6); }
.motto { margin: 0 0 56px; font: 500 clamp(22px, 2.5vw, 31px)/1.4 var(--serif); max-width: 22em; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.store { padding: 12px 20px; border-radius: 12px; font-weight: 600; color: var(--sub); }
.note { margin-top: 44px; color: var(--sub); font-size: 13px; max-width: 46em; }
footer { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 90px; padding: 22px 0 60px; border-top: 1px solid var(--ink); color: var(--sub); font-size: 14px; }
footer a { color: var(--sub); }
/* 줄바꿈: 한국어는 낱말 단위, 일본어는 문절 단위(되는 브라우저만), 중국어는 글자 단위. keep-all 을 한·중·일 전체에 걸면 일본어·중국어 문장이 화면 밖으로 나간다. */
:lang(ko) :is(h1, h2, .lead, .fact, figcaption, .motto) { word-break: keep-all; }
:lang(ja) :is(h1, h2, .lead, .fact, figcaption, .motto), :lang(zh) :is(h1, h2, .lead, .fact, figcaption, .motto) { line-break: strict; overflow-wrap: anywhere; }
:lang(ja) :is(h1, h2, .fact, .motto) { word-break: auto-phrase; }
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { display: block; padding: 0 20px; }
  .stage { height: 42vh; height: 42dvh; z-index: 2; padding-top: 66px; justify-content: flex-end; background: var(--paper); margin: 0 -20px; border-bottom: 1px solid var(--line); }
  #brain { width: auto; height: calc(100% - 30px); max-width: 80%; }
  .meter { margin: -22px 0 10px; padding: 7px 14px; font-size: 13px; }
  .meter b { font-size: 22px; }
  .sec { padding: 64px 0 20px; }
  .hero { min-height: 0; padding-top: 34px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .steps figure:nth-child(even) { margin-top: 30px; }
  #hold { position: sticky; bottom: 18px; }
}
