/* Feeling exhibition: one visual system from the invitation to the next run. */
.page-night {
  --exhibit-paper: #eee9de;
  --exhibit-dim: #c1bbae;
  --exhibit-gold: #d5cfc1;
  --exhibit-hot: #eee9de;
  --exhibit-line: #85877f66;
  --exhibit-night: #090c11;
  --ui-gold-hot: #eee9de;
  --exhibit-hud-top: max(8px, env(safe-area-inset-top));
  --exhibit-hud-gutter: max(8px, env(safe-area-inset-left), env(safe-area-inset-right));
  --exhibit-hud-surface: #10161bac;
  --exhibit-hud-clear: #10161b30;
}
#exhibit-shell, #exhibit-shell * { box-sizing: border-box; }
#exhibit-shell { color: var(--exhibit-paper); font-family: "Noto Sans KR Variable", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
#exhibit-shell [hidden] { display: none !important; }
.page-night #audio-control { z-index: 460; }
.page-night #rotate-hint { display: none !important; }
#exhibit-shell h1, #exhibit-shell h2, #exhibit-shell h3, #exhibit-shell p { margin: 0; }
#exhibit-shell button, #exhibit-shell input, #exhibit-shell summary { font: inherit; }
#exhibit-shell button, #exhibit-shell summary { cursor: pointer; touch-action: manipulation; }
#exhibit-shell button:disabled { opacity: .48; cursor: default; }
#exhibit-shell button:focus-visible, #exhibit-shell input:focus-visible, #exhibit-shell summary:focus-visible { outline: 3px solid var(--exhibit-hot); outline-offset: 4px; }
.exhibit-screen { --ui-gold-hot: #eee9de; position: fixed; inset: 0; z-index: 400; isolation: isolate; overflow: auto; overscroll-behavior: contain; }
.exhibit-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 15px; border: 1px solid #74736c; border-radius: 0; color: #eee9de; background: transparent; text-align: center; transition: background-color 130ms ease; }
#exhibit-shell .exhibit-button { font-size: 14px; font-weight: 600; line-height: 1.4; }
.exhibit-button:not(:disabled):hover { background: #303331; }
.exhibit-button-primary { border-color: #dfd6c5; color: #20231f; background: #dfd6c5; }
.exhibit-button-primary:not(:disabled):hover { background: #eee6d7; }

/* Entry text sits directly over the demonstration. */
.exhibit-intro { background: var(--exhibit-night); }
.exhibit-landscape { position: absolute; inset: 0; z-index: -2; background: #11151b url("/art/day/bg/chapter-1-nightwatch-v4.webp") center / cover no-repeat; image-rendering: pixelated; }
.exhibit-intro[data-live="true"] { background: transparent; }
.exhibit-intro[data-live="true"] .exhibit-landscape { display: none; }
.exhibit-intro-inner { --sign-gutter: clamp(24px, 4.4vw, 72px); position: relative; display: grid; align-content: safe center; justify-items: start; min-height: 100%; padding: 72px var(--sign-gutter); }
.exhibit-brand { position: absolute; inset: max(18px, env(safe-area-inset-top)) var(--sign-gutter) auto auto; display: flex; gap: 8px; }
.exhibit-brand button { min-height: 44px; padding: 8px 13px; border: 1px solid #8f8e83; color: #f0ebe0; background: #171c20; font-size: 12px !important; white-space: nowrap; }
.exhibit-intro-copy { width: min(456px, 100%); padding: clamp(22px, 2.4vw, 34px); color: #eee9de; }
#exhibit-intro-title { font-size: clamp(56px, 6vw, 84px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.exhibit-intro-description { margin-top: 20px !important; font-size: 18px; line-height: 1.65; }
.exhibit-goal-badge { display: flex; align-items: baseline; gap: 8px; margin-top: 12px !important; color: #c1bbae; font-size: 13px; }
.exhibit-goal-badge > strong { color: #eee9de; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.exhibit-entry-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; margin-top: 24px; }
.exhibit-entry-actions .exhibit-button { min-height: 54px; padding-inline: 12px; border-color: #85877f; background: #171c20; }
.exhibit-entry-actions .exhibit-button:not(:disabled):hover { background: #303632; }
.exhibit-entry-actions .exhibit-button-primary { border-color: #eee9de; color: #171c20; background: #eee9de; }
.exhibit-entry-actions .exhibit-button-primary:not(:disabled):hover { background: #d6d1c5; }
#exhibit-fullscreen-note:not(:empty) { margin-top: 10px !important; color: #c1bbae; font-size: 12px; }
#exhibit-pad-note { margin-top: 10px; color: #eee9de; font-size: 13px; }
.exhibit-attract-caption { position: absolute; right: var(--sign-gutter); bottom: 24px; color: #c1bbae; font-size: 12px; }
.exhibit-intro-footer { display: grid; gap: 9px; margin-top: 20px; }
.exhibit-dualsense-guide { display: grid; gap: 5px; }
.exhibit-input-caption, .exhibit-pad-buttons { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; color: #d2ccc0; font-size: 13px; }
.exhibit-input-caption strong, .exhibit-input-caption b { color: #eee9de; font-weight: 650; }
.exhibit-input-caption kbd { color: #eee9de; font: inherit; font-weight: 500; }
.exhibit-pad-buttons > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.exhibit-pad-buttons kbd { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid #c1bbae8c; border-radius: 50%; color: #eee9de; background: #10161bac; font: 650 15px/1 system-ui, sans-serif; }
.exhibit-keyboard-guide { font-size: 12px; }
.exhibit-intro-record { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid #777b7166; color: #c1bbae; font-size: 13px; }
.exhibit-intro-record > strong { color: #eee9de; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }

.exhibit-overline { margin-bottom: 14px !important; color: #c1bbae; font-size: 13px; font-weight: 500; }

/* A small coach leaves the moving character and nearby danger fully visible. */
.exhibit-lesson { display: flex; align-items: flex-end; padding: 24px; pointer-events: none; }
.exhibit-lesson:focus { outline: none; }
.exhibit-lesson-panel { width: min(410px, 100%); padding: 21px 24px; border: 1px solid #65675f; background: #171c20; pointer-events: auto; }
.exhibit-lesson-heading h2 { color: #eee9de; font-size: 22px; font-weight: 650; line-height: 1.35; letter-spacing: -.035em; }
#exhibit-lesson-copy { margin-top: 7px !important; color: #d0cabd; font-size: 15px; line-height: 1.6; }
#exhibit-practice-progress { display: block; width: 100%; height: 3px; margin: 13px 0 10px; border: 0; accent-color: #dfd6c5; background: #464944; }
#exhibit-practice-progress::-webkit-progress-bar { background: #464944; }
#exhibit-practice-progress::-webkit-progress-value { background: #dfd6c5; }
#exhibit-practice-progress::-moz-progress-bar { background: #dfd6c5; }
.exhibit-lesson-footer > p { color: #c1bbae; font-size: 12px; }
.exhibit-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 13px; }
.exhibit-actions .exhibit-button { min-height: 44px; padding: 10px 12px; }
#exhibit-lesson-time { align-self: center; justify-self: end; color: #dfd6c5; font-size: 13px; font-variant-numeric: tabular-nums; }
.exhibit-player-guide { position: fixed; z-index: 260; width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 7px 11px; transform: translateX(-50%); border: 1px solid #77796e; color: #eee9de; background: #171c20; font: 600 13px/1.5 "Noto Sans KR Variable", "Malgun Gothic", system-ui, sans-serif; text-align: center; pointer-events: none; }
.exhibit-player-guide > strong { display: block; font-size: 13px; }
.exhibit-player-guide::after { content: ""; position: absolute; top: -6px; left: calc(var(--exhibit-guide-arrow, 50%) - 5px); width: 9px; height: 9px; border-left: 1px solid #77796e; border-top: 1px solid #77796e; background: #171c20; transform: rotate(45deg); }
.exhibit-player-guide[data-side="above"]::after { top: auto; bottom: -6px; transform: rotate(225deg); }
.exhibit-countdown { display: grid; align-content: center; justify-content: center; color: #eee9de; background: #0c111777; text-align: center; font: 650 clamp(72px, 12vw, 140px)/1.1 "Noto Sans KR Variable", system-ui, sans-serif; font-variant-numeric: tabular-nums; }

/* The two columns share a small card. Only pause takes space on the right. */
.exhibit-hud { position: fixed; z-index: 300; top: var(--exhibit-hud-top); left: var(--exhibit-hud-gutter); right: var(--exhibit-hud-gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; pointer-events: none; text-shadow: 0 1px 4px #000; }
.exhibit-hud-stats, .exhibit-pause-button { border: 1px solid #d2cbbc38; background: var(--exhibit-hud-surface); }
.exhibit-hud-stats { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: center; gap: 10px; width: min(260px, 100%); min-height: 60px; padding: 6px 8px; }
.exhibit-vitals { min-width: 0; }
.exhibit-health-caption { display: flex; justify-content: space-between; gap: 4px; color: var(--exhibit-dim); font-size: 11px; line-height: 1.3; white-space: nowrap; }
.exhibit-health-caption > strong { color: #eee9de; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.exhibit-health-track { height: 4px; margin-top: 3px; overflow: hidden; background: #402e29; }
#exhibit-hp-fill { display: block; width: 100%; height: 100%; background: #d7a476; transform-origin: left center; }
.exhibit-hud[data-danger="true"] #exhibit-hp-fill { background: #e48272; }
.exhibit-inventory { display: flex; justify-content: space-between; gap: 4px; margin-top: 3px; color: #c1bbae; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.exhibit-inventory b { color: #eee9de; font-weight: 500; font-variant-numeric: tabular-nums; }
.exhibit-live-clock { position: relative; display: grid; align-content: center; gap: 4px; min-width: 0; padding-inline-start: 8px; border-inline-start: 1px solid #d2cbbc38; }
.exhibit-clock-face { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; white-space: nowrap; }
.exhibit-clock-face > span { color: var(--exhibit-dim); font-size: 10px; line-height: 1.2; }
.exhibit-clock-face > strong { color: var(--exhibit-hot); font-size: 27px; font-weight: 650; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.exhibit-live-clock > small { position: absolute; top: calc(100% + 10px); right: 0; width: max-content; padding: 3px 5px; background: var(--exhibit-hud-surface); color: #eee9de; font-size: 10px; line-height: 1.2; }
.exhibit-live-context { display: none; }
.exhibit-pause-button { display: grid; place-items: center; justify-self: end; width: 44px; height: 44px; padding: 4px; color: var(--exhibit-dim); pointer-events: auto; text-shadow: inherit; }
.exhibit-pause-button > span { color: var(--exhibit-paper); font-size: 18px; line-height: 1; }
.exhibit-hud[data-shopping="true"] { display: none; }
.exhibit-hud > [data-player-under="true"] { background: var(--exhibit-hud-clear); border-color: transparent; }
.exhibit-shop-banner { display: none; }
.exhibit-warning { position: fixed; z-index: 310; left: 50%; bottom: max(6px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); padding: 5px 12px; transform: translateX(-50%); border: 1px solid #dbae65ad; color: #ffe0a0; background: #17120ef2; font: 650 clamp(12px, 1.25vw, 17px)/1.35 "Malgun Gothic", system-ui, sans-serif; text-align: center; pointer-events: none; }
#exhibit-idle-note { position: fixed; z-index: 435; left: 50%; bottom: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 14px; transform: translateX(-50%); border: 1px solid var(--exhibit-line); color: var(--exhibit-paper); background: #171a20f5; font-size: 12px; text-align: center; pointer-events: none; }
#exhibit-idle-note[data-mode="pause"] { bottom: 102px; }

/* Two columns of type, like a score sheet. */
.exhibit-result { display: grid; align-items: safe center; justify-items: center; padding: clamp(24px, 5vw, 72px); color: #eee9de; background: #171c20; }
.exhibit-result-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; gap: clamp(32px, 5.5vw, 78px); width: min(920px, 100%); }
.exhibit-result-main { min-width: 0; }
#exhibit-result-title, .exhibit-board-panel h2 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 650; line-height: 1.35; letter-spacing: -.035em; }
.exhibit-final-time { display: flex; flex-direction: column; margin: 16px 0 18px; }
.exhibit-final-time > span { color: #c1bbae; font-size: 13px; }
.exhibit-final-time > strong { font-size: clamp(56px, 6.3vw, 98px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
#exhibit-result-gap { margin-top: 6px !important; color: #c1bbae; font-size: 14px; }
.exhibit-result-stats { display: flex; gap: 32px; margin: 0; padding-bottom: 15px; border-bottom: 1px solid #5f6058; }
.exhibit-result-stats dt { color: #c1bbae; font-size: 13px; }
.exhibit-result-stats dd { margin: 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.exhibit-result-note { margin-top: 12px !important; color: #c1bbae; font-size: 13px; line-height: 1.55; }
.exhibit-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
#exhibit-reset-seconds { margin-top: 8px !important; color: #b1ab9d; font-size: 12px; font-variant-numeric: tabular-nums; }
.exhibit-name-details { margin-top: 12px; }
.exhibit-name-details > summary { width: fit-content; padding: 7px 0; color: #e2dbce; font-size: 13px !important; }
.exhibit-name-details > summary > span { color: #b1ab9d; font-size: 12px; }
.exhibit-save-record { padding: 4px 0 8px; }
.exhibit-save-record > label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: #c1bbae; font-size: 12px; }
.exhibit-save-record > label > span { color: #b1ab9d; font-size: 12px; }
.exhibit-name-row { display: flex; gap: 10px; }
#exhibit-name { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #74736c; border-radius: 0; color: #eee9de; background: #111519; }
#exhibit-name::placeholder { color: #b1ab9d; }
#exhibit-save { flex: 0 0 auto; min-height: 46px; padding-inline: 17px; }
#exhibit-nickname-keyboard { display: grid; gap: 5px; margin-top: 9px; }
.exhibit-nickname-row { display: flex; justify-content: center; gap: 4px; }
#exhibit-shell .exhibit-nickname-key { flex: 0 1 calc((100% - 36px) / 10); min-width: 0; min-height: 34px; padding: 0 2px; border: 1px solid #686b64; border-radius: 3px; color: var(--exhibit-paper); background: #252b2e; font: 650 14px/1 system-ui, sans-serif; white-space: nowrap; }
#exhibit-shell .exhibit-nickname-key:hover { background: #394044; }
#exhibit-shell .exhibit-nickname-key:focus, #exhibit-shell .exhibit-name-details[open] #exhibit-save:focus { outline: 2px solid var(--exhibit-hot); outline-offset: 1px; }
#exhibit-shell .exhibit-nickname-key[aria-pressed="true"] { color: #171c20; background: var(--exhibit-paper); }
#exhibit-shell .exhibit-nickname-controls .exhibit-nickname-key { flex: 1; }
#exhibit-shell .exhibit-nickname-controls .exhibit-nickname-key:nth-child(3) { flex: 2; }
.exhibit-nickname-pad { margin-top: 8px !important; }
.exhibit-board-panel { min-width: 0; padding-inline-start: clamp(22px, 3.5vw, 50px); border-inline-start: 1px solid #5f6058; }
.exhibit-board { margin: 12px 0; padding: 0; list-style: none; counter-reset: exhibit-rank; }
.exhibit-board > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; padding: 7px 0; border-bottom: 1px solid #51544f; counter-increment: exhibit-rank; font-size: 14px; }
.exhibit-board > li::before { content: counter(exhibit-rank); flex: 0 0 22px; color: #c1bbae; font-size: 13px; font-variant-numeric: tabular-nums; }
.exhibit-board > li > :first-child { flex: 1; overflow-wrap: anywhere; }
.exhibit-board > li > :last-child { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exhibit-board > li[data-current="true"] { margin-inline: -7px; padding-inline: 7px; background: #323632; }
.exhibit-board > li.exhibit-board-empty { justify-content: start; min-height: 0; border: 0; color: #c1bbae; font-size: 13px; }
.exhibit-board > li.exhibit-board-empty::before { content: none; }
.exhibit-board-footnote { color: #b1ab9d; font-size: 12px; line-height: 1.6; }

.exhibit-modal { display: grid; align-items: safe center; justify-items: center; padding: 20px; background: #090d1199; }
.exhibit-modal-panel { width: min(410px, 100%); padding: clamp(20px, 3.2vw, 38px); border: 1px solid #74736c; background: #171c20; }
.exhibit-modal-panel h2 { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.35; letter-spacing: -.035em; }
.exhibit-modal-copy { margin-top: 10px !important; color: #c1bbae; font-size: 14px; }
.exhibit-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.exhibit-modal-actions .exhibit-button { flex: 1 1 auto; }
.exhibit-modal-note { margin-top: 12px !important; color: #c1bbae; font-size: 12px; }
.exhibit-error { z-index: 450; }

/* Keep the existing sound controls; use the same plain pause colours. */
.page-night:has(#exhibit-pause:not([hidden])) #audio-control {
  --night-paper: #eee9de;
  --night-paper-dim: #c1bbae;
  --result-accent: #eee9de;
  --result-accent-hot: #eee9de;
  --ui-gold-hot: #eee9de;
  border-color: #74736c;
  border-radius: 0;
  background: #171c20;
  box-shadow: none;
}
.page-night:has(#exhibit-pause:not([hidden])) #audio-control button { border-radius: 0; font-weight: 500; }
.page-night:has(#exhibit-pause:not([hidden])) #audio-control label { font-weight: 400; letter-spacing: 0; }

@media (max-width: 660px) {
  .exhibit-intro-inner { --sign-gutter: 18px; padding: 72px var(--sign-gutter) max(18px, env(safe-area-inset-bottom)); }
  #exhibit-intro-title { font-size: 46px; }
  .exhibit-intro-copy { padding: 22px; }
  .exhibit-lesson { padding: 14px; }
  .exhibit-lesson-panel { padding: 15px; }
  .exhibit-player-guide { max-width: 210px; font-size: 11px; }
  .exhibit-health-caption, .exhibit-health-caption > strong, .exhibit-inventory { font-size: 10px; }
  .exhibit-warning { font-size: 13px; }
  .exhibit-result { align-items: start; padding: 24px 20px; }
  .exhibit-result-layout { width: min(460px, 100%); grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .exhibit-board-panel { padding: 15px 0 0; border-inline-start: 0; border-top: 1px solid #5f6058; }
}
@media (max-width: 360px) {
  .exhibit-hud-stats { gap: 6px; padding-inline: 6px; }
  .exhibit-live-clock { padding-inline-start: 6px; }
  .exhibit-clock-face > strong { font-size: 23px; }
}
@media (max-aspect-ratio: 1/1) {
  .page-night:has(#exhibit-intro[data-live="true"]:not([hidden])) #game { transform: translateY(-18dvh); }
  .exhibit-intro-inner { align-content: safe end; justify-items: center; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .exhibit-attract-caption { inset: max(25px, env(safe-area-inset-top)) auto auto var(--sign-gutter); }
}
@media (max-aspect-ratio: 1/1) and (max-height: 650px) {
  .page-night:has(#exhibit-intro[data-live="true"]:not([hidden])) #game { transform: translateY(calc(64px + 28.125vw - 50dvh)); }
  .exhibit-intro-copy { padding: 16px 19px; }
  #exhibit-intro-title { font-size: 40px; }
  .exhibit-intro-description { margin-top: 9px !important; font-size: 14px; }
  .exhibit-goal-badge { margin-top: 6px !important; }
  .exhibit-entry-actions { margin-top: 12px; }
  .exhibit-intro-footer { margin-top: 11px; padding-top: 7px; gap: 4px; }
}
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .exhibit-intro-inner { padding-block: 12px; }
  .exhibit-intro-copy { width: min(318px, 100%); padding: 17px 20px; }
  #exhibit-intro-title { font-size: 40px; }
  .exhibit-intro-description { margin-top: 9px !important; }
  .exhibit-goal-badge { margin-top: 6px !important; }
  .exhibit-entry-actions { margin-top: 12px; }
  .exhibit-intro-footer { margin-top: 11px; padding-top: 7px; gap: 4px; }
  .exhibit-result { align-items: start; padding-block: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #exhibit-shell *, #exhibit-shell *::before, #exhibit-shell *::after { transition: none !important; animation: none !important; }
}
