/* The reception is deliberately self-contained: other hospital rooms keep their styling. */
.reception-stage {
    --reception-ink: #342b20;
    --reception-soft: #6f604c;
    --reception-line: #d6c6a8;
    --reception-paper: #fff9ed;
    --reception-green: #315e45;
    color: var(--reception-ink);
}

.reception-stage::after {
    background: linear-gradient(90deg, rgba(27,22,16,.08) 32%, rgba(27,22,16,.35)), linear-gradient(to top, rgba(27,22,16,.23), transparent 48%);
}

.reception-stage .scene-heading {
    top: 18px;
    left: 24px;
    width: min(470px, calc(100vw - 280px));
    padding: 11px 16px;
}

.reception-stage .scene-heading h1 { font-size: clamp(21px, 2.1vw, 29px); }
.reception-stage .scene-heading .scene-eyebrow { font-size: 10px; }
.reception-stage .scene-actions { top: 18px; }
.reception-stage .back-button { min-height: 46px; padding: 6px 12px 6px 7px; font-size: 15px; }
.reception-stage .back-button .nav-arrow { width: 28px; height: 28px; flex-basis: 28px; }

.reception-room-canvas {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    width: max(100vw, calc(100vh * 1672 / 941));
    aspect-ratio: 1672 / 941;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@supports (height: 100dvh) {
    .reception-room-canvas { width: max(100vw, calc(100dvh * 1672 / 941)); }
}

.reception-journal-hotspot {
    position: absolute;
    left: 47%;
    top: min(80%, calc(50% + 50vh - 72px));
    top: min(80%, calc(50% + 50dvh - 72px));
    width: clamp(224px, 22%, 350px);
    min-height: 88px;
    padding: 13px 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    transform: translate(-50%, -50%);
    border: 1px solid #e8d3a6;
    border-radius: 17px;
    color: #fff9e9;
    background: rgba(52,43,30,.93);
    box-shadow: 0 0 0 6px rgba(255,239,197,.17), 0 10px 28px rgba(0,0,0,.28);
    text-align: left;
    pointer-events: auto;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

.reception-journal-hotspot:hover {
    background: #463a27;
    box-shadow: 0 0 0 9px rgba(255,239,197,.23), 0 12px 30px rgba(0,0,0,.3);
}

.reception-hotspot-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border: 1px solid rgba(232,211,166,.5);
    border-radius: 12px;
    background: rgba(255,239,197,.08);
}

.reception-hotspot-symbol svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.reception-hotspot-caption strong { display: block; font-size: 18px; line-height: 1.2; }
.reception-hotspot-caption small { display: block; margin-top: 5px; color: #eadbc1; font-size: 13px; line-height: 1.3; }

.reception-intro {
    position: absolute;
    z-index: 7;
    top: 154px;
    right: max(24px, 4vw);
    width: min(405px, 39vw);
    max-height: calc(100% - 245px);
    overflow-y: auto;
    padding: clamp(22px, 2.4vw, 32px);
    border: 1px solid rgba(227,210,177,.8);
    border-radius: 21px;
    background: rgba(255,249,237,.95);
    box-shadow: 0 12px 34px rgba(30,24,16,.18);
}

.reception-eyebrow {
    display: block;
    color: #78613a;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.reception-intro h2 { margin: 12px 0 15px; font: 700 clamp(28px, 2.5vw, 38px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.reception-intro p { margin: 0; color: var(--reception-soft); font-size: 17px; line-height: 1.55; }
.reception-intro .reception-room-progress { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--reception-line); color: var(--reception-green); font-size: 14px; font-weight: 700; }

.reception-workspace {
    position: absolute;
    z-index: 8;
    top: 158px;
    bottom: 20px;
    left: 50%;
    width: min(1100px, calc(100vw - 48px));
    transform: translateX(-50%);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b8a282 #f1e6d1;
    scrollbar-gutter: stable;
    border: 1px solid #d0b991;
    border-radius: 20px;
    background: var(--reception-paper);
    box-shadow: 0 20px 60px rgba(22,17,12,.32), 0 0 0 5px rgba(61,45,26,.14);
    text-align: left;
}

.reception-workspace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 30px 20px;
    background: #f6ecda;
}

.reception-workspace-header > div { min-width: 0; }
.reception-workspace-header h2 { margin: 7px 0 0; font: 700 clamp(25px, 2.4vw, 34px)/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }

.reception-steps {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 14px 30px;
    border-top: 1px solid #e4d5ba;
    border-bottom: 1px solid #d9c7a8;
    list-style: none;
    background: #f6ecda;
}

.reception-steps li { display: flex; align-items: center; gap: 8px; color: #776b5b; font-size: 14px; line-height: 1.2; }
.reception-steps li > span:first-child { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid #bfb093; border-radius: 50%; font-size: 12px; font-weight: 800; }
.reception-steps li.is-current { color: #3c4e37; font-weight: 800; }
.reception-steps li.is-current > span:first-child { color: #fffaf0; background: #3e5a43; border-color: #3e5a43; }
.reception-steps li.is-done { color: var(--reception-green); }
.reception-steps li.is-done > span:first-child { background: #e2eadb; border-color: #8b9d7b; }

.reception-paper { padding: 30px; background: linear-gradient(100deg, #fffaf0, #fbf2e2); }
.reception-spread { display: grid; grid-template-columns: 1.04fr 1fr; gap: 34px; }
.reception-story, .reception-notes { min-width: 0; }
.reception-story { padding-right: 28px; border-right: 1px solid var(--reception-line); }
.reception-record-number { margin: 0; color: #8b6742; font: italic 15px/1.4 Georgia, "Times New Roman", serif; }
.reception-person-name { margin: 10px 0 17px; font: 700 29px/1.15 Georgia, "Times New Roman", serif; }
.reception-story-text { margin: 0; color: #433a2e; font-size: 17px; line-height: 1.65; }
.reception-story-text + .reception-story-text { margin-top: 12px; }
.reception-fiction-note { margin: 21px 0 0; padding-top: 15px; border-top: 1px dashed #cdbb9d; color: #796d59; font-size: 12px; line-height: 1.55; }
.reception-margin-note { margin: 20px 0 0; color: #71613e; font: italic 18px/1.45 Georgia, "Times New Roman", serif; }
.reception-notes h3 { margin: 0 0 8px; font: 700 23px/1.2 Georgia, "Times New Roman", serif; }
.reception-note-instruction { margin: 0 0 18px; color: var(--reception-soft); font-size: 14px; line-height: 1.45; }
.reception-note-list { display: grid; gap: 11px; }
.reception-note { border: 1px solid #d2be9b; border-radius: 11px; background: #fffaf0; box-shadow: 0 3px 8px rgba(74,54,28,.04); }
.reception-note.is-read { border-color: #a9b598; }
.reception-note-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 63px; padding: 14px; border: 0; border-radius: 11px; color: var(--reception-ink); background: transparent; text-align: left; cursor: pointer; }
.reception-note-toggle:hover { background: #f3e7d1; }
.reception-note-index { flex: 0 0 25px; color: #957145; font: italic 19px/1 Georgia, "Times New Roman", serif; }
.reception-note-name { flex: 1; font-size: 15px; font-weight: 800; line-height: 1.3; }
.reception-note-state { color: #4e6b45; font-size: 12px; line-height: 1.2; text-align: right; }
.reception-note-detail { padding: 0 17px 17px 49px; color: #5e5140; font-size: 15px; line-height: 1.55; }
.reception-note-detail[hidden] { display: none; }
.reception-note-detail p { margin: 0; }
.reception-journal-footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--reception-line); }
.reception-reading-progress { margin: 0; max-width: 480px; color: #635740; font-size: 14px; line-height: 1.45; }

.reception-stage .primary-button { min-height: 50px; background: var(--reception-green); color: #fff; box-shadow: 0 5px 12px rgba(37,76,50,.16); font-size: 16px; border-radius: 12px; }
.reception-stage .primary-button:hover:not(:disabled) { background: #244d35; }
.reception-stage .primary-button:disabled { cursor: default; opacity: 1; background: #d9ddcf; color: #666e5b; box-shadow: none; }
.reception-stage .secondary-button { min-height: 48px; padding: 11px 17px; border-color: #c4b18e; border-radius: 12px; color: #4d412e; background: #fffaf0; font-size: 15px; }

.reception-decision { max-width: 850px; margin: 0 auto; }
.reception-question { margin: 12px 0 18px; font: 700 clamp(22px, 2vw, 27px)/1.28 Georgia, "Times New Roman", serif; }
.reception-evidence { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 23px; padding: 0; list-style: none; }
.reception-evidence li { padding: 7px 11px; border: 1px solid #d3c5ab; border-radius: 8px; color: #68583d; background: #f2e8d4; font-size: 13px; line-height: 1.4; }
.reception-options { display: grid; gap: 11px; }
.reception-option { display: flex; align-items: flex-start; gap: 13px; width: 100%; padding: 16px 18px; border: 1px solid #cbb695; border-radius: 12px; color: #382f24; background: #fffdf7; text-align: left; font-size: 16px; line-height: 1.5; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.reception-option:hover:not(:disabled) { border-color: #7b8b66; background: #f0f3e8; }
.reception-option-letter { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border: 1px solid #c7b797; border-radius: 8px; color: #7c6240; background: #f4ead5; font-size: 12px; font-weight: 800; }
.reception-option:disabled { opacity: .7; cursor: default; }
.reception-option.is-selected { opacity: 1; }
.reception-option.is-correct { border-color: #70956c; color: #23452e; background: #e8f0e1; }
.reception-option.is-incorrect { border-color: #be9a78; color: #5a3d25; background: #f5e8d7; }
.reception-feedback { margin-top: 20px; padding: 21px 23px; border: 1px solid #bdad88; border-radius: 13px; background: #f5eddc; }
.reception-feedback.is-correct { border-color: #9eb391; background: #eaf0e0; }
.reception-feedback.is-incorrect { border-color: #d1b18b; background: #f6ead8; }
.reception-feedback h3 { margin: 0 0 8px; font: 700 22px/1.2 Georgia, "Times New Roman", serif; }
.reception-feedback p { margin: 0; color: #574b38; font-size: 16px; line-height: 1.55; }
.reception-feedback button { margin-top: 17px; }
.reception-text-button { display: inline-block; min-height: 44px; margin-top: 13px; padding: 9px 0; border: 0; color: #4b6344; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 700; cursor: pointer; }
.reception-text-button:hover { color: #243f25; }
.reception-decision-note { margin: 0 0 18px; color: #6f604c; font-size: 15px; line-height: 1.45; }

.reception-result { max-width: 820px; margin: 0 auto; text-align: center; }
.reception-stamp { display: inline-block; padding: 8px 17px; border: 2px solid #577a50; border-radius: 5px; color: #436c43; font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); }
.reception-result-title { margin: 21px 0 12px; font: 700 clamp(27px, 2.5vw, 35px)/1.15 Georgia, "Times New Roman", serif; }
.reception-result-copy { margin: 0 auto 24px; max-width: 590px; color: #665741; font-size: 17px; line-height: 1.55; }
.reception-finding { padding: 23px 27px; border: 1px solid #bdc6a8; border-left: 5px solid #67825a; border-radius: 13px; background: linear-gradient(110deg, #e8eedf, #f4f3e5); text-align: left; }
.reception-finding .reception-eyebrow { color: #526c43; }
.reception-finding h3 { margin: 7px 0 8px; color: #304b32; font: 700 27px/1.2 Georgia, "Times New Roman", serif; }
.reception-finding p { margin: 0; color: #4e5c43; font-size: 16px; line-height: 1.5; }
.reception-history { margin-top: 21px; padding: 20px 24px; border: 1px solid #dcc9a8; border-radius: 12px; background: #f8efdd; text-align: left; }
.reception-history h3 { margin: 0 0 8px; color: #665131; font-size: 16px; line-height: 1.3; }
.reception-history p { margin: 0; color: #62543f; font-size: 15px; line-height: 1.55; }
.reception-source { display: inline-block; margin-top: 11px; padding: 5px 0; color: #3b6344; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; line-height: 1.5; }
.reception-result-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
.reception-result-actions .reception-text-button { margin: 0; }
.reception-keepsake { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #6b875c; border-radius: 0 8px 8px 0; color: #3e5738; background: #e8eedf; font-size: 14px; line-height: 1.45; }
.reception-keepsake strong { display: block; margin-bottom: 3px; }
.reception-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.reception-title-focus:focus,
.reception-question:focus,
.reception-note-detail:focus,
.reception-feedback:focus { outline: 2px solid #9b814c; outline-offset: 5px; border-radius: 4px; }
.reception-stage button:focus-visible,
.reception-source:focus-visible { outline: 3px solid #a27629; outline-offset: 4px; }

@media (max-width: 1024px) {
    .reception-stage .scene-heading { top: 12px; left: 12px; width: min(470px, calc(100vw - 240px)); padding: 10px 12px; }
    .reception-stage .scene-heading h1 { font-size: 21px; }
    .reception-stage .scene-actions { top: 12px; right: 12px; }
    .reception-stage .back-button { left: 12px; }
    .reception-workspace { top: 137px; bottom: 14px; width: calc(100vw - 28px); }
    .reception-workspace-header { padding: 22px 24px 18px; }
    .reception-steps { padding-inline: 24px; }
    .reception-paper { padding: 25px; }
    .reception-spread { gap: 24px; }
    .reception-story { padding-right: 23px; }
    .reception-intro { top: 139px; right: 20px; width: min(380px, 43vw); padding: 23px; }
}

@media (min-width: 701px) and (max-width: 1024px) {
    .reception-intro { max-height: min(calc(100% - 245px), calc(70dvh - 150px)); }
}

@media (min-width: 821px) {
    .reception-final-panel.final-panel-horizontal { max-height: calc(100dvh - 106px); overflow-y: auto; }
}

@media (max-width: 760px) {
    .reception-spread { grid-template-columns: 1fr; gap: 25px; }
    .reception-story { padding: 0 0 23px; border-right: 0; border-bottom: 1px solid var(--reception-line); }
    .reception-story-text { font-size: 16px; line-height: 1.6; }
    .reception-fiction-note { margin-top: 15px; }
    .reception-margin-note { font-size: 16px; margin-top: 13px; }
    .reception-person-name { font-size: 27px; }
    .reception-journal-footer { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 23px; }
    .reception-journal-footer .primary-button { width: 100%; }
}

@media (max-width: 700px) {
    .reception-stage .scene-heading { width: calc(100vw - 122px); padding: 9px 11px; }
    .reception-stage .scene-heading h1 { font-size: 17px; }
    .reception-stage .scene-heading .scene-eyebrow { display: none; }
    .reception-stage .back-button { min-height: 44px; padding: 6px 12px 6px 7px; font-size: 14px; }
    .reception-intro { top: 122px; right: 16px; left: 16px; width: auto; max-width: 420px; max-height: calc(100% - 280px); padding: 21px 23px; border-radius: 17px; }
    .reception-intro h2 { margin: 9px 0 12px; font-size: 29px; }
    .reception-intro p { font-size: 16px; line-height: 1.5; }
    .reception-intro .reception-room-progress { margin-top: 14px; padding-top: 12px; font-size: 13px; }
    .reception-journal-hotspot { left: 49%; width: 250px; min-height: 80px; padding: 12px 15px; }
    .reception-hotspot-caption strong { font-size: 17px; }
    .reception-workspace { top: 118px; bottom: 10px; width: calc(100vw - 20px); border-radius: 15px; }
    .reception-workspace-header { gap: 12px; padding: 18px 17px 16px; }
    .reception-workspace-header h2 { font-size: 25px; }
    .reception-workspace-header .reception-eyebrow { font-size: 10px; letter-spacing: .06em; }
    .reception-steps { gap: 12px; justify-content: space-between; padding: 12px 17px; }
    .reception-steps li { gap: 6px; font-size: 12px; }
    .reception-steps li > span:first-child { flex-basis: 22px; width: 22px; height: 22px; font-size: 11px; }
    .reception-paper { padding: 22px 17px; }
    .reception-question { font-size: 23px; }
    .reception-option { padding: 14px 12px; gap: 10px; font-size: 15px; }
    .reception-feedback { padding: 18px 17px; }
    .reception-feedback p { font-size: 15px; }
    .reception-feedback button { width: 100%; }
    .reception-result-copy { font-size: 16px; }
    .reception-finding { padding: 20px 18px; }
    .reception-finding h3 { font-size: 25px; }
    .reception-history { padding: 18px; }
    .reception-result-actions { flex-direction: column; align-items: stretch; }
    .reception-result-actions .primary-button { width: 100%; }
}

@media (max-width: 390px) {
    .reception-note-toggle { gap: 8px; padding: 13px 10px; }
    .reception-note-name { font-size: 14px; }
    .reception-note-state { font-size: 11px; }
    .reception-note-detail { padding-left: 43px; }
    .reception-steps { gap: 7px; padding-inline: 14px; }
    .reception-steps li { gap: 5px; }
    .reception-workspace-header h2 { font-size: 23px; }
    .reception-hotspot-caption strong { font-size: 16px; }
}

@media (max-height: 600px) and (min-width: 701px) {
    .reception-stage .scene-heading { top: 10px; left: 12px; padding: 8px 12px; }
    .reception-stage .scene-heading h1 { font-size: 20px; }
    .reception-stage .scene-heading .scene-eyebrow { display: none; }
    .reception-stage .scene-actions { top: 10px; right: 12px; }
    .reception-stage .back-button { left: 12px; min-height: 42px; }
    .reception-workspace { top: 112px; bottom: 10px; }
    .reception-workspace-header { padding-block: 15px; }
    .reception-workspace-header h2 { font-size: 26px; }
    .reception-intro { top: 102px; max-height: calc(100% - 190px); padding: 18px 20px; }
    .reception-intro h2 { font-size: 27px; margin-block: 8px 10px; }
    .reception-intro p { font-size: 15px; }
    .reception-intro .reception-room-progress { margin-top: 10px; padding-top: 10px; }
    .reception-journal-hotspot { min-height: 68px; padding-block: 10px; }
}

@media (max-height: 600px) and (max-width: 700px) {
    .reception-intro { top: 116px; max-height: calc(100% - 238px); padding: 17px 20px; }
    .reception-intro h2 { font-size: 26px; }
    .reception-intro p { font-size: 15px; }
    .reception-journal-hotspot { min-height: 70px; padding-block: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .reception-workspace { animation: none; }
    .reception-journal-hotspot, .reception-option { transition: none; }
}

/* Keep the journal readable on narrow phones and short landscape screens. */
@media (max-width: 800px), (max-width: 1100px) and (max-height: 500px) {
    .reception-workspace { overflow-wrap: anywhere; scrollbar-gutter: auto; }
    .reception-workspace-header { padding: 18px 14px 16px; }
    .reception-eyebrow, .reception-workspace-header .reception-eyebrow { font-size: 14px; letter-spacing: .03em; }
    .reception-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; align-items: start; }
    .reception-steps li { min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.35; }
    .reception-steps li > span:first-child { flex-basis: 24px; width: 24px; height: 24px; font-size: 13px; }
    .reception-paper { padding: 20px 14px 24px; }
    .reception-spread { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .reception-story { padding: 0 0 21px; border-right: 0; border-bottom: 1px solid var(--reception-line); }
    .reception-story-text, .reception-note-instruction, .reception-note-detail,
    .reception-option, .reception-feedback p, .reception-decision-note,
    .reception-history p { font-size: 16px; line-height: 1.55; }
    .reception-note-toggle { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px 10px; padding: 14px 12px; }
    .reception-note-index { grid-row: 1 / 3; align-self: start; padding-top: 2px; }
    .reception-note-name { min-width: 0; font-size: 16px; }
    .reception-note-state { grid-column: 2; font-size: 14px; text-align: left; }
    .reception-note-detail { padding: 0 14px 17px; }
    .reception-option { min-width: 0; padding: 14px 12px; }
    .reception-option > span:last-child { min-width: 0; }
    .reception-fiction-note, .reception-evidence li, .reception-stamp,
    .reception-source { font-size: 14px; }
    .reception-stamp { max-width: 100%; letter-spacing: .05em; transform: none; }
    .reception-source { min-height: 44px; padding-block: 12px; }
    .reception-journal-footer, .reception-result-actions { flex-direction: column; align-items: stretch; }
    .reception-workspace button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .reception-workspace .primary-button, .reception-workspace .secondary-button { width: 100%; }
}
