* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  background: #060810;
  color: #efe9dc;
  font-family: 'Gowun Batang', 'Noto Serif KR', 'Noto Serif TC', 'Apple SD Gothic Neo', 'PingFang TC', 'PingFang SC', 'Songti TC', 'Batang', serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#stage { position: fixed; inset: 0; overflow: hidden; }

#bgWrap { position: absolute; inset: 0; }
#bg {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.88) saturate(.92);
  background: #060810;
  transition: filter 0.6s ease;
}
#bg.kb { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07) translateY(-1.5%); }
}

#vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(4,6,12,.82) 100%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { opacity: .88; } 50% { opacity: 1; }
}

#flash {
  position: absolute; inset: 0; background: #e8d399;
  opacity: 0; pointer-events: none; z-index: 40;
}
#flash.on { animation: flashAnim .6s ease-out; }
@keyframes flashAnim { 0% {opacity:.75;} 100% {opacity:0;} }

#fader {
  position: absolute; inset: 0; background: #04050a; z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
#fader.on { opacity: 1; pointer-events: all; }

/* HUD */
#hud {
  position: absolute; z-index: 30;
  top: env(safe-area-inset-top, 0); left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 14px;
}
.hudBtn {
  background: rgba(8,10,18,.68); border: 1px solid rgba(214,185,120,.28);
  color: #e6dcc8; font-size: 17px; width: 42px; height: 42px;
  border-radius: 10px; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hudCenter {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
#clock {
  font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif;
  font-size: 15px; font-weight: 600; letter-spacing: 1.5px; color: #e2c578;
  text-shadow: 0 0 12px rgba(214,180,95,.55);
  background: rgba(8,10,18,.72); padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(214,185,120,.25);
}
.senseBar {
  display: flex; gap: 6px; align-items: center;
  background: rgba(8,10,18,.78); padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(214,185,120,.25);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.senseOrb {
  font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif; font-weight: 700;
  font-size: 13.5px; width: 27px; height: 27px;
  display: grid; place-items: center; border-radius: 50%;
  color: #888; opacity: 0.32;
  transition: all 0.45s ease;
  border: 1px solid rgba(255,255,255,.12);
}
.senseOrb.on {
  color: #fff8e4; opacity: 1;
  background: rgba(214,180,95,.32);
  border-color: rgba(235,205,125,.9);
  box-shadow: 0 0 10px rgba(235,205,125,.6);
  transform: scale(1.06);
}
.senseCount {
  font-size: 12.5px; color: #d8c38a; margin-left: 4px; font-weight: 600;
  letter-spacing: 0.5px;
}

/* UI 소멸 연출 (클라이맥스 산책 구간) */
#stage.uiMinimal #clock,
#stage.uiMinimal #btnRules,
#stage.uiMinimal #noteBadge {
  opacity: 0 !important; pointer-events: none !important; transition: opacity 0.8s ease;
}
#stage.uiMinimal #sheet {
  border-color: transparent;
  background: linear-gradient(to top, rgba(4,5,10,.96) 55%, rgba(4,5,10,.72) 85%, transparent);
}
.tapContinueHint {
  font-size: 13.5px; color: rgba(230,215,180,.68); text-align: center;
  padding: 10px 0 4px; letter-spacing: 1.5px; cursor: pointer;
  animation: hintPulse 1.8s ease-in-out infinite;
}

/* 암전 회상 연출 (6단계: 오감 0/5 이후 기억 회상) */
#stage.blackout #bg {
  filter: brightness(0) !important;
  transition: filter 1.2s ease;
}

/* 10단계: 餘韻 단독 연출 오버레이 */
.yeounOverlay {
  position: absolute; inset: 0; z-index: 55;
  background: radial-gradient(circle at 50% 48%, #fbf6ea 0%, #e8dec8 55%, #cfc2a8 100%);
  color: #1c1915;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 1.8s ease;
  cursor: pointer;
}
.yeounOverlay.on { opacity: 1; }
.yeounWord {
  font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif; font-weight: 700;
  font-size: clamp(54px, 14vw, 88px); letter-spacing: 18px;
  color: #1b1814; text-indent: 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,.12);
  animation: yeounFadeIn 2.2s ease forwards;
}
.yeounSub {
  margin-top: 28px; font-size: 16px; letter-spacing: 3px;
  color: #4a4236; opacity: 0; transition: opacity 1.4s ease;
}
.yeounSub.on { opacity: 1; }
@keyframes yeounFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 화면 공통 */
.screen { position: absolute; inset: 0; z-index: 20; display: flex; }

/* 타이틀 */
#titleScreen { align-items: center; justify-content: center; text-align: center; }
.titleBox {
  padding: 28px 24px; width: min(92vw, 480px);
  background: rgba(8,10,18,.74); border: 1px solid rgba(214,185,120,.22);
  border-radius: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 48px rgba(0,0,0,.65);
}
.titleSub {
  font-size: 13.5px; color: #b9ae98; letter-spacing: 3px; margin-bottom: 8px;
}
.titleMain {
  font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif; font-weight: 700;
  font-size: clamp(34px, 9.5vw, 54px); color: #ebd292; line-height: 1.25;
  text-shadow: 0 0 24px rgba(218,182,95,.45), 1px 2px 5px #000; margin-bottom: 10px;
}
.titleTagline {
  font-size: 13.5px; color: #cbbd9f; margin-bottom: 12px; font-style: italic;
}
.titleWarn { font-size: 12.5px; color: #8f887b; margin-bottom: 22px; }
.titleBtns { display: flex; flex-direction: column; gap: 11px; }

.mBtn {
  font-family: inherit; font-size: 16.5px; padding: 14px 18px;
  background: rgba(14,17,28,.92); color: #efe9dc;
  border: 1px solid rgba(205,175,110,.42); border-radius: 12px;
  cursor: pointer; transition: background .2s, transform .1s, border-color .2s;
  min-height: 50px;
  text-shadow: 0 1px 2px #000;
}
.mBtn:hover { border-color: rgba(235,205,130,.75); background: rgba(24,29,46,.95); }
.mBtn:active { transform: scale(.98); background: rgba(45,38,24,.95); }
.mBtn.primary {
  background: linear-gradient(135deg, rgba(110,78,26,.92), rgba(74,48,16,.95));
  border-color: #d9b668; color: #fff8ea; font-weight: 700;
}
.mBtn.warn { border-color: #8a3c3c; color: #dca0a0; }

/* 게임 화면: 하단 시트 */
#gameScreen { align-items: flex-end; }
#sheet { transition: opacity .55s ease, transform .55s ease; }
#sheet.revealHide { opacity: 0; transform: translateY(26px); pointer-events: none; }
#tapHint {
  position: absolute; z-index: 26; left: 50%; transform: translateX(-50%);
  bottom: calc(30px + env(safe-area-inset-bottom, 0));
  color: rgba(235,222,195,.8); font-size: 14px; letter-spacing: 1px;
  text-shadow: 0 1px 3px #000;
  animation: hintPulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hintPulse { 0%,100% { opacity: .35; } 50% { opacity: .95; } }
#sheet {
  width: 100%;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(to top, rgba(6,8,15,.98) 62%, rgba(6,8,15,.9) 86%, rgba(6,8,15,.4) 97%, transparent);
  display: flex; flex-direction: column; gap: 13px;
  min-height: 46vh; max-height: 84vh; overflow-y: auto; justify-content: flex-end;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.speakerRow {
  display: flex; align-items: center; gap: 12px;
}
.avatarWrap {
  position: relative; width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, #ebd28e, #8f6b29);
  box-shadow: 0 4px 16px rgba(0,0,0,.65), 0 0 12px rgba(235,210,142,.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.avatarWrap.happy {
  background: linear-gradient(135deg, #ffe89e, #5ec99b);
  box-shadow: 0 0 22px rgba(94,201,155,.75);
  animation: avatarBounce 0.55s ease;
}
.avatarWrap.angry {
  background: linear-gradient(135deg, #ff5e57, #8a1c18);
  box-shadow: 0 0 22px rgba(255,94,87,.85);
  animation: shakeAnim 0.45s ease-in-out;
}
@keyframes avatarBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.12) translateY(-6px); }
  70% { transform: scale(1.04) translateY(0); }
}
#charAvatar {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  display: block; background: #101420;
}
.emotionBadge {
  position: absolute; right: -4px; top: -4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(10,12,20,.92); border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
#speaker {
  font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif; font-weight: 700;
  font-size: 16px; color: #ebd089; letter-spacing: 1.5px;
  text-shadow: 0 1px 3px #000;
  display: inline-flex; align-items: center; gap: 6px;
}
#narration {
  font-size: 17.5px; line-height: 1.82; color: #f3eee4;
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8);
  min-height: 3.5em;
  white-space: pre-wrap;
}
#narration.special {
  font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif; font-weight: 700;
  font-size: 22px; color: #f2d894; line-height: 1.65;
  text-shadow: 0 0 16px rgba(218,182,95,.55), 0 2px 4px #000;
}
#noteBadge {
  font-size: 13.5px; color: #e2cb8b; border: 1px dashed rgba(218,188,112,.55);
  padding: 9px 13px; border-radius: 8px; align-self: flex-start;
  background: rgba(28,24,14,.65); line-height: 1.55; white-space: pre-wrap;
}
#choices { display: flex; flex-direction: column; gap: 9px; }
#choices .mBtn {
  text-align: left; font-size: 16px; line-height: 1.48;
  opacity: 0; animation: riseIn .35s ease forwards;
}
#choices .mBtn:nth-child(2) { animation-delay: .06s; }
#choices .mBtn:nth-child(3) { animation-delay: .12s; }
#choices .mBtn:nth-child(4) { animation-delay: .18s; }
#choices .mBtn:nth-child(5) { animation-delay: .24s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none; } }

/* 엔딩 카드 */
#endingScreen { align-items: center; justify-content: center; text-align: center; background: rgba(5,7,14,.9); }
.endCard {
  padding: 26px 22px; width: min(92vw, 500px); max-height: 88vh; overflow-y: auto;
  background: rgba(12,15,24,.88); border: 1px solid rgba(214,185,120,.3); border-radius: 18px;
}
#endType { font-size: 13.5px; letter-spacing: 5px; color: #b5ab99; margin-bottom: 10px; font-weight: 700; }
#endTitle {
  font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif; font-weight: 700;
  font-size: clamp(26px, 7.5vw, 38px); color: #d86c64; margin-bottom: 16px;
  text-shadow: 0 0 18px rgba(200,70,60,.45), 1px 2px 4px #000;
}
#endTitle.good {
  color: #ebd28e; text-shadow: 0 0 22px rgba(225,195,110,.55), 1px 2px 4px #000;
}
#endDesc { font-size: 15.5px; line-height: 1.78; color: #ddd6c8; margin-bottom: 22px; white-space: pre-wrap; text-align: left; }

/* 모달 */
.modal {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(3,5,10,.78); display: flex; align-items: center; justify-content: center;
}
.modalBox {
  width: min(92vw, 460px); max-height: 82vh; overflow-y: auto;
  background: #0d101a; border: 1px solid rgba(210,180,115,.38); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 16px 44px rgba(0,0,0,.75);
}
.modalBox h3 { color: #ebd089; font-size: 19px; margin-bottom: 4px; font-family: 'Noto Serif KR', 'Noto Serif TC', 'Gowun Batang', 'Songti TC', serif; }
#galleryList { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
#galleryList li {
  padding: 10px 12px; border-radius: 8px; font-size: 14.5px; line-height: 1.45;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #cfc8bf;
}
#galleryList li.locked { color: #59554f; }
#galleryList li.good { border-color: rgba(215,188,110,.45); color: #ebd28e; background: rgba(110,88,30,.15); }
.setRow {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; padding: 10px 4px; color: #dcd4c6;
}
.setRow input { width: 22px; height: 22px; accent-color: #c89f48; }

/* 계정 UI */
#accountRow { margin-top: 16px; font-size: 14px; color: #9c9486; }
.accName { color: #ebd28e; font-weight: 700; }
.accLink {
  background: none; border: none; color: #b5ab99; font-family: inherit;
  font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px 4px;
}
.accLink:hover { color: #ebd28e; }
.authTabs { display: flex; gap: 8px; margin-bottom: 4px; }
.authTab {
  flex: 1; padding: 10px; font-family: inherit; font-size: 15px;
  background: rgba(255,255,255,.04); color: #8b857c;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px; cursor: pointer;
}
.authTab.on { color: #fff6e0; border-color: rgba(214,185,120,.65); background: rgba(110,82,28,.35); }
#authLogin, #authSignup { display: flex; flex-direction: column; gap: 10px; }
.authInput {
  padding: 13px 14px; font-family: inherit; font-size: 15.5px;
  background: rgba(255,255,255,.05); color: #f0eadd;
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px; outline: none;
}
.authInput:focus { border-color: rgba(218,185,110,.8); }
.authMsg { font-size: 14px; color: #e06c64; min-height: 1.2em; }
.authMsg.ok { color: #8fae6a; }
.gateTitle { font-size: 17px; color: #ebd089; margin-bottom: 6px; font-weight: 700; }
.gateDesc { font-size: 14px; color: #aba396; line-height: 1.6; margin-bottom: 8px; }

/* HUD 우측 버튼 그룹 + 수첩 뷰어 */
.hudRight { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.rulesBtn { font-size: 18px; animation: rulesPulse 2.4s ease-in-out infinite; }
@keyframes rulesPulse {
  0%,100% { box-shadow: 0 0 0 rgba(218,185,110,0); }
  50% { box-shadow: 0 0 12px rgba(218,185,110,.6); }
}
.rulesBox { width: min(92vw, 560px); }
.rulesList {
  max-height: 58vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  background: rgba(18,21,32,.75); border: 1px dashed rgba(214,185,120,.4);
  border-radius: 10px; padding: 16px 14px;
}
.ruleItem { font-size: 15px; line-height: 1.72; color: #e4ddd0; white-space: pre-wrap; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ruleItem.loreHead { text-align: center; font-size: 13.5px; color: #ebd089; letter-spacing: 2px; margin-top: 6px; font-weight: 700; border-bottom: none; }
.ruleItem.loreItem { color: #b7cde0; font-size: 14.5px; }
.loreSrc { display: block; font-size: 12.5px; color: #8fa6ba; margin-top: 3px; }

/* 관리자 콘솔 */
.adminBox { width: min(96vw, 860px); }
.adminCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 8px; }
.adminCard { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.adminCard .v { font-size: 21px; color: #ebd28e; font-weight: 700; }
.adminCard .k { font-size: 12px; color: #9c9486; margin-top: 2px; }
.adminBar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adminSearch { flex: 1; min-width: 140px; padding: 9px 12px; font-size: 14px; }
.adminSelect { background: rgba(255,255,255,.06); color: #e8e2da; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 9px 10px; font-family: inherit; font-size: 14px; }
.mBtn.small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.adminTableWrap { overflow-x: auto; max-height: 45vh; overflow-y: auto; border-radius: 8px; }
.adminTable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adminTable th, .adminTable td {
  padding: 9px 10px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.08); color: #d8d2c9;
}
.adminTable th {
  position: sticky; top: 0; background: #141826; color: #ebd089;
  font-weight: 600; font-size: 13px;
}
.adminTable tr.row { cursor: pointer; }
.adminTable tr.row:hover td { background: rgba(214,185,120,.12); }
.adminDetail { background: rgba(26,23,15,.65); border: 1px dashed rgba(214,185,120,.45); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #e2dbce; line-height: 1.6; }
.adminDetail .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.adminDetail .acts button { min-height: 34px; padding: 6px 12px; font-size: 13px; }

/* 토스트 */
#toast {
  position: absolute; z-index: 70; left: 50%; transform: translateX(-50%);
  bottom: calc(40px + env(safe-area-inset-bottom, 0));
  background: rgba(14,17,28,.96); color: #f5eedc;
  border: 1px solid rgba(218,185,110,.6); border-radius: 10px;
  padding: 12px 20px; font-size: 15px; text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.7);
  animation: riseIn .3s ease;
}

/* 이펙트 */
.shake { animation: shakeAnim .45s ease-in-out; }
@keyframes shakeAnim {
  0%,100% { transform: translate(0,0); }
  15% { transform: translate(-8px, 4px); } 30% { transform: translate(7px, -4px); }
  45% { transform: translate(-6px, -3px); } 60% { transform: translate(5px, 4px); }
  75% { transform: translate(-3px, 2px); } 90% { transform: translate(2px, -2px); }
}

/* 분기 지도 */
.mapBox { width: min(96vw, 760px); max-height: 90vh; }
.mapStats { font-size: 12.5px; color: #b5ab99; letter-spacing: .04em; margin: 0 0 8px; }
.mapTree { flex: 1 1 auto; overflow: auto; text-align: left; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.mapTree ul { list-style: none; margin: 0; padding: 0 0 0 16px; position: relative; }
.mapTree ul.mapRoot { min-width: max-content; padding-right: 8px; padding-left: 0; }
.mapTree ul:not(.mapRoot)::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 10px; border-left: 1px solid rgba(214,185,120,.32); }
.mapTree li { position: relative; margin: 6px 0; }
.mapTree ul:not(.mapRoot) > li::before { content: ""; position: absolute; left: -12px; top: 18px; width: 12px; border-top: 1px solid rgba(214,185,120,.32); }
.mapCard { display: inline-flex; align-items: center; gap: 8px; min-width: 210px; max-width: 340px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 5px 9px 5px 5px; }
.mapThumb { flex: 0 0 auto; width: 52px; height: 34px; border-radius: 4px; overflow: hidden; background: #0c0e17; display: grid; place-items: center; color: #555; font-size: 14px; font-weight: 700; }
.mapThumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapLabel { font-size: 12.5px; line-height: 1.3; color: #e2dbce; width: 170px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mapCard.locked { opacity: .42; filter: grayscale(1); }
.mapCard.locked .mapLabel { color: #888; font-style: italic; }
.mapEnd { border-color: rgba(255,255,255,.16); }
.mapEnd .mapLabel b { display: block; font-size: 13px; }
.mapBadge { display: block; font-size: 9.5px; letter-spacing: .12em; color: #9c9486; margin-bottom: 1px; }
.mapEnd.t-death { border-color: rgba(210,80,70,.55); background: rgba(110,25,20,.2); }
.mapEnd.t-death .mapBadge { color: #e06c64; }
.mapEnd.t-escape { border-color: rgba(120,170,210,.55); background: rgba(35,65,95,.22); }
.mapEnd.t-escape .mapBadge { color: #90bde0; }
.mapEnd.t-true { border-color: rgba(230,198,115,.75); background: rgba(115,92,28,.25); box-shadow: 0 0 12px rgba(230,198,115,.2); }
.mapEnd.t-true .mapBadge { color: #f0d484; }
.mapEnd.locked { border-style: dashed; }

/* 스승별 진엔딩 달성 배지 */
.chapterRow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chapterRow .chip { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.48); background: rgba(0,0,0,.38); cursor: pointer; font-family: inherit; }
.chapterRow .chip.on { color: #f7e6b5; border-color: rgba(220,188,105,.7); background: rgba(115,88,24,.35); }
.chapterHint { width: 100%; text-align: center; font-size: 11.5px; color: rgba(235,222,195,.48); margin-top: 3px; }
.endUnlock { white-space: pre-line; font-size: 13.5px; line-height: 1.55; color: #f2dca2; background: rgba(110,84,22,.25); border: 1px solid rgba(218,185,110,.5); border-radius: 8px; padding: 10px 12px; margin: 0 0 18px; }

@media (min-width: 820px) {
  #sheet {
    max-width: 700px; margin: 0 auto; border-radius: 18px 18px 0 0;
    background: rgba(8,10,18,.94); border: 1px solid rgba(214,185,120,.18); border-bottom: none;
  }
  #narration { font-size: 19.5px; }
  #narration.special { font-size: 25px; }
  #choices .mBtn { font-size: 17px; }
  .mapLabel { width: 240px; }
  .mapCard { max-width: 380px; }
}
