:root { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202d2b; background: #f3ede2; --ink: #202d2b; --muted: #727773; --line: #dcd7ca; --accent: #c27738; --paper: #fffdf7; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 12% 10%, #fcf9ef 0, transparent 50%), #f3ede2; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
h2:focus, .result-heading:focus { outline: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #88a29b; outline-offset: 4px; }
.shell { width: min(1050px, calc(100% - 48px)); margin: 0 auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.045em; }
.book-mark { display: grid; place-items: center; background: var(--ink); width: 32px; height: 32px; border-radius: 8px; color: #f5eddb; font-size: 23px; transform: rotate(-6deg); }
.edition { margin-left: 10px; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .03em; }
.source-tag { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 10px; letter-spacing: .1em; background: #e7e0d3; padding: 7px 10px; border-radius: 20px; white-space: nowrap; }
main { padding: 47px 0 55px; }
.intro { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 38px; }
.overline { margin: 0 0 13px; color: #987343; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(43px, 5vw, 65px); line-height: 1.01; letter-spacing: -.065em; font-weight: 760; }
.intro-copy { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0 0 6px; }
.case-file { position: relative; border: 1px solid #d1c5ad; background: var(--paper); padding: 35px; border-radius: 0 20px 20px 20px; box-shadow: 0 22px 60px #514b3420, 0 4px 0 #eee5d5; }
.file-tab { position: absolute; top: -27px; left: -1px; display: flex; justify-content: space-between; gap: 32px; border: 1px solid #d1c5ad; border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--paper); padding: 9px 16px 7px; font: 9px ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; }
.file-tab span { color: #a98652; }
.case-top { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px dashed var(--line); }
h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(31px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.12; }
.scene { max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.timer { display: grid; justify-items: center; gap: 6px; background: #f3f1e9; border: 1px solid #e4dfd0; border-radius: 14px; padding: 15px 20px; min-width: 135px; }
.timer-label { font: 9px ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; color: var(--muted); }
.timer strong { font: 31px ui-monospace, SFMono-Regular, monospace; letter-spacing: -.07em; }
.timer span:last-child { font-size: 9px; color: var(--muted); }
.brief { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-bottom: 30px; align-items: center; }
.brief h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 25px; margin: 0 0 15px; letter-spacing: -.04em; }
.brief ol { padding-left: 20px; margin: 0; font-size: 14px; line-height: 1.9; }
.fine { max-width: 540px; margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.paper-diagram { position: relative; height: 190px; border: 1px solid #d9ceb6; border-radius: 5px; background: repeating-linear-gradient(#f1ebdc, #f1ebdc 30px, #ded8c81c 31px), #f1ebdc; padding: 22px 20px; transform: rotate(-2deg); box-shadow: 4px 5px 0 #e6dfcf; }
.diagram-title, .diagram-note { display: block; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 9px; letter-spacing: .1em; color: #7c745c; }
.diagram-line { position: relative; display: flex; justify-content: space-between; height: 35px; margin: 28px 0 10px; }
.diagram-line::before { content: ""; position: absolute; top: 8px; height: 1px; background: #8d997f; width: 100%; }
.diagram-line i { position: relative; width: 17px; height: 17px; border: 1px solid #687a64; background: #e7e7d7; border-radius: 50%; }
.diagram-line i:nth-child(3) { background: #bb7243; border-color: #bb7243; }
.diagram-stamp { position: absolute; right: 13px; bottom: 12px; border: 2px solid #b87943; padding: 8px 12px; color: #b87943; border-radius: 3px; transform: rotate(-12deg); text-align: center; font: 9px ui-monospace, SFMono-Regular, monospace; letter-spacing: .08em; line-height: 1.35; }
.primary, .secondary { display: inline-flex; gap: 15px; align-items: center; justify-content: center; border: 0; padding: 14px 20px; border-radius: 9px; font-size: 13px; font-weight: 750; }
.primary { background: var(--ink); color: #fff; }
.primary:not(:disabled):hover { background: #38554d; }
.secondary { border: 1px solid var(--line); background: #f5f1e7; color: var(--ink); }
.text-button { padding: 12px 4px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; color: #69786f; font-size: 12px; }
.availability { display: inline-block; margin: 0 0 0 17px; font-size: 10px; color: var(--muted); }
.section-line { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: 20px 0 13px; }
.section-line h3 { margin: 0; font-size: 13px; letter-spacing: -.025em; }
.section-line span { color: var(--muted); font-size: 10px; }
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.record { position: relative; border: 1px solid #e0d6bd; border-radius: 4px; padding: 17px 17px 20px; background: #faf3de; }
.record::after { content: ""; position: absolute; bottom: -3px; left: 10px; right: 10px; height: 5px; background: radial-gradient(circle at 50% 0, transparent 3px, #fffdf7 4px) 0 0 / 10px 5px; }
.record-label { display: block; margin-bottom: 11px; font: 9px ui-monospace, SFMono-Regular, monospace; color: #aa804b; letter-spacing: .12em; }
.record p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.35; }
.record.focused { outline: 2px solid #c18641; outline-offset: 3px; }
.slot-line { display: flex; align-items: center; gap: 15px; border-bottom: 1px dashed var(--line); padding: 20px 0; }
.slot-line > span { flex-shrink: 0; font: 9px ui-monospace, SFMono-Regular, monospace; letter-spacing: .12em; color: var(--muted); }
.slot-line > div { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-line b { font: 11px ui-monospace, SFMono-Regular, monospace; border: 1px solid var(--line); border-radius: 4px; padding: 5px 11px; background: #f8f5ee; }
.alibis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alibi { position: relative; padding: 18px; border: 1px solid #dedfd5; background: #fcfaf4; text-align: left; color: var(--ink); border-radius: 12px; transition: border-color .16s, background .16s; }
.alibi:hover { border-color: #7b9991; background: #f5f8f2; }
.alibi[aria-pressed="true"] { border: 2px solid #456c5d; padding: 17px; background: #e9f0e6; }
.person-row { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #d9e6df; color: #4e7066; font-family: Georgia, serif; font-size: 19px; flex-shrink: 0; }
.alibi:nth-child(2) .avatar { background: #f0e0c7; color: #986e3b; }.alibi:nth-child(3) .avatar { background: #e6dce0; color: #95717a; }.alibi:nth-child(4) .avatar { background: #dde3ea; color: #667d96; }
.person-row strong { display: block; font-size: 14px; margin-bottom: 3px; }.person-row small { color: var(--muted); font-size: 10px; }
.person-row .key { margin-left: auto; font: 10px ui-monospace, SFMono-Regular, monospace; color: #979b92; }
.alibi p { margin: 0; font-size: 13px; line-height: 1.45; }
.decision-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.keyboard-note { margin-left: auto; font-size: 9px; color: #9b9d92; }
.feedback { min-height: 18px; margin: 17px 0 0; font-size: 12px; line-height: 1.55; color: #855c3d; }
.closed-stamp { display: inline-flex; gap: 10px; padding: 7px 10px; border: 1px solid #739d85; border-radius: 4px; color: #527e65; font: 10px ui-monospace, SFMono-Regular, monospace; letter-spacing: .13em; }
.result-heading { margin: 18px 0 9px; font: 34px Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.result-summary { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.proof-timeline { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.proof-slot { padding: 17px; background: #f7f5ec; border-right: 1px solid var(--line); }.proof-slot:last-child { border-right: 0; }.proof-slot span { display: block; margin-bottom: 8px; color: #7c816e; font: 11px ui-monospace, SFMono-Regular, monospace; }.proof-slot b { font-size: 14px; }
.explanation { background: #edf3e9; border-left: 3px solid #6e947e; border-radius: 0 9px 9px 0; padding: 20px; margin: 21px 0; }
.explanation p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; }.explanation p:last-child { margin: 0; color: #6c796c; font-size: 11px; }.explanation q { font-weight: 650; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.manual-copy { display: block; font-size: 11px; color: var(--muted); margin-top: 12px; }.manual-copy textarea { display: block; width: 100%; min-height: 105px; padding: 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: #faf8f1; font-size: 13px; }
.error-view { color: #a34437; font-size: 14px; line-height: 1.6; }
.under-file { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-top: 38px; }.tiny-number { font: 12px ui-monospace, SFMono-Regular, monospace; color: #a48457; }.under-file h3 { font-size: 12px; font-weight: 650; margin: 10px 0 7px; }.under-file p { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 22px 0 30px; font: 9px ui-monospace, SFMono-Regular, monospace; color: #8b8c7f; letter-spacing: .04em; }
.hide { display: none !important; }
.intro { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 30px; }
.intro-copy { margin-top: 20px; }
.intro-art { display: block; width: 100%; height: auto; max-height: 285px; object-fit: contain; border-radius: 16px; }
.intro-link { display: inline-block; margin-top: 12px; color: var(--ink); text-underline-offset: 5px; font-size: 12px; }
@media (max-width: 700px) { .shell { width: calc(100% - 26px); }.masthead { padding: 20px 0; gap: 12px; flex-wrap: wrap; }.wordmark { font-size: 18px; }.edition { display: none; }main { padding-top: 30px; }.intro { display: block; margin-bottom: 46px; }.intro-copy { margin-top: 20px; font-size: 12px; }h1 { font-size: 47px; }.case-file { padding: 22px 18px; }.case-top { gap: 15px; }.case-top .overline { font-size: 8px; }h2 { font-size: 31px; }.timer { min-width: 84px; padding: 12px 8px; }.timer strong { font-size: 23px; }.timer-label { font-size: 7px; }.timer span:last-child { font-size: 7px; text-align: center; }.scene { font-size: 12px; }.brief { grid-template-columns: 1fr; gap: 25px; }.paper-diagram { max-width: 245px; margin: 0 auto; width: 100%; height: 155px; }.diagram-line { margin-top: 20px; }.brief h3 { font-size: 23px; }.brief ol { font-size: 12px; }.start-view > .primary { width: 100%; }.availability { display: block; margin: 12px 0 0; text-align: center; }.records { grid-template-columns: 1fr; gap: 10px; }.record { padding: 13px 15px; }.record-label { margin-bottom: 7px; }.record p { font-size: 16px; }.section-line span { font-size: 9px; max-width: 120px; text-align: right; }.slot-line { gap: 10px; flex-wrap: wrap; }.slot-line b { padding: 5px 8px; }.alibis { grid-template-columns: 1fr; gap: 10px; }.alibi { padding: 15px; }.alibi[aria-pressed="true"] { padding: 14px; }.person-row { margin-bottom: 8px; }.decision-row { background: #fffdf7f2; margin: 19px -4px 0; padding: 10px 4px; gap: 15px; border-top: 1px solid var(--line); }.keyboard-note { display: none; }.proof-timeline { grid-template-columns: 1fr 1fr; }.proof-slot { border-bottom: 1px solid var(--line); }.proof-slot:nth-child(2) { border-right: 0; }.proof-slot:nth-child(n+3) { border-bottom: 0; }.result-heading { font-size: 29px; }.result-actions { gap: 8px; }.result-actions .primary { width: 100%; }.result-actions .secondary { flex: 1; }.under-file { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }footer { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 700px) { .intro-art { max-height: 170px; margin-top: 18px; }.intro-copy { margin-top: 16px; } }
