/* 시험 기간. 어두운 방, 스탠드 불빛, 형광펜 연두 하나 */
/* :hover는 마우스가 있는 기기에서만 씁니다. 터치 화면에서는 누른 자리에 hover가 남아, 다음 문제의 같은 자리 보기가 칠해져 보입니다 */
@font-face { font-family: 'Pen'; src: url(../assets/font/pen.woff2) format('woff2'); font-display: swap; }
:root {
  --ink: #0d111b; --ink2: #161c2b; --text: #eef1f7; --dim: #98a2b8;
  --hl: #c8f03c;            /* 형광펜 연두 */
  --paper: #f4f0e6; --pline: #d9d2c2; --pen: #2a3350;
  --font: Pretendard, 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --hand: 'Pen', 'Nanum Pen Script', 'Malgun Gothic', cursive;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', Batang, serif;
  --fs: clamp(16px, 0.5vw + 0.9vh + 9px, 21px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; background: var(--ink); color: var(--text); font-family: var(--font); font-size: var(--fs); line-height: 1.6; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }
.screen { position: fixed; inset: 0; display: none; }
.screen.on { display: flex; }
.screen.scroll { overflow-y: auto; display: none; }
.screen.scroll.on { display: block; }

/* ── 첫 화면 ('한 판만'과 같은 틀) ── */
#scr-title { align-items: flex-end; }
.title-art { position: absolute; inset: 0; background: #080b12 url(../assets/img/title.webp) left center / cover; }
.title-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 11, 18, 0) 0%, rgba(8, 11, 18, .5) 46%, rgba(8, 11, 18, .93) 78%); }
.title-box { position: relative; margin-left: auto; width: min(520px, 100%); padding: 0 clamp(24px, 6vw, 72px) clamp(72px, 12vh, 130px); }
.title-kicker { color: #e9dfc6; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.title-logo { font-size: clamp(58px, 10vw, 116px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 10px 0 34px; white-space: nowrap; }
.title-logo span { color: var(--hl); }
.title-menu { display: grid; gap: 6px; }
.tm { display: flex; align-items: baseline; gap: 12px; text-align: left; font-size: 21px; font-weight: 700; padding: 11px 16px 11px 34px; border-radius: 10px; position: relative; color: #c9d0e0; transition: background .15s, color .15s, padding .15s; }
.tm small { font-size: 13px; font-weight: 500; color: var(--dim); }
.tm::before { content: '▶'; position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-size: 11px; opacity: 0; color: var(--hl); }
.tm:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; padding-left: 40px; }
@media (hover: hover) { .tm:hover { background: rgba(255, 255, 255, .08); color: #fff; padding-left: 40px; } }
.tm:focus-visible::before { opacity: 1; }
@media (hover: hover) { .tm:hover::before { opacity: 1; } }
.tm.primary { color: #fff; }
.title-note { margin-top: 26px; font-size: 12.5px; color: var(--dim); }
.title-foot { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: flex-end; padding: 0 clamp(20px, 4vw, 40px); font-size: 13px; }
.title-foot a { color: var(--dim); text-decoration: none; }
@media (max-width: 640px) {
  .title-art { background-position: 22% center; }
  .title-art::after { background: linear-gradient(180deg, rgba(8, 11, 18, .1) 0%, rgba(8, 11, 18, .55) 48%, rgba(8, 11, 18, .95) 80%); }
}

/* ── 무대 ── */
#scr-game { background: #06080d; }
#stage { position: absolute; inset: 0; overflow: hidden; overflow: clip; background: #06080d; }
#cg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .7s; }
#cg.on { opacity: 1; }
#cg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 13, 0) 55%, rgba(6, 8, 13, .7) 100%); }
#item { position: absolute; left: 50%; top: 40%; translate: -50% -50%; width: min(46vw, 46vh, 340px); aspect-ratio: 1; background: center / contain no-repeat; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .7)); z-index: 20; animation: item-in .5s var(--ease); }
@keyframes item-in { from { opacity: 0; scale: .86; } }
#fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s; z-index: 60; }
#fade.on { opacity: 1; }

/* ── 책상 ── */
#desk { position: absolute; inset: 0; background: #080b12; }
#desk-art { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: center / 100% 100% no-repeat; transition: filter 1.2s; }
#desk.vivid #desk-art { filter: saturate(1.6) contrast(1.08) brightness(1.06); }
#desk.tired #desk-art { filter: saturate(.7) brightness(.86); }
.hot { position: absolute; border-radius: 14px; }
.hot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(200, 240, 60, 0); transition: border-color .25s, box-shadow .25s; }
.hot.call::after { border-color: rgba(200, 240, 60, .85); box-shadow: 0 0 22px rgba(200, 240, 60, .45); animation: call 1.6s infinite; }
.hot:focus-visible::after { border-color: rgba(200, 240, 60, .5); }
@media (hover: hover) { .hot:hover::after { border-color: rgba(200, 240, 60, .5); } }
@keyframes call { 50% { opacity: .35; } }
.hot.obj { background: center / contain no-repeat; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
#hot-bottle { background-image: url(../assets/img/obj-bottle.webp); }
#hot-foil { background-image: url(../assets/img/obj-foil.webp); }
#desk-hint { position: absolute; left: 50%; bottom: max(84px, 12vh); translate: -50% 0; font-size: 15px; color: #e9edf5; background: rgba(10, 13, 21, .78); padding: 8px 16px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.deskbtn { position: absolute; left: 50%; bottom: max(24px, 4vh); translate: -50% 0; font-weight: 700; font-size: 17px; padding: 13px 24px; border-radius: 12px; background: rgba(238, 241, 247, .94); color: var(--ink); }

/* ── 위쪽 표시 ── */
#hud { position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(12px, env(safe-area-inset-top)) clamp(14px, 3vw, 28px) 12px; background: linear-gradient(180deg, rgba(6, 8, 13, .8), rgba(6, 8, 13, 0)); pointer-events: none; }
.hud-day b { font-size: 24px; font-weight: 900; letter-spacing: .01em; }
.hud-day i { font-style: normal; color: var(--dim); font-size: 14px; margin-left: 8px; }
.hud-clock { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; color: #f3e9cf; }
.hud-back { font-family: var(--hand); font-size: 24px; line-height: 1; color: var(--ink); background: var(--hl); padding: 5px 12px 4px; border-radius: 3px 3px 10px 3px; rotate: 1.5deg; transition: scale .3s var(--ease); }
.hud-back b { font-size: 1.15em; }
.hud-back.bump { scale: 1.18; }
.hud-back.zero { background: #e9edf5; }

/* ── 대화: 화면에 뜨는 것은 모두 책상 위의 종이입니다 ──
   내 속말은 플래너에서 찢은 줄 종이에 내 글씨로, 남의 말은 흰 종이 카드에, 선택지는 시험지의 보기로 */
#dlg { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; width: min(860px, calc(100% - 20px)); min-height: 5.4em; z-index: 40; cursor: pointer; color: #262c40;
  border-style: solid; border-width: 9px 9px 9px 9px; border-image: url(../assets/img/ui-card.webp) 26 26 26 26 fill / 9px stretch; padding: 10px 20px 18px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); rotate: -.25deg; }
#dlg.narr { border-width: 11px 8px 11px 28px; border-image: url(../assets/img/ui-note.webp) 30 22 30 78 / 11px 8px 11px 28px round; background: #f4f0dc repeating-linear-gradient(180deg, transparent 0 calc(1.5em - 1px), #dad5bf calc(1.5em - 1px) 1.5em) 0 .28em; background-clip: padding-box; padding: 6px 18px 16px 12px; rotate: .35deg; }
.dlg-who { display: inline-block; font-weight: 800; font-size: .84em; color: #1d2233; min-height: 1.3em; padding: 0 8px; margin: 0 0 4px -6px; background: linear-gradient(transparent 22%, var(--hl) 22% 86%, transparent 86%); }
.dlg-who:empty { display: none; }
.dlg-text { white-space: pre-line; font-weight: 500; }
#dlg.narr .dlg-text { font-family: var(--hand); font-size: 1.5em; line-height: 1.5; color: #2a3350; font-weight: 400; }
.dlg-next { position: absolute; right: 14px; bottom: 4px; color: #8b90a3; font-size: 14px; animation: bob 1.2s infinite; }
@keyframes bob { 50% { translate: 0 3px; } }
#choices { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; width: min(620px, calc(100% - 20px)); z-index: 45; display: grid; gap: 0; counter-reset: q; color: #262c40;
  border-style: solid; border-width: 9px; border-image: url(../assets/img/ui-card.webp) 26 26 26 26 fill / 9px stretch; padding: 8px 14px 10px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); rotate: -.3deg; }
#choices p { font-family: var(--hand); font-size: 1.4em; line-height: 1.35; color: #2a3350; padding: 2px 6px 8px; white-space: pre-line; border-bottom: 1.5px solid #262c40; margin-bottom: 4px; }
.ch { counter-increment: q; position: relative; text-align: left; padding: 11px 10px 11px 46px; font-weight: 700; border-radius: 8px; transition: background .15s; }
.ch + .ch { border-top: 1px dashed #cfcabb; }
.ch { animation: chin .6s both; }   /* 뜬 직후 0.6초는 누름을 받지 않습니다(engine.js). 그동안 흐리게 보입니다 */
@keyframes chin { from { opacity: .35; } }
.ch::before { content: counter(q); position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 25px; height: 25px; border: 1.6px solid #262c40; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; transition: background .15s, color .15s; }
.ch:focus-visible { background: rgba(200, 240, 60, .38); }
@media (hover: hover) { .ch:hover { background: rgba(200, 240, 60, .38); } }
.ch:focus-visible::before, .ch:active::before { background: #262c40; color: #fff; }
@media (hover: hover) { .ch:hover::before { background: #262c40; color: #fff; } }
.ch.off { color: #9a9eab; cursor: default; font-weight: 500; text-decoration: line-through; text-decoration-color: #8e93a2; }
.ch.off::before { border-color: #b3b6c0; color: #b3b6c0; }
.ch.off small { display: block; font-family: var(--hand); font-size: 1.25em; line-height: 1.2; color: #c0392b; text-decoration: none; }
@media (hover: hover) { .ch.off:hover { background: none; } }

/* ── 날짜 카드 ── */
#daycard { position: absolute; inset: 0; z-index: 55; background: #05070b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; opacity: 0; transition: opacity .6s; }
#daycard.on { opacity: 1; }
#daycard small { color: var(--dim); font-size: 15px; letter-spacing: .08em; }
#daycard b { font-size: clamp(54px, 12vw, 110px); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
#daycard span { font-family: var(--hand); font-size: clamp(24px, 4vw, 34px); color: var(--hl); white-space: pre-line; line-height: 1.25; }

/* ── 겹쳐 뜨는 판 ── */
.sheet { position: absolute; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 10, .72); padding: max(58px, 8vh) 12px max(16px, 3vh); }

/* 플래너: 종이와 손글씨 */
.pl-paper { position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; background: var(--paper); color: var(--pen); border-radius: 6px 14px 14px 6px; padding: 26px 24px 20px 46px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--pline) 39px 40px); background-position: 0 14px; rotate: -.6deg; }
.pl-rings { position: absolute; left: 12px; top: 18px; bottom: 18px; width: 16px; background: radial-gradient(circle at 50% 50%, #8a8f9c 0 5px, transparent 6px) 0 0 / 16px 40px repeat-y; }
#pl-body { font-family: var(--hand); font-size: 28px; line-height: 40px; }
#pl-body h3 { font: inherit; font-size: 34px; }
#pl-body .big { font-size: 46px; }
#pl-body .hl { background: linear-gradient(transparent 38%, var(--hl) 38% 88%, transparent 88%); padding: 0 4px; }
#pl-body .dim { color: #7c8196; }
#pl-body .row { display: flex; align-items: center; gap: 10px; }
#pl-body .row span { flex: 1; }
#pl-body .box { width: 26px; height: 26px; border: 2px solid var(--pen); border-radius: 4px; position: relative; flex: none; }
#pl-body .box.on::after { content: ''; position: absolute; left: 4px; top: -8px; width: 12px; height: 24px; border: solid #c0392b; border-width: 0 4px 4px 0; rotate: 40deg; }
#pl-body button.row { width: 100%; text-align: left; font: inherit; color: inherit; }
.pl-close { display: block; margin: 16px 0 0 auto; font-family: var(--font); font-size: 15px; font-weight: 700; background: var(--pen); color: #fff; padding: 9px 18px; border-radius: 10px; }

/* 문제집 */
.bk-paper { position: relative; width: min(640px, 100%); max-height: 100%; overflow: hidden; background: #fbf8f0; color: #23283a; border-radius: 4px; padding: 20px clamp(18px, 4vw, 34px) 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 10px; transition: filter .8s; }
.bk-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: #7a8094; border-bottom: 2px solid #23283a; padding-bottom: 6px; }
#bk-lines { font-family: var(--serif); font-size: clamp(17px, 0.6vw + 1vh + 9px, 22px); line-height: 2.05; }
#bk-lines p { margin: 2px 0; position: relative; padding-left: 30px; }
/* 줄마다 체크 칸: 그 줄의 중요한 말을 다 칠하면 연필 체크가 됩니다 */
.ck { position: absolute; left: 2px; top: .62em; width: 16px; height: 16px; border: 1.6px solid #8a8fa1; border-radius: 3px; }
p.done .ck { border-color: #23283a; }
p.done .ck::after { content: ''; position: absolute; left: 3px; top: -6px; width: 7px; height: 15px; border: solid #c0392b; border-width: 0 3px 3px 0; rotate: 40deg; }
/* 처음 한 번: 칠할 말에 연필 밑줄 */
.w.guide { box-shadow: 0 3px 0 -1px #c0392b; animation: guide 1s infinite; }
@keyframes guide { 50% { box-shadow: 0 3px 0 -1px rgba(192, 57, 43, .15); background-size: 100% 100%; } }
/* 집중 표시 */
#bk-focus { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #7a8094; }
#bk-focus i { width: 14px; height: 7px; border-radius: 2px; border: 1.4px solid #9da2b3; transition: background .3s, border-color .3s; }
#bk-focus i:first-child { margin-left: 4px; }
#bk-focus i.on { background: var(--hl); border-color: #23283a; }
#book.vivid #bk-focus i.on { box-shadow: 0 0 8px var(--hl); }
#book.wired #bk-focus i.on { animation: flick .5s infinite steps(2); }
@keyframes flick { 50% { opacity: .3; } }
.bk-where { display: inline-flex; gap: 10px; align-items: baseline; }
#bk-prog { color: #23283a; }
/* 빨간 가림판 */
.bk-paper::after { content: ''; position: absolute; inset: 0; background: rgba(214, 40, 40, .62); mix-blend-mode: multiply; translate: 0 -102%; transition: translate .6s var(--ease); pointer-events: none; }
#book.cover .bk-paper::after { translate: 0 0; }
#book.cover .bk-paper { filter: none; }
#book.cover #bk-lines { text-shadow: none; cursor: default; animation: none; }
#book.cover .w.on { background: #2a0d10; color: transparent; box-shadow: none; transition: none; border-radius: 0; }
#book.cover p.ask { z-index: 2; background: #fffdf6; border-radius: 6px; box-shadow: 0 0 0 4px #fffdf6, 0 6px 16px rgba(60, 0, 0, .45); }
#book.vivid.cover .w.on { box-shadow: none; }
#book.cover p.got .w.on, #book.cover p.lost .w.on { background: none; color: inherit; }
#book.cover p.lost .w[data-k] { text-decoration: underline wavy #c0392b; text-underline-offset: 5px; }
#bk-quiz { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; min-height: 46px; }
.cv-opt { flex: 1 1 30%; min-height: 46px; font-family: var(--serif); font-weight: 700; font-size: 16px; padding: 8px 10px; border-radius: 10px; background: #fff; color: #23283a; border: 2px solid #23283a; }
.cv-opt:focus-visible { background: var(--hl); }
@media (hover: hover) { .cv-opt:hover { background: var(--hl); } }
#bk-lines { touch-action: none; user-select: none; -webkit-user-select: none; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg transform='rotate(45 16 16)'%3E%3Crect x='11' y='-3' width='10' height='22' rx='2.5' fill='%23c8f03c' stroke='%2323283a' stroke-width='1.6'/%3E%3Cpath d='M12.5 19h7l-1.4 6h-4.2z' fill='%2323283a'/%3E%3Cpath d='M14.2 25h3.6l-1.8 5z' fill='%23a6cf1e' stroke='%2323283a' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") 5 27, crosshair; }
#bk-tip { font-size: 13px; color: #8a8fa1; min-height: 1.2em; }
.w { display: inline-block; padding: 0 1px; margin: 0; border-radius: 3px; cursor: pointer; background: linear-gradient(transparent 30%, var(--c, var(--hl)) 30% 88%, transparent 88%) left / 0% 100% no-repeat; transition: background-size .35s var(--ease), color .2s; }
.w.on { background-size: 100% 100%; }
.w.miss { color: #a2a7b6; }
.w.hint { text-decoration: underline dotted #9aa0b2; text-underline-offset: 5px; }
.bk-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.bk-btn { font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 10px; background: #23283a; color: #fff; opacity: .35; }
.bk-btn.ready { opacity: 1; background: var(--hl); color: #23283a; box-shadow: 0 0 0 3px rgba(35, 40, 58, .9); }
.bk-btn.ghost { background: none; color: #5d6377; opacity: 1; }
/* 졸린 밤: 글자가 겹쳐 보임 */
#book.sleepy .bk-paper { filter: blur(var(--blur, .6px)) brightness(.92); }
#book.sleepy #bk-lines { text-shadow: 3px 1px 0 rgba(35, 40, 58, var(--dbl, .28)); }
#book.warm .bk-paper { box-shadow: 0 0 0 3px rgba(200, 240, 60, .55), 0 18px 50px rgba(0, 0, 0, .6); }
/* 약을 먹은 밤: 색이 번지고 종이가 빛남 */
#book.vivid .bk-paper { filter: saturate(1.5) contrast(1.06); box-shadow: 0 0 60px rgba(200, 240, 60, .28), 0 18px 50px rgba(0, 0, 0, .6); }
#book.vivid .w.on { box-shadow: 0 0 12px var(--c, var(--hl)); }
#book.wired #bk-lines { animation: jitter .22s infinite steps(2); }
@keyframes jitter { 50% { translate: .6px -.4px; } }
#bk-count { position: absolute; right: max(16px, 4vw); top: max(62px, 9vh); font-family: var(--hand); font-size: 30px; color: var(--hl); text-shadow: 0 0 14px rgba(200, 240, 60, .6); }
#buzz { position: absolute; left: 50%; top: max(60px, 9vh); translate: -50% 0; width: min(420px, calc(100% - 24px)); background: rgba(20, 24, 36, .96); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 15px; animation: buzz .5s 3; z-index: 3; cursor: pointer; }
#buzz b { grid-column: 1; color: #fff; font-size: 14px; }
#buzz span { grid-column: 1; color: #cfd5e2; }
#buzz button { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--hl); padding: 7px 10px; border-radius: 9px; }
@keyframes buzz { 25% { translate: calc(-50% - 4px) 0; } 75% { translate: calc(-50% + 4px) 0; } }
#lids { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
#lids i { position: absolute; left: 0; right: 0; height: 52%; background: #020305; transition: translate 2.6s ease-in; }
#lids i:first-child { top: 0; translate: 0 -101%; border-radius: 0 0 50% 50% / 0 0 16% 16%; }
#lids i:last-child { bottom: 0; translate: 0 101%; border-radius: 50% 50% 0 0 / 16% 16% 0 0; }
#lids.close i { translate: 0 0; }
#lids.open i { transition-duration: .25s; }
#wake { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 5; display: grid; gap: 12px; justify-items: center; width: max-content; max-width: calc(100% - 24px); }
#wake button { font-weight: 800; font-size: 19px; padding: 16px 28px; border-radius: 99px; background: rgba(238, 241, 247, .95); color: var(--ink); }
#wake #wake-foil { font-size: 16px; font-weight: 700; background: rgba(20, 24, 36, .92); color: #e9edf5; border: 1px solid rgba(255, 255, 255, .35); }
/* 공부하는 동안 눈에 걸리는 은박지 */
#bk-foil { position: absolute; right: max(10px, 3vw); bottom: max(12px, 3vh); z-index: 3; display: grid; justify-items: center; gap: 2px; padding: 6px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #cfd5e2; }
#bk-foil i { width: clamp(54px, 9vh, 84px); aspect-ratio: 1; border-radius: 8px; background: url(../assets/img/obj-foil.webp) center / contain no-repeat; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); transition: scale .4s var(--ease); }
#bk-foil.pull i { scale: 1.18; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .75)); }
#bk-foil.pull { color: #fff; }
/* 서랍에 넣어 둔 반 알: 위에서 내려다본 열린 서랍입니다. 안에 은박지와 반 알이 그대로 보이고, 가끔 스탠드 불빛에 반짝이며, 손이 갈 만한 순간(.pull)에는 환해집니다.
   작은 갈색 네모 하나였을 때는 눈에 띄지 않아 고를 일이 없었습니다(2026-11-19 사용자 지적) */
#bk-foil.drawer i { aspect-ratio: 1; width: clamp(66px, 11vh, 96px); margin-bottom: 15%; position: relative; border: 3px solid #5a4334; border-bottom: 0; border-radius: 4px 4px 0 0;
  background: url(../assets/img/obj-foil.webp) center 40% / 66% no-repeat, radial-gradient(#33231a, #130c08); box-shadow: inset 0 8px 10px rgba(0, 0, 0, .7); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
#bk-foil.drawer i::before { content: ''; position: absolute; inset: 0; background: rgba(8, 6, 10, .42); transition: opacity .6s; animation: glint 6.5s ease-in-out infinite; }
#bk-foil.drawer i::after { content: ''; position: absolute; left: -9%; right: -9%; top: 100%; height: 26%; border-radius: 3px; border: 1px solid #77594a;
  background: linear-gradient(#c9b18a, #c9b18a) center / 34% 26% no-repeat, linear-gradient(#5a4334, #3d2c22); }
@keyframes glint { 0%, 76%, 100% { opacity: 1; } 86% { opacity: 0; } }
#bk-foil.drawer.pull i { scale: 1.14; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .7)); }
#bk-foil.drawer.pull i::before { opacity: 0; animation: none; }
@media (prefers-reduced-motion: reduce) { #bk-foil.drawer i::before { animation: none; } }
#bk-foil:focus-visible i { scale: 1.1; }
@media (hover: hover) { #bk-foil:hover i { scale: 1.1; } }
@media (min-width: 1000px) { #bk-foil { right: calc(50% - 450px); bottom: 16vh; } }
@media (max-width: 760px) { #bk-foil { bottom: auto; top: max(56px, 8vh); right: 6px; } #bk-foil i { width: 50px; } #bk-foil.drawer i { width: 62px; } #book:has(#bk-foil:not([hidden])) #buzz { left: calc(50% - 37px); width: calc(100% - 94px); } #book:has(#bk-foil:not([hidden])) { padding-top: 136px; } }
#bk-today { margin-right: auto; align-self: center; font-family: var(--hand); font-size: 24px; line-height: 1; color: #2a3350; }
#bk-today.far { color: #c0392b; }
#bk-today.met { color: #2e7d32; }

/* 휴대폰 잠금 화면 */
.ph-frame { width: min(400px, 100%); height: min(760px, 100%); background: linear-gradient(180deg, #1b2236, #0d1220); border: 3px solid #2c3347; border-radius: 34px; padding: 34px 14px 18px; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); cursor: pointer; }
.ph-time { font-size: 64px; font-weight: 200; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-date { text-align: center; color: #c5ccdc; font-size: 15px; margin: 6px 0 18px; }
.ph-list { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; justify-content: flex-start; }
.noti { background: rgba(255, 255, 255, .11); border-radius: 16px; padding: 10px 14px; font-size: 15px; line-height: 1.45; animation: drop .4s var(--ease); }
.noti b { display: flex; justify-content: space-between; font-size: 12.5px; color: #c5ccdc; font-weight: 600; margin-bottom: 2px; }
.noti.news { background: rgba(220, 70, 70, .26); }
@keyframes drop { from { opacity: 0; translate: 0 -14px; } }

/* 잠 */
#bed { position: absolute; inset: 0; z-index: 50; background: #020306; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
#bed-clock { font-size: 44px; font-weight: 200; color: #6f7a94; font-variant-numeric: tabular-nums; }
#bed-text { color: #aab3c6; min-height: 3.2em; max-width: 30em; white-space: pre-line; }
#bed-hold { position: relative; overflow: hidden; font-weight: 800; padding: 18px 34px; border-radius: 99px; background: #1a2030; color: #e9edf5; user-select: none; -webkit-user-select: none; touch-action: none; }
#bed-hold small { display: block; font-weight: 500; font-size: 12px; color: var(--dim); }
#bed-hold::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .13); transform-origin: left; scale: var(--p, 0) 1; }
#bed.thump { animation: thump .9s infinite; }
@keyframes thump { 0%, 30%, 100% { background: #020306; } 8% { background: #1a0b0e; } 20% { background: #12080a; } }

/* ── 첫 구간 끝 ── */
#scr-end { background: #0b0e16; }
.col { max-width: 720px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) 20px 80px; }
.col h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.col h3 { font-size: 1.1em; margin: 34px 0 10px; color: var(--hl); }
.col p { color: #d5dae6; margin: 8px 0; }
.col .dim { color: var(--dim); font-size: .9em; }
.col ul { list-style: none; display: grid; gap: 6px; }
.col li { background: var(--ink2); border-radius: 10px; padding: 10px 14px; }
.rec { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.rec th, .rec td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: right; }
.rec th:first-child, .rec td:first-child { text-align: left; color: var(--dim); font-weight: 500; }
.rec thead th { color: #fff; font-size: .9em; }
.rec .bad { color: #ff8f8f; font-weight: 800; }
.rec .good { color: var(--hl); font-weight: 800; }
.col .btn { display: inline-block; margin-top: 30px; font-weight: 800; padding: 13px 24px; border-radius: 12px; background: #eef1f7; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
/* 낮은 휴대폰: 은박지를 작게, 글줄을 조금 좁혀 문제집이 잘리지 않게 */
@media (max-width: 760px) and (max-height: 720px) { #bk-foil i { width: 38px; } #bk-foil.drawer i { width: 50px; } #bk-foil { top: 52px; gap: 0; padding: 2px 6px; font-size: 11px; } #book:has(#bk-foil:not([hidden])) { padding-top: 116px; } #book:has(#bk-foil:not([hidden])) #buzz { top: 56px; } #book:has(#bk-foil:not([hidden])) #bk-lines { font-size: 16px; line-height: 1.8; } #book:has(#bk-foil:not([hidden])) #bk-tip { display: none; } }
@media (max-width: 400px) { #bk-today { font-size: 19px; white-space: nowrap; } .bk-foot .bk-btn { white-space: nowrap; padding-inline: 12px; } }

/* ── 나머지 날(11-18 저녁) ── */
/* 메시지 창 */
#phone.chat .ph-time { display: none; }
#phone.chat .ph-date { font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 12px; margin-top: 0; }
#phone.chat .ph-frame { cursor: default; }
#phone.chat { align-items: flex-start; }
.bub { align-self: flex-start; max-width: 84%; background: rgba(255, 255, 255, .13); border-radius: 4px 16px 16px 16px; padding: 9px 13px; font-size: 15px; line-height: 1.45; animation: drop .35s var(--ease); }
.bub.me { align-self: flex-end; background: var(--hl); color: #1b2030; border-radius: 16px 4px 16px 16px; font-weight: 600; }
/* 시험지 */
.qz-paper { position: relative; width: min(640px, 100%); background: #fbfaf6; color: #20242f; border-radius: 3px; padding: 18px clamp(18px, 4vw, 32px) 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 12px; }
.qz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 3px double #20242f; padding-bottom: 8px; font-family: var(--serif); }
.qz-head b { font-size: 18px; flex: 1; }
.qz-head span { font-size: 14px; color: #5d6377; font-variant-numeric: tabular-nums; }
.qz-head #qz-clock { font-weight: 800; color: #20242f; }
.qz-bar { height: 4px; background: #e4e1d6; border-radius: 2px; overflow: hidden; }
.qz-bar i { display: block; height: 100%; background: #20242f; transform-origin: left; scale: var(--left, 1) 1; }
#qz-q { font-family: var(--serif); font-size: clamp(17px, 0.6vw + 1vh + 9px, 22px); line-height: 2; min-height: 6em; }
.qz-hole { white-space: pre; font-weight: 700; }
.qz-w { display: inline-block; padding: 0 1px; border-radius: 3px; }
#qz-q.smear .qz-w { color: transparent; background: var(--c); filter: blur(1.2px); box-shadow: 0 0 8px var(--c); }
#qz-q.smear .qz-hole { color: transparent; background: #c8f03c; filter: blur(1.2px); }
#qz-q.blank .qz-w { color: transparent; background: #d9d6cc; border-radius: 2px; scale: 1 .45; }
#qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-opt { min-height: 48px; text-align: left; font-family: var(--serif); font-weight: 700; font-size: 16px; padding: 9px 12px; border-radius: 8px; background: #fff; color: #20242f; border: 1.6px solid #20242f; }
.qz-opt:focus-visible { background: var(--hl); }
@media (hover: hover) { .qz-opt:hover { background: var(--hl); } }
.qz-opt:active, .cv-opt:active { background: var(--hl); }
#qz-opts.locked .qz-opt { opacity: .3; cursor: default; background: #fff; }
#qz-tip { color: #a23b2e; min-height: 1.5em; font-family: var(--hand); font-size: 1.25em; line-height: 1.2; }
#quiz.sleepy .qz-paper { filter: blur(.9px) brightness(.9); }
#quiz.sleepy #qz-q { text-shadow: 3px 1px 0 rgba(32, 36, 47, .3); }
#quiz.vivid .qz-paper { filter: saturate(1.4) contrast(1.05); box-shadow: 0 0 60px rgba(200, 240, 60, .22), 0 18px 50px rgba(0, 0, 0, .6); }
#qz-lids { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
#qz-lids i { position: absolute; left: 0; right: 0; height: 52%; background: #020305; transition: translate 2.6s ease-in; }
#qz-lids i:first-child { top: 0; translate: 0 -101%; border-radius: 0 0 50% 50% / 0 0 16% 16%; }
#qz-lids i:last-child { bottom: 0; translate: 0 101%; border-radius: 50% 50% 0 0 / 16% 16% 0 0; }
#qz-lids.close i { translate: 0 0; }
#qz-lids.open i { transition-duration: .3s; }
@media (max-width: 480px) { #qz-opts { grid-template-columns: 1fr; } .qz-opt { min-height: 44px; } #qz-q { min-height: 7.5em; } }
/* 먹은 밤: 몸이 먼저 옵니다 */
#book.thud .bk-paper { animation: thud 1s infinite; }
@keyframes thud { 0%, 24%, 100% { scale: 1; } 8% { scale: 1.006; } 16% { scale: 1.003; } }
#book.thud #bk-lines { animation: jitter .26s infinite steps(2); }
#book.again .bk-paper { filter: saturate(1.15) contrast(1.02); box-shadow: 0 0 30px rgba(200, 240, 60, .14), 0 18px 50px rgba(0, 0, 0, .6); }
#book.again .w.on { box-shadow: none; }
/* 끝난 뒤 */
.end-name { font-family: var(--hand); font-size: clamp(44px, 9vw, 76px); line-height: 1.05; color: var(--hl); margin: 6px 0 14px; font-weight: 400; }
.end-score { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; padding: 14px 16px; background: var(--ink2); border-radius: 12px; margin: 14px 0; }
.end-score b { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.end-score span { color: var(--dim); font-size: .9em; }
.rec-wrap { overflow-x: auto; }
.rec-wrap .rec { min-width: 460px; }
.end-pic { width: 100%; border-radius: 12px; margin: 10px 0 6px; display: block; }
.fork { display: grid; gap: 10px; }
.fork div { background: var(--ink2); border-radius: 12px; padding: 12px 14px; }
.fork b { display: block; color: #fff; }
.fork i { display: block; font-style: normal; color: var(--dim); font-size: .92em; margin-top: 4px; }
.help { border: 1.5px solid var(--hl); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.help b { color: var(--hl); }
.col ol { padding-left: 1.3em; display: grid; gap: 8px; color: #d5dae6; }
@media (prefers-reduced-motion: reduce) { #book.thud .bk-paper, #book.thud #bk-lines { animation: none; } }

/* ── 기운 (11-18 밤) ── 화면 위의 막대. 채워지는 곳은 잠뿐이고, 약과 음료의 밤에는 빗금 친 빌린 칸으로 바뀝니다 */
.hud-en { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.hud-en small { font-size: 12px; font-weight: 700; color: var(--dim); }
.hud-en > span { position: relative; display: block; width: clamp(54px, 11vw, 120px); height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.hud-en i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--e, 100%); background: #f3e9cf; border-radius: 99px; transition: width .4s linear, background .4s; }
.hud-en u { position: absolute; right: 0; top: 0; bottom: 0; width: var(--cut, 0%); background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .55) 0 3px, rgba(255, 255, 255, .16) 3px 6px); }
.hud-en.low i { background: #e2725b; }
.hud-en.loan i { background: repeating-linear-gradient(135deg, #c8f03c 0 4px, #5d6f1c 4px 8px); }
.hud-en.loan small::after { content: ' · 약으로 버티는 중'; color: #c8f03c; }
@media (max-width: 420px) { .hud-en small { display: none; } .hud-day i { display: none; } }
#wake button { font-size: 17px; padding: 13px 24px; }
#wake #wake-sleep { background: rgba(238, 241, 247, .78); }
@media (max-height: 520px) { #wake { gap: 7px; } #wake button { font-size: 15px; padding: 9px 18px; } }

/* 시험지에서 떠오르는 것 */
.qz-hole.hint { background: linear-gradient(transparent 12%, #c8f03c 12% 88%, transparent 88%); padding: 0 2px; }
.qz-opt.gone { opacity: .32; text-decoration: line-through; border-style: dashed; cursor: default; background: #fff; }
#wake p { color: #c9cfdd; font-size: 15px; margin: 0 0 4px; }
#bk-tip { font-size: 14px; color: #6b7080; }
.hud-en.loan.drink small::after { content: ' · 음료로 버티는 중'; }

/* ── 끝난 뒤의 보고서 (11-19) ── 한 번에 한 장씩 넘겨 봅니다 */
#scr-end .col { max-width: 860px; padding-top: 0; }
.rp-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 12px; margin: 0 -4px 18px; background: linear-gradient(180deg, #0b0e16 78%, rgba(11, 14, 22, 0)); scrollbar-width: none; }
.rp-nav::-webkit-scrollbar { display: none; }
.rp-nav button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 9px; border-radius: 99px; background: var(--ink2); color: var(--dim); font-weight: 700; font-size: 14px; white-space: nowrap; }
.rp-nav button i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 12px; font-variant-numeric: tabular-nums; }
.rp-nav button.seen { color: #d5dae6; }
.rp-nav button.on { background: var(--hl); color: var(--ink); }
.rp-nav button.on i { background: rgba(13, 17, 27, .16); }
.rp-page h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.rp-page h2.end-name { font-size: clamp(44px, 9vw, 76px); }
.rp-page h3 { margin-top: 30px; }
.rp-kicker { color: var(--dim); font-size: .9em; letter-spacing: .02em; }
.rp-score { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; padding: 16px 18px; background: var(--ink2); border-radius: 14px; margin: 14px 0 8px; }
.rp-score div { display: grid; gap: 2px; }
.rp-score small { color: var(--dim); font-size: 12.5px; }
.rp-score b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: #d5dae6; }
.rp-score .now b { font-size: 40px; font-weight: 900; color: #fff; line-height: 1; }
.rp-score > i { font-style: normal; color: var(--dim); padding-bottom: 4px; }
.rp-time { display: grid; gap: 14px; }
.rp-time section { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 6px 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.rp-time h4 { font-size: .92em; font-weight: 700; color: var(--hl); padding-top: 9px; }
.rp-time ul { gap: 6px; }
.rp-nights { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 16px 0; }
.rp-night { background: var(--ink2); border-radius: 14px; padding: 16px 16px 12px; display: grid; gap: 0; align-content: start; }
.rp-night.drug { box-shadow: inset 0 0 0 1.5px rgba(200, 240, 60, .55); }
.rp-night header { display: grid; gap: 2px; margin-bottom: 12px; }
.rp-night header small { color: var(--dim); font-size: 12.5px; }
.rp-night header b { font-size: 1.12em; color: #fff; }
.rp-night.drug header b { color: var(--hl); }
.rp-enwrap { padding-bottom: 10px; }
.rp-enwrap > small { color: var(--dim); font-size: 12.5px; }
.rp-en { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.rp-en span { flex: 1; height: 12px; border-radius: 99px; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .5) 0 3px, rgba(255, 255, 255, .14) 3px 6px); }
.rp-en i { display: block; height: 100%; background: #f3e9cf; border-radius: 99px; }
.rp-en.cut b { color: #ff9b85; }
.rp-en.drug i { background: repeating-linear-gradient(135deg, #c8f03c 0 4px, #5d6f1c 4px 8px); }
.rp-en b { font-variant-numeric: tabular-nums; font-size: .95em; white-space: nowrap; }
.rp-note { font-size: 12.5px; color: var(--dim) !important; margin: 5px 0 0 !important; line-height: 1.45; }
.rp-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .93em; }
.rp-row span { color: var(--dim); }
.rp-row b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-row.bad b { color: #ff9b85; }
.rp-extra { font-size: 12.5px; color: var(--dim) !important; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 8px; margin: 0 !important; }
.rp-explain { border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.rp-explain b { color: #fff; }
.rp-explain p { margin: 4px 0 0; font-size: .95em; }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.rp-tiles div { background: var(--ink2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.rp-tiles b { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.1; }
.rp-tiles span { color: var(--dim); font-size: .9em; line-height: 1.45; }
.rp-sheet { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 16px 0 12px; }
.rp-sheet i { position: relative; font-style: normal; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.rp-sheet u { position: absolute; right: 5px; top: 2px; text-decoration: none; font-size: 12px; }
.rp-sheet .hint, .rp-legend .hint { background: var(--hl); color: var(--ink); }
.rp-sheet .ok, .rp-legend .ok { background: #eef1f7; color: var(--ink); }
.rp-sheet .miss, .rp-legend .miss { background: #4a5266; color: #eef1f7; }
.rp-sheet .smear, .rp-legend .smear { background: linear-gradient(135deg, #c8f03c, #ffd84d 35%, #ff9ec4 68%, #8fe3ff); color: rgba(13, 17, 27, .55); filter: saturate(.9); }
.rp-sheet .blank, .rp-legend .blank { background: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); color: var(--dim); }
.rp-sheet .out, .rp-legend .out { background: #1a1f2d; color: #5d667a; }
.rp-legend { display: flex !important; flex-wrap: wrap; gap: 8px 18px !important; }
.rp-legend li { background: none; padding: 0; display: inline-flex; align-items: center; gap: 7px; font-size: .9em; color: #d5dae6; }
.rp-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.rp-know { display: grid; gap: 10px; }
.rp-know div { background: var(--ink2); border-radius: 14px; padding: 14px 16px; }
.rp-know b { color: #fff; }
.rp-know p { margin: 6px 0 0; font-size: .95em; }
.rp-ask { gap: 10px !important; padding-left: 0 !important; list-style: none; counter-reset: q; }
.rp-ask li { counter-increment: q; background: var(--ink2); border-radius: 14px; padding: 14px 16px 14px 50px; position: relative; }
.rp-ask li::before { content: counter(q); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--hl); color: var(--ink); font-weight: 800; font-size: 13px; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.rp-foot .btn { margin-top: 0; }
.rp-foot .btn.ghost { background: none; color: #d5dae6; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
#rp-pos { color: var(--dim); font-size: .9em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .rp-time section { grid-template-columns: 1fr; } .rp-time h4 { padding-top: 0; } .rp-sheet { grid-template-columns: repeat(4, 1fr); } .rp-foot .btn { padding: 12px 14px; font-size: 14px; } }
.rp-row span { white-space: nowrap; }
.rp-row b { white-space: nowrap; }
.rp-nights { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rp-night { min-width: 0; }
.rp-row b { white-space: normal; }
.rp-unseen { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rp-unseen li { background: none !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); color: #d5dae6; }
.rp-say { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rp-say li { font-family: var(--hand); font-size: 1.45em; line-height: 1.25; color: var(--ink); background: var(--hl) !important; border-radius: 4px 4px 12px 4px !important; }
.rp-all { text-align: center; margin-top: 26px !important; }
.rp-all button { color: var(--dim); font-size: .9em; text-decoration: underline; text-underline-offset: 3px; }
#end.all .rp-page[hidden] { display: block; }
#end.all .rp-page + .rp-page { margin-top: 56px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .14); }
#end.all .rp-nav, #end.all .rp-foot { display: none; }
@media print { #scr-end { background: #fff; overflow: visible; } .rp-page[hidden] { display: block; } .rp-nav, .rp-foot, .rp-all { display: none; } }
