/* 김장마당 — 화면 전체가 마당, 장면을 열면 그림책 한 쪽이 옆에서 펼쳐짐 */
:root {
  --hanji: #f6efe0;   --hanji-2: #ebe1cc;  --ink: #2a211c;   --ink-soft: #6b5d52; --line: #d9ccb4;
  --gochu: #c8372d;   --gochu-deep: #9d2620; --baechu: #7fa04a; --baechu-pale: #dfe8c4;
  --onggi: #5b3a26;   --salt: #fbfaf5;
  --glass: rgba(246, 239, 224, .9);
  --f-en: "Noto Serif KR", Georgia, serif;
  --f-ko: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --f-body: "Gowun Dodum", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-ui: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --hanji: #1f1916; --hanji-2: #2a221d; --ink: #f1e9dc; --ink-soft: #bcae9f; --line: #43372f;
  --gochu: #e2594d; --gochu-deep: #c8372d; --baechu: #9cbd64; --baechu-pale: #33402a;
  --glass: rgba(31, 25, 22, .88); color-scheme: dark } }

* { box-sizing: border-box }
[hidden] { display: none !important }
html, body { margin: 0; height: 100%; overflow: hidden; background: #d8c39a; color: var(--ink); font-family: var(--f-body) }
button, input, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--gochu); outline-offset: 2px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.display { font-family: var(--f-en); font-weight: 900; letter-spacing: -.01em }
html[lang="ko"] .display { font-family: var(--f-ko); font-weight: 900; letter-spacing: 0 }

#world { position: fixed; inset: 0 }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer }

.hud { position: absolute; left: 0; right: 0; display: flex; gap: 10px; pointer-events: none;
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)) }
.hud > * { pointer-events: auto }
.hud.top { top: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); justify-content: space-between; align-items: flex-start; flex-wrap: wrap }
.brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--glass); backdrop-filter: blur(8px); padding: 6px 8px 6px 14px; border-radius: 999px; box-shadow: 0 6px 18px -12px rgba(0,0,0,.5) }
.brand h1 { margin: 0; font-family: var(--f-en); font-weight: 900; font-size: 18px; color: var(--gochu-deep) }
html[lang="ko"] .brand h1 { font-family: var(--f-ko); font-weight: 900; font-size: 18px }
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-ui); font-size: 12px; color: var(--ink-soft); padding: 3px 10px; border-radius: 999px; background: var(--hanji-2) }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gochu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gochu) 30%, transparent) }
.tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center }
.chip { border: 0; background: var(--glass); backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 13px; font-family: var(--f-ui); font-size: 13px; cursor: pointer; box-shadow: 0 6px 18px -12px rgba(0,0,0,.5) }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--hanji) }
.langs { display: inline-flex; background: var(--glass); backdrop-filter: blur(8px); border-radius: 999px; padding: 3px; box-shadow: 0 6px 18px -12px rgba(0,0,0,.5) }
.langs button { border: 0; background: transparent; border-radius: 999px; padding: 4px 11px; font-family: var(--f-ui); font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-soft) }
.langs button[aria-pressed="true"] { background: var(--gochu); color: #fff }
.langs.inline { justify-self: end; box-shadow: none; background: var(--hanji-2) }

.passport { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 60px); background: var(--glass); backdrop-filter: blur(8px); border-radius: 14px; padding: 9px 12px; font-family: var(--f-ui); font-size: 12px; display: grid; gap: 6px; max-width: min(300px, calc(100vw - 24px)); box-shadow: 0 6px 18px -12px rgba(0,0,0,.5); pointer-events: none }
.passport .stamps { display: flex; gap: 5px }
.passport .stamps span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--ink-soft); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-soft) }
.passport .stamps span.on { border: 0; background: var(--gochu); color: #fff; transform: rotate(-8deg) }
.passport .stamps span.upnext { border-style: solid; border-color: var(--gochu); color: var(--gochu) }
.passport b { font-weight: 600 }
.demo { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 60px); margin: 0; max-width: 300px; font-family: var(--f-ui); font-size: 12px; background: var(--baechu-pale); border: 1px solid var(--baechu); border-radius: 12px; padding: 8px 10px; line-height: 1.5 }
.narrator { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 168px); margin: 0; max-width: min(640px, calc(100vw - 32px)); background: rgba(12, 10, 9, .78); color: #fff; padding: 7px 14px; border-radius: 4px; font-family: var(--f-ui); font-size: 14px; line-height: 1.5; text-align: center; pointer-events: none; animation: sub .3s ease-out }
.narrator b { color: #ffd36b; font-weight: 600; letter-spacing: .06em; font-size: 11px; display: block }
@keyframes sub { from { opacity: 0; transform: translateX(-50%) translateY(6px) } }

.hud.bottom { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); flex-direction: column; align-items: center; gap: 8px }
.act { border: 0; background: var(--gochu); color: #fff; border-radius: 999px; padding: 11px 22px; font-family: var(--f-ui); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); animation: rise .25s ease-out }
@keyframes rise { from { transform: translateY(8px); opacity: 0 } }
.emotes { display: flex; gap: 4px; background: var(--glass); backdrop-filter: blur(8px); padding: 4px; border-radius: 999px }
.emotes button { border: 0; background: transparent; min-width: 40px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 17px }
.emotes button:hover { background: var(--hanji-2) }
.say { display: flex; gap: 6px; width: min(560px, 100%); background: var(--glass); backdrop-filter: blur(8px); padding: 5px; border-radius: 999px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6) }
.say input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 12px; font-size: 16px; font-family: var(--f-body) }
.say input:focus { outline: none }
.say button { border: 0; background: var(--ink); color: var(--hanji); border-radius: 999px; padding: 8px 18px; font-family: var(--f-ui); font-weight: 600; cursor: pointer }
.say button:disabled, .say input:disabled { opacity: .5; cursor: not-allowed }
.note { margin: 0; font-family: var(--f-ui); font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7) }

/* 그림책 한 쪽 */
.page { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--hanji); z-index: 12; display: grid; grid-template-rows: auto 1fr; box-shadow: -24px 0 50px -30px rgba(0,0,0,.7); border-left: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); animation: turn .35s ease-out }
@keyframes turn { from { transform: translateX(30px); opacity: 0 } }
.page-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line) }
.scene-no { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gochu) }
.page .chip { background: var(--hanji-2); box-shadow: none }
.page-body { overflow-y: auto; padding: 20px 20px 32px; display: grid; gap: 16px; align-content: start }
.page-body h2 { margin: 0; font-size: 30px; line-height: 1.15; text-wrap: balance; color: var(--gochu-deep) }
.story { display: grid; gap: 8px; font-size: 17px; line-height: 1.6 }
.narr { font-family: var(--f-ui); font-size: 13px; color: var(--ink-soft); border-left: 3px solid var(--gochu); padding-left: 10px; font-style: italic }
.stage { background: var(--hanji-2); border-radius: 16px; padding: 16px; display: grid; gap: 12px; justify-items: center; text-align: center }
.stage svg { width: 150px; height: 150px; overflow: visible }
.stage .big { font-size: 20px; line-height: 1.4; font-weight: 600; font-family: var(--f-ui) }
.btn { border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 10px 18px; font-family: var(--f-ui); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 6px }
.btn.solid { background: var(--gochu); border-color: var(--gochu); color: #fff }
.btn:disabled { opacity: .45; cursor: not-allowed }
.row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center }
.opts { display: grid; gap: 8px; width: 100% }
.opt { border: 1px solid var(--line); background: var(--hanji); border-radius: 12px; padding: 10px 12px; text-align: left; cursor: pointer; font-family: var(--f-ui); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; position: relative; overflow: hidden }
.opt[aria-pressed="true"] { border-color: var(--gochu); box-shadow: inset 0 0 0 1px var(--gochu) }
.opt .bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--gochu) 16%, transparent); z-index: 0; transition: width .5s }
.opt > span { position: relative; z-index: 1 }
.opt .pct { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 12px }
.misread { font-family: var(--f-ui); font-size: 15px; display: grid; gap: 6px; width: 100% }
.misread span { transition: opacity .4s; text-align: left }
.misread span.gone { text-decoration: line-through; text-decoration-color: var(--gochu); text-decoration-thickness: 2px; opacity: .45 }
.reveal { font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--gochu-deep); font-family: var(--f-ui) }
.field { width: 100%; display: grid; gap: 6px; text-align: left; font-family: var(--f-ui); font-size: 13px; font-weight: 600 }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--hanji); border-radius: 10px; padding: 9px 11px; font-family: var(--f-body); font-size: 16px; font-weight: 400; resize: vertical }
.wall { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100% }
.wall .tag { background: var(--salt); color: #2a211c; border-radius: 3px; padding: 6px 10px 6px 12px; font-size: 14px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.5); transform: rotate(var(--r, 0deg)); border-left: 4px solid var(--gochu); max-width: 100%; overflow-wrap: anywhere; text-align: left }
.wall .tag small { display: block; font-family: var(--f-ui); font-size: 10px; color: #6b5d52 }
.wall .tag.mine { border-left-color: var(--baechu) }
.sign { font-size: 44px; line-height: 1; color: var(--gochu-deep); min-height: 50px; display: grid; place-items: center }
.timer { font-family: var(--f-ui); font-size: 48px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--onggi) }
html[data-dark] .timer { color: var(--ink) }
.jarline { font-family: var(--f-ui); font-size: 14px; min-height: 42px; color: var(--ink-soft); font-style: italic }
.card-quote { background: var(--salt); color: #2a211c; border-radius: 4px; padding: 14px 16px; font-size: 17px; box-shadow: 0 8px 18px -12px rgba(0,0,0,.5); transform: rotate(-1.5deg); text-align: left }
.card-quote small { display: block; font-family: var(--f-ui); font-size: 11px; color: #6b5d52; margin-top: 6px }
.slot { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; font-family: var(--f-ui); font-size: 13px; color: var(--ink-soft); padding: 12px; background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,0,0,.03) 12px 24px) }
.checks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center }
.checks button { border: 1px solid var(--line); background: var(--hanji); border-radius: 999px; padding: 5px 12px; font-family: var(--f-ui); font-size: 13px; cursor: pointer }
.checks button[aria-pressed="true"] { background: var(--ink); color: var(--hanji); border-color: var(--ink) }
.done { font-family: var(--f-ui); font-size: 13px; color: var(--baechu); font-weight: 600 }
.hands { font-family: var(--f-ui); font-size: 14px }
.hands b { font-size: 28px; color: var(--gochu); font-variant-numeric: tabular-nums }
.next { justify-self: start }
.gloss { border-bottom: 1px dotted var(--ink-soft); cursor: help }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 100vw); background: var(--hanji); border-left: 1px solid var(--line); z-index: 15; display: grid; grid-template-rows: auto 1fr; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: -20px 0 40px -30px rgba(0,0,0,.6) }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line) }
.drawer-head h2 { margin: 0; font-family: var(--f-ui); font-size: 18px }
.drawer .chip { background: var(--hanji-2); box-shadow: none }
.log-list { overflow-y: auto; padding: 12px 16px; display: grid; gap: 12px; align-content: start; font-family: var(--f-ui); font-size: 14px; line-height: 1.5 }
.log-list .m b { font-weight: 600 }
.log-list .m b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px }
.log-list .m small { color: var(--ink-soft); font-size: 11px; margin-left: 6px }
.log-list .m div { overflow-wrap: anywhere }
.log-list .empty { color: var(--ink-soft) }

.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(30, 20, 15, .5) }
.card { background: var(--hanji); border-radius: 20px; width: min(430px, 100%); max-height: calc(100% - 20px); overflow-y: auto; padding: 24px; display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7) }
.card h2 { margin: 0; font-family: var(--f-en); font-weight: 900; font-size: 28px; line-height: 1.15; color: var(--gochu-deep); text-wrap: balance }
html[lang="ko"] .card h2 { font-family: var(--f-ko); font-weight: 900 }
.card p { margin: 0; color: var(--ink-soft); line-height: 1.65 }
.card .sub { color: var(--ink); font-weight: 600; font-family: var(--f-ui) }
.kicker { font-family: var(--f-ui); font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--gochu) !important }
.credit { font-family: var(--f-ui); font-size: 12px }
.f { display: grid; gap: 6px; font-family: var(--f-ui); font-size: 13px; font-weight: 600 }
.f input { width: 100%; border: 1px solid var(--line); background: var(--hanji-2); border-radius: 10px; padding: 10px 12px; font-family: var(--f-body); font-size: 16px; font-weight: 400 }
.colors { display: flex; gap: 8px; flex-wrap: wrap }
.colors button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; background: var(--c); cursor: pointer }
.colors button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--hanji) }
.consent { display: flex; gap: 10px; align-items: flex-start; font-family: var(--f-ui); font-size: 13px; line-height: 1.55; color: var(--ink-soft) }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none }
.err { color: var(--gochu) !important; font-family: var(--f-ui); font-size: 13px }

@media (max-width: 720px) {
  .page { top: auto; width: 100vw; height: min(72vh, 640px); border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px -30px rgba(0,0,0,.7); animation: up .3s ease-out }
  @keyframes up { from { transform: translateY(30px); opacity: 0 } }
  .page-body h2 { font-size: 26px }
  .brand h1 { font-size: 15px }
  .tools .chip { padding: 6px 10px; font-size: 12px }
  .passport { top: calc(env(safe-area-inset-top, 0px) + 100px) }
  .demo { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 210px); left: 12px; right: 12px; max-width: none }
}
@media (prefers-reduced-motion: reduce) { .act, .page, .narrator { animation: none } }

@media (min-width: 721px) {
  body.reading .hud.bottom, body.reading .hud.top { right: min(440px, 100vw) }
  body.reading .narrator { left: calc((100% - min(440px, 100vw)) / 2) }
  body.reading .demo { right: calc(min(440px, 100vw) + 12px) }
}

/* 척척 이모(AI)의 말 — 화면 속 기계의 차가운 색 */
.ai-card { width: 100%; text-align: left; background: #20262e; color: #e8f4ff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; box-shadow: 0 10px 20px -14px rgba(0,0,0,.7) }
.ai-head { display: flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: 12px }
.ai-head b { font-weight: 600 }
.ai-face { width: 18px; height: 14px; border-radius: 3px; background: #9fd8ff; box-shadow: inset 4px -3px 0 -2px #1d3a55, inset -4px -3px 0 -2px #1d3a55 }
.ai-time { margin-left: auto; font-variant-numeric: tabular-nums; color: #9fd8ff }
.ai-q { margin: 0; font-family: var(--f-ui); font-size: 12px; color: #9fb3c8 }
.ai-a { margin: 0; font-family: var(--f-ui); font-size: 15px; line-height: 1.55 }
.ai-src { font-family: var(--f-ui); font-size: 11px; color: #8aa0b5 }
.stage > .ai-src { color: var(--ink-soft) }
.reveal-box { width: 100%; text-align: left; border: 2px solid var(--gochu); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; background: var(--hanji) }
.reveal-box b { color: var(--gochu-deep); font-family: var(--f-ui); font-size: 16px }
.reveal-box .ai-src { color: var(--ink-soft) }
.bridge { width: 100%; text-align: left; display: grid; gap: 6px; background: var(--hanji); border-radius: 14px; padding: 12px 14px; border: 1px dashed var(--ink-soft) }
.bridge small { font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--ink-soft) }
.bridge-row { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 10px; align-items: center; font-size: 15px; line-height: 1.45 }
.bridge-row .kim { color: var(--gochu-deep); font-weight: 600 }
.bridge-row .arrow { font-family: var(--f-ui); color: var(--ink-soft) }
.bridge-row .ai { background: #20262e; color: #e8f4ff; border-radius: 10px; padding: 8px 10px; font-family: var(--f-ui); font-size: 14px }
.compare { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.compare > div { background: var(--hanji); border-radius: 12px; padding: 12px; display: grid; gap: 4px; justify-items: center; font-family: var(--f-ui); font-size: 12px; color: var(--ink-soft) }
.compare b { font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums }
.jars { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; min-height: 40px; align-items: center }
.jars i { display: block; width: 12px; height: 14px; border-radius: 40% 40% 30% 30%; background: var(--onggi) }
.jars.one i { width: 34px; height: 40px; background: #2b3440; box-shadow: inset 0 -10px 0 #9fd8ff55 }
.plate { flex-direction: column; align-items: flex-start; gap: 4px }
.plate-no { font-weight: 600; font-size: 12px; color: var(--ink-soft) }
.plate.wrong { border-color: var(--gochu); box-shadow: inset 0 0 0 2px var(--gochu) }
.plate.miss { opacity: .55 }
.acc { width: 100%; text-align: left; background: var(--gochu); color: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 8px }
.acc small { font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .12em; opacity: .85 }
.acc h3 { margin: 0; font-size: 28px; line-height: 1.15 }
.acc-bars { display: grid; gap: 6px; margin-top: 4px }
.acc-row { display: grid; grid-template-columns: 70px 1fr 34px; gap: 8px; align-items: center; font-family: var(--f-ui); font-size: 12px }
.acc-row i { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3); overflow: hidden }
.acc-row i b { display: block; height: 100%; background: #fff }
.acc-row em { font-style: normal; font-variant-numeric: tabular-nums; text-align: right }
.acc-note { margin: 0; font-family: var(--f-ui); font-size: 12px; opacity: .9 }
@media (max-width: 480px) { .bridge-row { grid-template-columns: 1fr; } .bridge-row .arrow { transform: rotate(90deg); justify-self: start } }

.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100% }
.dish { display: grid; justify-items: center; gap: 4px; background: #fbf6ec; border: 2px solid transparent; border-radius: 14px; padding: 10px; cursor: pointer; font: inherit; color: inherit }
.dish img { width: 100%; max-width: 150px; height: auto }
.dish.on, .dish:hover { border-color: var(--gochu, #c8372d) }
.opt.plate { display: grid; justify-items: center; text-align: center }

.ings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px }
.ing { display: grid; justify-items: center; gap: 2px; background: #fbf6ec; border: 2px solid transparent; border-radius: 12px; padding: 6px 4px; cursor: pointer; font: inherit; font-size: 12px; color: inherit }
.ing img { width: 100%; max-width: 72px; aspect-ratio: 1; object-fit: contain }
.ing.on, .ing:hover { border-color: var(--gochu, #c8372d) }

#g-colors { display: grid !important; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px }
#g-colors button.vest { width: auto !important; height: auto !important; aspect-ratio: auto; border-radius: 10px !important; background: #fbf6ec !important; border: 2px solid transparent !important; padding: 3px !important; box-shadow: none !important }
#g-colors button.vest img { width: 100%; height: 58px; object-fit: contain; display: block; pointer-events: none }
#g-colors button.vest[aria-pressed="true"] { border-color: var(--c) !important; background: #fff !important }

.bigstamp { position: fixed; left: 50%; top: 42%; width: 170px; z-index: 99; pointer-events: none; transform: translate(-50%, -50%) rotate(-12deg) scale(2.4); opacity: 0; animation: bigstamp 1.6s cubic-bezier(.2,.9,.3,1.2) forwards; mix-blend-mode: multiply }
@keyframes bigstamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.4) } 18% { opacity: .95; transform: translate(-50%, -50%) rotate(-12deg) scale(1) } 75% { opacity: .9 } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1) } }
.salt { position: fixed; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 1px #9a8c78; z-index: 98; pointer-events: none }

.snote{position:relative;width:100%;margin:4px 0;padding-left:26px;text-align:left;box-sizing:border-box}
.sring{position:absolute;left:0;top:10px;bottom:10px;width:26px;background:radial-gradient(circle at 13px 9px,#6d655c 0 5px,transparent 5.5px) 0 0/26px 22px repeat-y}
.sring::after{content:"";position:absolute;left:4px;top:0;bottom:0;width:18px;background:repeating-linear-gradient(transparent 0 4px,#9b9389 4px 6px,transparent 6px 22px);opacity:.55}
.spage{border-radius:4px 10px 10px 4px;box-shadow:0 2px 6px rgba(60,40,20,.16);padding:12px 16px 14px 24px;border-left:2px solid #e8a7a2;background:repeating-linear-gradient(#fffdf6 0 27px,#d6e4f0 27px 28px);background-position:0 8px}
.shead{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;letter-spacing:.06em;margin-bottom:2px}
.snote .sno{background:#3b5f8a;color:#fff;border-radius:3px;padding:1px 7px;white-space:nowrap;font-family:var(--f-ui);font-weight:600}
.snote .sacc{color:#8a7b6a;font-family:var(--f-ui)}
.spage h3{font-family:"Nanum Pen Script",cursive;font-size:30px;font-weight:400;color:#c8372d;margin:2px 0 0;line-height:1.15}
.spage .sarrow{margin:0;font-family:"Nanum Pen Script",cursive;font-size:20px;color:#3b5f8a;line-height:28px}
.spage .sbody{font-size:15px;line-height:28px;margin:0;color:#2b2119}
.spage mark{background:linear-gradient(transparent 45%,#ffe66d 45%,#ffe66d 92%,transparent 92%);color:inherit;padding:0 1px}
.chip.armed{background:#c8372d!important;color:#fff!important;border-color:#c8372d!important}
.ing { position: relative }
.ing.on { background: #fde9e4 }
.ing.on::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--gochu, #c8372d); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center }
.ing-hint { margin: 0 0 8px; font-size: 14px; line-height: 1.5; background: #fff6c9; border-left: 4px solid #e0b100; padding: 7px 10px; border-radius: 6px }
.ing-hint b { color: var(--gochu, #c8372d) }
