:root { font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif; color: #f5eecf; background: #07131b; font-synthesis: none; }
* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; width: 100%; }
body { background: #07131b; }
button { font: inherit; cursor: pointer; border: 0; }
.screen { min-height: 100svh; width: 100%; position: relative; overflow: hidden; }
.cover-page { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 24svh 20px 42px; }
.cover-bg, .cover-shade { position: absolute; inset: 0; }
.cover-bg { background: center / cover url('./static/game/cover_bg_new.png'); filter: brightness(1.08) saturate(1.05); }
.cover-shade { background: linear-gradient(180deg, rgba(6,20,30,.2), rgba(4,13,21,.5) 48%, rgba(0,7,13,.92)); }
.cover-title, .cover-actions, .version { z-index: 1; text-align: center; }
.main-title { font-size: clamp(3.8rem, 16vw, 7rem); letter-spacing: .28em; text-indent: .28em; text-shadow: 0 4px 28px #000; }
.sub-title { margin-top: 3px; font-size: clamp(2rem, 9vw, 3.4rem); letter-spacing: .48em; text-indent: .48em; opacity: .9; }
.subtitle-box { margin-top: 28px; padding: 13px 22px; border: 1px solid rgba(200,180,140,.28); border-radius: 10px; background: rgba(0,20,30,.42); backdrop-filter: blur(8px); display: grid; gap: 7px; }
.subtitle-box strong { color: #f5eecf; letter-spacing: .25em; font-size: clamp(1rem, 4.5vw, 1.5rem); }
.subtitle-box span { color: rgba(255,255,255,.8); letter-spacing: .12em; font-size: .88rem; }
.cover-actions { display: grid; gap: 18px; justify-items: center; width: min(88vw, 420px); }
.btn { min-height: 48px; padding: 0 30px; border-radius: 999px; color: #fff; letter-spacing: .18em; background: rgba(255,255,255,.1); border: 1px solid rgba(220,195,140,.45); }
.btn.primary { background: linear-gradient(135deg, #c8a050, #a07030); box-shadow: 0 8px 28px rgba(180,130,60,.35); }
.start-game { width: 100%; min-height: 58px; font-size: 1.25rem; }
.ghost-btn { min-height: 42px; padding: 0 24px; color: rgba(255,255,255,.78); border: 1px solid rgba(220,195,140,.4); border-radius: 999px; background: rgba(255,255,255,.06); }
.version { position: absolute; bottom: 20px; color: rgba(255,255,255,.38); font: .75rem sans-serif; letter-spacing: .12em; }
.video-page { background: #000; }
.opening-video { width: 100%; height: 100svh; display: block; object-fit: cover; }
.video-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 18px; justify-items: center; background: rgba(0,0,0,.82); color: rgba(255,255,255,.78); letter-spacing: .16em; transition: opacity .3s; }
.video-loading.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.2); border-top-color: #d9b66a; border-radius: 50%; animation: spin 1s linear infinite; }
.video-skip { position: absolute; top: max(28px, env(safe-area-inset-top)); right: 20px; opacity: 0; pointer-events: none; padding: 9px 20px; color: rgba(255,255,255,.9); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; transition: .25s; }
.video-skip.show { opacity: 1; pointer-events: auto; }
.character-page { min-height: 100svh; padding: 38px 20px 50px; background: linear-gradient(180deg, #e8f4f8, #c5dce8); color: #1a3a4a; overflow: auto; }
.page-header { text-align: center; }.page-header h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .18em; }.page-header p { margin: 10px 0 20px; color: rgba(60,90,110,.7); letter-spacing: .14em; font: .85rem sans-serif; }
.ornament { display: flex; justify-content: center; align-items: center; gap: 12px; }.ornament i { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, #c8a878, transparent); }.ornament b { width: 7px; height: 7px; border-radius: 50%; background: #c8a878; }
.character-list { width: min(100%, 760px); margin: 28px auto 0; display: grid; gap: 18px; }.character-card { display: flex; gap: 16px; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.86); box-shadow: 0 8px 24px rgba(20,60,90,.12); color: #1a2a35; transition: transform .2s, box-shadow .2s; }.character-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,60,90,.2); }.character-card img { width: clamp(92px, 24vw, 140px); height: clamp(92px, 24vw, 140px); object-fit: cover; border-radius: 14px; border: 3px solid var(--accent); flex: 0 0 auto; }.character-copy { min-width: 0; }.name-row { display: flex; align-items: center; gap: 10px; }.name-row h2 { margin: 0; font-size: 1.7rem; }.name-row span { font: .76rem sans-serif; padding: 3px 10px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; }.character-copy > strong { display: block; margin-top: 4px; color: rgba(40,70,90,.85); font: 600 .9rem sans-serif; }.trait { margin-top: 13px; padding: 10px 12px; border-radius: 10px; background: rgba(240,248,252,.7); }.trait small { color: var(--accent); font: 700 .75rem sans-serif; letter-spacing: .08em; }.trait p { margin: 7px 0 0; color: rgba(45,70,85,.8); font: .9rem/1.7 sans-serif; }
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }.modal.hidden { display: none; }.modal-panel, .book-panel, .collection-panel { position: relative; width: min(92vw, 540px); max-height: 84svh; overflow: auto; padding: 30px; border: 1px solid rgba(212,175,85,.55); border-radius: 16px; background: linear-gradient(180deg, #fff9e8, #ead8b0); color: #4a3318; box-shadow: 0 20px 70px rgba(0,0,0,.5); }.modal-panel { text-align: center; }.modal-icon { font-size: 3rem; }.modal-panel h2, .book-panel h2, .collection-panel h2 { margin: 8px 0 12px; }.modal-panel p, .book-panel p { line-height: 1.9; white-space: pre-line; }.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }.modal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.5); font-size: 1.5rem; }.book-rule { width: 90px; height: 2px; margin: 20px auto; background: #a8844c; }.collection-panel { background: rgba(20,16,10,.97); color: #f5eecf; }.collection-panel h2 small { float: right; color: rgba(245,238,207,.58); font: .8rem sans-serif; }.collection-list { display: grid; gap: 10px; margin-top: 20px; }.collection-list button { display: flex; gap: 12px; text-align: left; padding: 14px; color: #f5eecf; border: 1px solid rgba(200,180,140,.25); border-radius: 10px; background: rgba(255,255,255,.06); }.collection-list i { width: 8px; background: linear-gradient(#c4a468, #8b6f43); }.collection-list b, .collection-list small { display: block; }.collection-list small { margin-top: 6px; color: rgba(245,238,207,.7); line-height: 1.5; }
.clue-page { background: #050d14; }.clue-bg { position: absolute; inset: 0; background: center / cover url('./static/game/chapter1_clue_book_bg.png'); filter: brightness(.78) saturate(.9); }.clue-top, .clue-header, .spot, .desk-label, .detector, .clue-hint, .clue-bottom { position: absolute; z-index: 1; }.clue-top { top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; color: rgba(245,238,207,.72); font: .75rem sans-serif; letter-spacing: .12em; }.clue-header { top: 84px; left: 50%; transform: translateX(-50%); padding: 10px 22px; white-space: nowrap; color: #f5eecf; border: 1px solid rgba(200,180,140,.35); border-radius: 999px; background: rgba(0,0,0,.35); }.spot { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,240,170,.18); box-shadow: 0 0 18px #ffd96a, 0 0 42px rgba(255,200,80,.6); animation: pulse 2s ease-out infinite; }.spot::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: #fff0aa; }.spot-one { left: 27%; bottom: 53%; }.spot-two { left: 53%; bottom: 49%; animation-delay: 1s; }.desk-label { left: 13%; bottom: 25%; color: rgba(245,238,207,.55); font: .78rem sans-serif; letter-spacing: .15em; }.detector { left: 32%; bottom: 15%; width: 90px; filter: drop-shadow(0 0 16px rgba(255,220,130,.6)); }.clue-hint { left: 50%; bottom: 15%; transform: translateX(-50%); color: rgba(245,238,207,.7); font: .8rem sans-serif; letter-spacing: .08em; }.clue-bottom { bottom: 28px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; }.bag-btn { padding: 10px 17px; border-radius: 999px; color: #f5eecf; border: 1px solid rgba(200,180,140,.4); background: rgba(0,0,0,.38); }.next-game { min-height: 42px; padding-inline: 18px; font-size: .86rem; }
.game-page { padding: 22px 20px 36px; background: radial-gradient(circle at 50% 0%, #1a3841, #08141c 62%); }.game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }.back-link { justify-self: start; color: rgba(245,238,207,.74); background: none; }.game-head h1 { margin: 0; text-align: center; font-size: clamp(1.2rem, 5vw, 2rem); letter-spacing: .1em; }.game-head p { margin: 5px 0 0; text-align: center; color: rgba(245,238,207,.55); font: .72rem sans-serif; letter-spacing: .12em; }.step-dots { justify-self: end; display: flex; gap: 6px; }.step-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }.step-dots .done, .step-dots .active { background: #e1bd68; }.game-content { width: min(100%, 720px); margin: 26px auto 0; }.river-card { position: relative; overflow: hidden; border: 1px solid rgba(200,180,140,.25); border-radius: 14px; background: #07151e; box-shadow: 0 12px 40px rgba(0,0,0,.3); }.river-card canvas { width: 100%; height: min(58vw, 360px); display: block; }.canvas-title { position: absolute; top: 16px; left: 16px; padding: 8px 12px; color: rgba(245,238,207,.86); border: 1px solid rgba(200,180,140,.28); border-radius: 999px; background: rgba(0,0,0,.25); font-size: .8rem; }.control-panel { margin-top: 16px; padding: 20px; border: 1px solid rgba(200,180,140,.28); border-radius: 14px; background: rgba(10,25,31,.8); }.height-row { display: flex; justify-content: space-between; align-items: center; }.height-row strong { font-size: 1.45rem; }.status { padding: 5px 10px; border-radius: 999px; font: .78rem sans-serif; }.status.good { color: #d7e8b5; background: rgba(122,154,92,.22); }.status.high { color: #ffd1c4; background: rgba(255,107,74,.22); }.status.low { color: #c5e8f7; background: rgba(91,184,232,.2); }.control-panel input { width: 100%; margin: 24px 0 6px; accent-color: #c8a050; }.range-labels { display: flex; justify-content: space-between; color: rgba(245,238,207,.55); font: .72rem sans-serif; }.range-labels b { color: #e4c67c; font-weight: 400; }.game-message { min-height: 24px; margin: 18px 0; color: rgba(245,238,207,.78); line-height: 1.6; }.game-message.high { color: #ffb5a0; }.game-message.low { color: #a9dff3; }.game-message.good { color: #cde6b5; }.lock-height { width: 100%; }.lock-height.disabled { opacity: .55; pointer-events: none; }.game-footer { margin-top: 22px; text-align: center; color: rgba(245,238,207,.48); font: .75rem sans-serif; letter-spacing: .08em; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes pulse { 0% { transform: scale(.65); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
.wx-page { min-height: 100svh; }
.h5-back-btn { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 16px; z-index: 999; width: 38px; height: 38px; padding: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.28); font: 28px/1 sans-serif; }
.h5-image-preview { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.9); }
.h5-image-preview img { max-width: 100%; max-height: 90svh; object-fit: contain; }
.h5-image-preview button { position: fixed; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.18); font-size: 26px; }
.runtime-error { min-height: 100svh; display: grid; place-content: center; gap: 10px; text-align: center; color: #f5eecf; background: #07131b; }
.runtime-error p { color: rgba(245,238,207,.58); font-family: sans-serif; }
.h5-navbar { position: relative; z-index: 20; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 48px 0; background: rgba(255,255,255,.96); color: #1c2d38; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.h5-navbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px/48px sans-serif; }
.h5-navbar-back { position: absolute; left: 10px; bottom: 5px; width: 38px; height: 38px; border-radius: 50%; background: transparent; color: #1c2d38; font-size: 28px; line-height: 1; }
.h5-drawer { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.45); }
.h5-drawer[hidden] { display: none; }
.h5-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(82vw, 320px); padding: calc(env(safe-area-inset-top) + 22px) 18px 22px; background: #fffdf6; color: #263943; box-shadow: 12px 0 30px rgba(0,0,0,.22); }
.h5-drawer__title { font: 700 18px/1.4 sans-serif; }
.h5-drawer__close { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 12px; width: 34px; height: 34px; border-radius: 50%; background: #eef2f2; color: #52656b; font-size: 24px; }
.h5-drawer__items { display: grid; gap: 8px; margin-top: 24px; }
.h5-drawer__items button { padding: 13px 12px; text-align: left; border-radius: 8px; background: #f2f6f6; color: #27404a; }
.h5-component-back-btn .back-btn-wrap { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: rgba(0,0,0,.35); color: #fff; }
.h5-component-back-btn .back-btn-arrow { display: block; width: 12px; height: 12px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(3px,-3px); }
.h5-component-card { display: block; }
.home-card__image { display: block; width: 100%; height: 180px; object-fit: cover; background: #dfe8ea; }
.home-card__desc { display: block; line-height: 1.6; }
.home-card__tag { display: inline-block; margin: 6px 6px 0 0; padding: 3px 8px; border-radius: 999px; background: #edf3f3; color: #49626a; font: 12px/1.3 sans-serif; }
.h5-swiper { position: relative; display: block; min-height: 180px; overflow: hidden; }
.h5-swiper-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.h5-swiper-slide.active { opacity: 1; }
.h5-toast { position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); z-index: 2000; max-width: 82vw; padding: 10px 16px; border-radius: 8px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: rgba(20,28,32,.9); color: #fff; font: 14px/1.4 sans-serif; transition: opacity .2s, transform .2s; }
.h5-toast.show { transform: translate(-50%, 0); opacity: 1; }
.h5-block { display: block; }
.h5-cell { position: relative; display: block; min-height: 56px; padding: 12px 16px; background: #fff; color: #263943; border-bottom: 1px solid #edf0f1; }
.h5-cell__main { display: flex; align-items: center; min-width: 0; gap: 12px; }
.h5-cell__image { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e7eff0; }
.h5-cell__copy { min-width: 0; flex: 1; }
.h5-cell__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 15px/1.45 sans-serif; }
.h5-cell__description { overflow: hidden; margin-top: 3px; color: #798b91; text-overflow: ellipsis; white-space: nowrap; font: 13px/1.35 sans-serif; }
.h5-cell__description.unread { color: #334a52; font-weight: 600; }
.h5-cell__badge, .h5-badge { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border-radius: 999px; background: #e34b45; color: #fff; font: 11px/18px sans-serif; }
.h5-cell__badge { position: absolute; top: 14px; right: 16px; }
.h5-input, .h5-textarea, input:not([type='range']), textarea, select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dce4e5; border-radius: 5px; outline: none; background: #fff; color: #273941; font: 14px/1.4 sans-serif; }
.h5-textarea, textarea { min-height: 92px; resize: vertical; }
.h5-input:focus, .h5-textarea:focus, input:focus, textarea:focus, select:focus { border-color: #5d8890; box-shadow: 0 0 0 2px rgba(93,136,144,.14); }
.h5-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 4px; background: #edf5f4; color: #38665f; font: 12px/1.3 sans-serif; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
input[type='range'] { min-height: 28px; }
@media (min-width: 700px) { .cover-page { padding-top: 18vh; }.clue-hint { bottom: 20%; }.detector { width: 120px; }.spot-one { left: 39%; }.spot-two { left: 48%; } }

@media (min-width: 760px) {
  body { background: #0a1822; }
  #app { position: relative; width: 750px; max-width: 100%; min-height: 100svh; margin: 0 auto; box-shadow: 0 0 48px rgba(0,0,0,.32); }
  .cover-page { justify-content: flex-start !important; }
  .cover-page .title-section,
  .cover-page .title-section.fade-in {
    position: absolute !important;
    top: 9vh !important;
    left: 50% !important;
    width: max-content;
    margin-top: 0 !important;
    transform: translateX(-50%) scale(.78) !important;
    transform-origin: top center;
  }
  .cover-page .btn-section { position: absolute !important; bottom: 58px !important; padding-bottom: 0 !important; gap: 20px !important; }
  .cover-page .version { bottom: 18px !important; font-size: 16px !important; }
  .h5-back-btn { left: calc(50% - 359px); }
  .home-release { right: calc(50% - 343px) !important; }
}
