*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;background:#05070c;overflow:hidden;
  font-family:ui-sans-serif,system-ui,-apple-system,"Hiragino Sans","Noto Sans JP",sans-serif;
  color:#e8eef8;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}
#stage{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}

#hud{position:fixed;top:0;right:0;padding:calc(env(safe-area-inset-top) + 10px) 12px 0 0;z-index:5}
#btnPause{width:40px;height:40px;border:1px solid rgba(200,220,245,.22);border-radius:11px;
  background:rgba(8,12,20,.55);color:rgba(220,232,248,.75);font-size:12px;letter-spacing:1px}

.overlay{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;
  padding:24px;background:rgba(4,6,11,.82);backdrop-filter:blur(7px)}
.overlay[hidden]{display:none}

.title-inner{text-align:center;max-width:340px}
.eyebrow{display:block;font:700 10px/1 ui-monospace,monospace;letter-spacing:.22em;color:#5fe09b;margin-bottom:18px}
.title-inner h1{font-size:36px;line-height:1.15;letter-spacing:.04em;text-shadow:0 0 26px rgba(95,224,155,.28)}
.title-inner h1 span{font-size:24px;opacity:.75}
.lead{margin:16px 0 20px;font-size:13px;line-height:1.9;color:rgba(226,236,250,.62)}
.members{display:flex;gap:8px;justify-content:center;margin-bottom:26px}
.members span{flex:1;padding:9px 4px;border:1px solid rgba(150,180,215,.18);border-radius:10px;
  background:rgba(10,16,26,.5);font:700 20px/1 ui-monospace,monospace;color:#6fe6a6}
.members b{display:block;font:600 10px/1 sans-serif;color:rgba(220,232,248,.55);margin-bottom:6px}
.hint{display:block;margin-top:18px;font-size:11px;color:rgba(200,215,235,.35)}

/* §69 調査ボード。CASEを並べる */
.board{display:flex;flex-direction:column;gap:12px;text-align:left;
  max-height:46vh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-right:2px}
.case{border:1px solid rgba(150,180,215,.18);border-radius:14px;padding:14px 14px 12px;
  background:rgba(9,14,23,.62)}
.case header{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.case header b{font:700 10px/1 ui-monospace,monospace;letter-spacing:.18em;color:#5fe09b}
.case .tag{font:600 10px/1 sans-serif;color:rgba(200,215,235,.4);
  border:1px solid rgba(180,205,235,.16);border-radius:20px;padding:4px 9px}
.case .tag.done{color:#6fe6a6;border-color:rgba(95,224,155,.3)}
.case h3{font-size:17px;letter-spacing:.05em;margin-bottom:6px}
.case p{font-size:11.5px;line-height:1.75;color:rgba(226,236,250,.5)}
.case-btns{display:flex;gap:8px;margin-top:12px}
.case-btns button{flex:1}
.case-btns .primary{padding:12px;font-size:13px}
.case-btns .ghost{padding:11px;font-size:12px}
.case-btns button[hidden]{display:none}

button{font-family:inherit;cursor:pointer;font-weight:700}
.primary{padding:15px;border:0;border-radius:12px;background:linear-gradient(180deg,#3ddb8b,#25a869);
  color:#04120a;font-size:14px;letter-spacing:.05em;box-shadow:0 8px 24px rgba(45,190,120,.22)}
.ghost{padding:13px;border:1px solid rgba(180,205,235,.24);border-radius:12px;
  background:rgba(12,18,28,.6);color:rgba(226,236,250,.8);font-size:13px}

.sheet{width:100%;max-width:300px;text-align:center;display:flex;flex-direction:column;gap:10px}
.sheet h2{font-size:15px;margin-bottom:8px;color:rgba(226,236,250,.7);letter-spacing:.1em}

.note{width:100%;max-width:360px;max-height:86vh;overflow-y:auto;border-radius:14px;padding:20px;
  background:#f3efe4;color:#26221c;box-shadow:0 20px 60px rgba(0,0,0,.6);
  background-image:repeating-linear-gradient(180deg,transparent 0 27px,rgba(80,70,55,.09) 27px 28px)}
.note-head{display:flex;justify-content:space-between;align-items:baseline;
  border-bottom:2px solid rgba(60,50,40,.5);padding-bottom:8px;margin-bottom:14px}
.note-head b{font-size:15px;letter-spacing:.06em}
.note-head span{font-size:10px;color:rgba(50,42,34,.6)}
.rec-line{display:flex;gap:10px;font-size:12px;line-height:1.75;margin-bottom:9px}
.rec-line span{flex:0 0 62px;color:rgba(60,50,40,.55);font-weight:700;font-size:10.5px;padding-top:2px}
.rec-line b{font-weight:600;flex:1}
.rec-notes{margin:14px 0;padding:11px 12px;border-left:3px solid rgba(60,50,40,.35);
  background:rgba(255,255,255,.4);font-size:12px;line-height:1.95}
.rec-notes i{font-style:normal;font-weight:700;margin-right:2px;color:#5a4b38}
.rec-open{margin-top:12px;padding:11px 12px;border:1px dashed rgba(150,40,40,.5);border-radius:8px;
  background:rgba(190,70,60,.07)}
.rec-open span{display:block;font-size:10px;font-weight:700;color:#a03a32;letter-spacing:.12em;margin-bottom:6px}
.rec-open p{font-size:12.5px;line-height:1.8;font-weight:600}
.note-btns{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.note-btns .ghost{background:rgba(60,50,40,.08);border-color:rgba(60,50,40,.3);color:#3a3227}
