/* 퀘스트보드7 Blue Studio 색과 글꼴을 따른다. 신문 지면만 종이 질감과 명조 제목.
   글꼴: Pretendard(CDN), Paperlogy(public/fonts, SIL OFL), Noto Serif KR(Google Fonts) */
@font-face { font-family: 'Paperlogy'; font-weight: 500; font-display: swap; src: url('fonts/Paperlogy-5Medium.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 600; font-display: swap; src: url('fonts/Paperlogy-6SemiBold.woff2') format('woff2'); }

:root {
  --font: 'Pretendard Variable', Pretendard, 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --title: 'Paperlogy', var(--font);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif;
  --bg: #f6f8fc;
  --surface: #fff;
  --sunk: #f5f7fa;
  --ink: #292b35;
  --ink-2: #60636f;
  --ink-3: #8a8e9b;
  --line: #e3e8ef;
  --line-2: #d6deea;
  --brand: #346bdd;
  --brand-2: #2757b5;
  --brand-soft: #edf3ff;
  --gold: #936d22;
  --gold-soft: #faf4e7;
  --done: #42846d;
  --done-soft: #edf6f1;
  --bad: #b86461;
  --bad-soft: #fcf0ef;
  --paper: #fbf9f3;
  --paper-ink: #22201b;
  --paper-line: #d9d3c4;
  --r-m: 12px;
  --r-l: 16px;
  --shadow: 0 5px 20px #292d4210;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; word-break: keep-all; min-height: 100vh; }
button, input { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid #346bdd55; outline-offset: 2px; }
#app { max-width: 1280px; margin: 0 auto; padding: 16px 18px 28px; }
.screen { display: none; }
.screen.active { display: block; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
svg { display: block; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--sunk); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn:disabled { background: #e9edf3; border-color: #e9edf3; color: #a3a9b5; cursor: not-allowed; transform: none; }
.btn.block { display: flex; width: 100%; min-height: 56px; font-size: 18px; }
.btn.block + .btn.block { margin-top: 8px; }
.btn.small { min-height: 38px; font-size: 14px; padding: 0 14px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 삐빅 */
.bot { width: 56px; height: 56px; flex: 0 0 auto; }
.bot svg { width: 100%; height: 100%; }
.bot.big { width: 104px; height: 104px; }
.bot-lamp { animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.kicker { font-size: 13px; font-weight: 650; color: var(--brand); }
h1 { font-family: var(--title); font-weight: 600; font-size: 34px; letter-spacing: -.03em; line-height: 1.25; }
h2 { font-size: 15px; font-weight: 700; color: var(--ink-2); letter-spacing: -.02em; }

/* 시작 */
.start { max-width: 780px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; }
.start-hero { display: flex; gap: 24px; align-items: center; }
.lead { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.lead b { color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steps li { background: var(--sunk); border-radius: var(--r-l); padding: 14px; }
.steps .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; margin-right: 6px; }
.steps b { font-size: 15px; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.start-form { display: grid; gap: 10px; margin: 24px 0 16px; }
.start-note { font-size: 15px; color: var(--ink-2); }
.start-note b { color: var(--brand); }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.field input { height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-m); font-size: 18px; background: #fff; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.shake { animation: shake .4s; border-color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* 위쪽 계기판 */
.hud { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px 10px 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--title); font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5'/%3E%3Cpath d='M15 15l4.5 4.5'/%3E%3C/svg%3E") center/18px no-repeat; }
.hud-item { display: grid; gap: 5px; }
.hud-label { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.hud-label b { color: var(--ink); font-size: 14px; }
.goal .hud-label b { color: var(--brand); }
.hud-label i { font-style: normal; }
.progress { flex: 1; min-width: 100px; }
.progress-bar { height: 5px; border-radius: 3px; background: #eef2fa; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: #729be4; transition: width .4s; }
.dots { display: flex; gap: 5px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9d8f5; background: #fff; }
.dots i.on { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hearts { display: flex; gap: 2px; }
.heart svg { width: 24px; height: 24px; fill: #e5707f; stroke: #c9505f; stroke-width: 1.4; }
.heart.lost svg { fill: #eceef2; stroke: #d3d7de; }
.hearts.hurt { animation: shake .4s; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.pill b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pill.time { background: var(--brand-soft); color: var(--brand); }
.pill.time.hurry { background: var(--bad-soft); color: var(--bad); }
.pill.score { background: var(--gold-soft); color: var(--gold); }
#btn-giveup { white-space: nowrap; }
.timer-line { height: 4px; margin: 6px 4px 0; background: var(--line); border-radius: 4px; overflow: hidden; }
.timer-line i { display: block; height: 100%; width: 100%; background: var(--brand); transition: width 1s linear; }
.timer-line i.hurry { background: var(--bad); }
.view-switch { display: none; }

/* 취재 책상: 신문과 자료철을 한 바탕 위에 둔다 */
.play-grid { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: 18px; background: #e4e9f1; box-shadow: inset 0 1px 3px #1d233412; }

/* 신문 지면 */
.paper-wrap { position: relative; }
.paper { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); border-radius: 4px; box-shadow: 0 1px 0 #fff inset, 0 8px 24px #3a321f18; padding: 18px 26px 22px; background-image: radial-gradient(#00000005 1px, transparent 1px); background-size: 4px 4px; }
.mast { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px double var(--paper-ink); padding-bottom: 6px; margin-bottom: 12px; }
.mast-name { font-family: var(--serif); font-weight: 900; font-size: 25px; letter-spacing: .1em; }
.mast-meta { display: flex; gap: 12px; font-size: 13px; color: #6b6556; }
.headline { font-family: var(--serif); font-weight: 900; font-size: 27px; line-height: 1.35; color: var(--paper-ink); letter-spacing: -.02em; }
.subhead { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 16.5px; color: #4b463b; padding-bottom: 10px; border-bottom: 1px solid var(--paper-line); }
.body { margin-top: 12px; }
.body::after { content: ''; display: block; clear: both; }
.photo { float: right; width: min(42%, 290px); margin: 4px 0 8px 16px; }
.photo-box { position: relative; aspect-ratio: 4 / 3; background: #e9e4d6; border-radius: 2px; overflow: hidden; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
.photo-ph { position: absolute; inset: 0; display: none; place-items: center; color: #b4ab95; }
.photo-ph svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.photo-box.noimg .photo-ph { display: grid; }
.photo figcaption { margin-top: 4px; font-size: 13px; line-height: 1.45; color: #6b6556; }
.body p { font-family: var(--serif); font-weight: 500; font-size: 17.5px; line-height: 1.8; margin: 0 0 8px; text-indent: .6em; }

/* 누를 수 있는 구절 */
.seg { cursor: pointer; border-radius: 4px; padding: 1px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .12s; }
@media (hover: hover) { .seg:hover { background: #f1e9cf; } }
.seg.sel { background: #dbe7ff; box-shadow: 0 0 0 2px #346bdd66; }
.seg.found { background: #ffe1df; box-shadow: inset 0 -3px 0 #d35b57; }
.seg.found::after { content: attr(data-n); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; border-radius: 50%; background: #c24b47; color: #fff; font: 800 12px var(--font); vertical-align: 3px; text-indent: 0; }
.seg.ok { color: #7c7769; text-decoration: underline dotted #9ab89f 2px; text-underline-offset: 5px; }
.seg.missed { background: #fff3c4; box-shadow: inset 0 -3px 0 #e0b23a; }
.seg.found.sel, .seg.missed.sel { box-shadow: 0 0 0 2px #346bdd66; }
.headline .seg.found::after { width: 24px; height: 24px; font-size: 14px; vertical-align: 6px; }

.paper-hint { position: sticky; bottom: 12px; display: flex; justify-content: center; align-items: center; height: 40px; margin-top: -40px; pointer-events: none; z-index: 2; }
.paper-hint span { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 650; box-shadow: 0 6px 18px #1d233430; white-space: nowrap; }

/* 누른 문장 아래에 뜨는 고발 창 */
.pop-judge { position: absolute; z-index: 4; width: min(360px, calc(100% - 16px)); background: var(--surface); border: 2px solid var(--brand); border-radius: 14px; box-shadow: 0 14px 36px #1d233433; padding: 12px; display: grid; gap: 8px; animation: pop .18s ease-out; scroll-margin: 12px; }
.pj-top { display: flex; align-items: center; gap: 8px; }
.pj-top b { flex: 1; font-size: 15.5px; }
.pj-top em { font-style: normal; font-weight: 800; color: var(--done); }
.pj-x { width: 32px; height: 32px; margin: -4px -4px -4px 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.pj-x:hover { background: var(--sunk); }
.pj-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.reasons { display: grid; gap: 6px; }
.reason { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
@media (hover: hover) { .reason:hover { border-color: #b9cbec; } }
.reason.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); box-shadow: 0 0 0 3px #346bdd1f; }
.pop-judge .btn.block { min-height: 48px; font-size: 16px; }
.pj-note { font-size: 12px; color: var(--ink-3); text-align: center; }
.pop-judge.info { border-color: var(--line-2); gap: 6px; }
.pop-judge.good { border-color: var(--done); }
.pop-judge.good .pj-top b { color: var(--done); }
.pop-judge.half { border-color: #d4a84a; }
.pop-judge.half .pj-top b, .pop-judge.half .pj-top em { color: #a87b24; }
.pop-judge.miss { border-color: #e0b23a; }
.pop-judge.miss .pj-top b { color: #a87b24; }
.pop-judge.ok { border-color: #9ab89f; }
.pj-reason { font-weight: 700; font-size: 15px; color: var(--ink); }
.pj-why { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pj-src { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--brand-2); background: var(--brand-soft); border-radius: 8px; padding: 6px 10px; }
.pj-src svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* 취재 자료철 */
.folder { display: flex; flex-direction: column; background: #efe3c4; border: 1px solid #ddcb9c; border-radius: 6px 14px 14px 14px; box-shadow: 0 8px 24px #3a321f1c; padding: 12px 12px 12px; position: sticky; top: 12px; }
.folder.flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 #346bdd88, 0 8px 24px #3a321f1c; } 100% { box-shadow: 0 0 0 14px #346bdd00, 0 8px 24px #3a321f1c; } }
.folder-head { display: grid; gap: 1px; padding: 0 4px 10px; }
.folder-head b { font-family: var(--title); font-weight: 600; font-size: 18px; color: #4f3f17; }
.folder-head span { font-size: 13.5px; color: #7a6633; }
.folder-tabs { display: flex; gap: 4px; padding-left: 2px; }
.ftab { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 8px; border: 1px solid #d8c592; border-bottom: 0; border-radius: 10px 10px 0 0; background: #e3d09f; color: #67552a; font-size: 14px; font-weight: 700; cursor: pointer; margin-bottom: -1px; }
.ftab-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftab-n { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #cdb67a; color: #fff; font-size: 12px; font-weight: 800; }
.ftab.on { background: #fff; color: var(--ink); z-index: 1; }
.ftab.on .ftab-n { background: var(--brand); }
.ftab.unseen::after { content: ''; position: absolute; top: -4px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #e0574f; box-shadow: 0 0 0 2px #e3d09f; }
.doc { background: #fff; border: 1px solid #d8c592; border-radius: 0 8px 8px 8px; padding: 14px 16px 16px; box-shadow: 0 2px 6px #3a321f14; }
.doc-kind { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; color: var(--ink-3); letter-spacing: .02em; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.doc-kind svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.src-title { font-weight: 750; font-size: 16px; }
.src-from { font-size: 13px; color: var(--ink-3); margin: 2px 0 10px; }
.src-lines { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.src-lines li { font-size: 15.5px; }
.src-line { font-size: 15.5px; margin: 0 0 6px; }
.reg-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 650; color: var(--brand); }
.reg-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.src-registry .src-from { margin-top: 8px; }
.reg-row { padding: 9px 12px; border-radius: 10px; background: var(--sunk); margin-bottom: 6px; font-size: 15.5px; }
.src-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.src-table th, .src-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.src-table th { color: var(--ink-2); font-weight: 650; width: 45%; background: #fafbfd; }
.qa { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--sunk); margin-bottom: 6px; font-size: 15.5px; }
.qa b { font-size: 12.5px; color: var(--ink-3); }
.qa.q { background: var(--brand-soft); }
.clip { background: var(--paper); border: 1px solid var(--paper-line); padding: 12px 14px; border-radius: 4px; font-family: var(--serif); }
.clip-title { font-weight: 900; font-size: 17px; }

/* 태블릿, 컴퓨터: 한 화면에 맞춘다. 길면 지면과 자료 안에서만 넘긴다 */
@media (min-width: 901px) {
  body[data-screen="screen-play"] #app { padding-top: 10px; padding-bottom: 10px; }
  #screen-play.active { display: flex; flex-direction: column; height: calc(100vh - 20px); height: calc(100dvh - 20px); }
  #screen-play .play-grid { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .paper-wrap { overflow: auto; overscroll-behavior: contain; border-radius: 4px; scrollbar-width: thin; }
  .paper { min-height: 100%; }
  .folder { position: static; min-height: 0; }
  .doc { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
}

/* 기사 끝 */
.overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #1d233466; backdrop-filter: blur(3px); }
.sheet-card { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: 20px; box-shadow: 0 20px 60px #1d233440; animation: pop .25s ease-out; padding: 18px 20px 20px; display: grid; gap: 14px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.sheet-top { display: flex; align-items: center; gap: 12px; }
.sheet-badge { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.sheet-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.is-win .sheet-badge { background: var(--done-soft); color: var(--done); }
.is-miss .sheet-badge { background: var(--gold-soft); color: var(--gold); }
.verdict { flex: 1; min-width: 0; font-family: var(--title); font-weight: 600; font-size: 22px; line-height: 1.3; }
.sheet-points { display: grid; justify-items: end; line-height: 1.2; white-space: nowrap; }
.sheet-points b { font-size: 24px; font-weight: 800; color: var(--done); }
.sheet-points b.zero { color: var(--ink-3); }
.sheet-points small { font-size: 12.5px; color: var(--ink-3); }
.sheet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sheet-stats div { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--sunk); }
.sheet-stats span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sheet-stats b { font-size: 19px; font-variant-numeric: tabular-nums; }
.sheet-missed { display: grid; gap: 6px; }
.sheet-label { font-weight: 700; color: var(--ink-2); font-size: 14.5px; }
.sheet-label span { font-weight: 500; color: var(--ink-3); font-size: 13px; margin-left: 6px; }
.miss { border-left: 4px solid #e0b23a; background: #fffbef; border-radius: 0 10px 10px 0; padding: 8px 12px; display: grid; gap: 3px; }
.miss-q { font-family: var(--serif); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.miss-why { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.miss-why b { color: #a87b24; margin-right: 4px; }
.sheet-all { padding: 10px 14px; border-radius: 10px; background: var(--done-soft); color: var(--done); font-weight: 650; font-size: 15px; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions .btn.primary { flex: 1.8; }
.sheet-actions .btn { min-height: 52px; font-size: 17px; }

/* 결과 */
.end { max-width: 660px; margin: 24px auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; }
.end .bot { margin: 0 auto 10px; }
.end-rank { display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.end-score { margin: 8px 0 4px; font-size: 52px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.end-score span { font-size: 22px; margin-left: 4px; }
.end-sum { color: var(--ink-2); }
.end-actions { display: flex; gap: 8px; margin-top: 18px; }
.end-actions .btn { flex: 1; min-height: 54px; font-size: 17px; }
.end-actions .btn.primary { flex: 1.8; }
.end-label { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.end-types { margin: 22px 0 12px; display: grid; gap: 8px; text-align: left; }
.type-row { display: grid; grid-template-columns: 170px 1fr 44px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-m); background: var(--sunk); font-size: 15px; }
.type-row .bar { height: 6px; border-radius: 3px; background: #e4e9f1; overflow: hidden; }
.type-row .bar i { display: block; height: 100%; background: #729be4; }
.type-row.perfect .bar i { background: var(--done); }
.type-row b { text-align: right; font-variant-numeric: tabular-nums; }
.end-tip { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r-m); background: var(--brand-soft); color: var(--brand-2); font-size: 15px; text-align: left; }
.end-list { display: grid; gap: 6px; margin-bottom: 18px; text-align: left; }
.end-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-m); font-family: var(--serif); font-size: 15px; }
.end-item b { font-family: var(--font); color: var(--brand); }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-m); font-weight: 650; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }
.pop { position: absolute; z-index: 30; transform: translate(-50%, -100%); font-weight: 900; font-size: 22px; color: var(--done); pointer-events: none; animation: rise .9s ease-out forwards; }
@keyframes rise { to { transform: translate(-50%, -220%); opacity: 0; } }

/* 좁은 화면: 기사와 취재 자료를 바꿔 보기 */
@media (max-width: 900px) {
  .play-grid { grid-template-columns: 1fr; padding: 8px; }
  .folder { position: static; }
  .view-switch { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); margin-top: 10px; position: sticky; top: 6px; z-index: 5; box-shadow: var(--shadow); }
  .view-btn { flex: 1; height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--ink-3); cursor: pointer; }
  .view-btn.on { background: var(--brand); color: #fff; }
  #screen-play[data-view="paper"] .folder { display: none; }
  #screen-play[data-view="desk"] .paper-wrap { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hud { flex-wrap: wrap; row-gap: 8px; }
}
@media (max-width: 620px) {
  #app { padding: 10px; }
  .start, .end { padding: 22px; margin: 8px auto; }
  .start-hero { flex-direction: column; text-align: center; }
  .start-form { grid-template-columns: 1fr; }
  .brand, .progress { display: none; }
  .hud { gap: 10px; padding: 8px 10px; justify-content: space-between; }
  .pill { height: 34px; padding: 0 10px; }
  .paper { padding: 14px 14px 18px; }
  .mast { flex-direction: column; align-items: center; gap: 2px; }
  .mast-name { font-size: 22px; }
  .headline { font-size: 22px; }
  .photo { float: none; width: 100%; margin: 0 0 10px; }
  .photo-box { aspect-ratio: 16 / 9; }
  .body p { font-size: 17px; }
  h1 { font-size: 28px; }
  .type-row { grid-template-columns: 120px 1fr 40px; }
  .sheet-card { padding: 16px; }
  .verdict { font-size: 19px; }
  .sheet-actions .btn { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
