/* Notes are chart annotations: the full game stays behind each small sheet. */
.game-brand{display:flex;align-items:center;gap:10px}
.game-icon{width:36px;height:36px;object-fit:cover;border-radius:8px;border:1px solid #34536566}
.design-pins{position:fixed;inset:0;z-index:2;pointer-events:none}
.design-pin{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);display:flex;align-items:center;gap:5px;
  height:40px;padding:0 10px;color:#305a62;background:#fff7e8;border:1.5px solid #8c7853;border-radius:11px 11px 11px 3px;
  box-shadow:0 3px 0 #314d5259,0 5px 14px #00315026;transition:background .2s,box-shadow .2s}
.design-pin::after{content:"";position:absolute;left:7px;bottom:-7px;width:8px;height:8px;transform:skewY(-40deg);background:#fff7e8;border-left:1.5px solid #8c7853;border-bottom:1.5px solid #8c7853}
.pin-number{font:700 12px Georgia,serif;letter-spacing:.5px}
.pin-pen svg{width:14px;height:14px;stroke-width:1.5}
.pin-label{position:absolute;left:50%;bottom:51px;transform:translateX(-50%) translateY(4px);max-width:205px;width:max-content;padding:8px 11px;
  background:#fff7e8;color:#355664;border:1px solid #87754a80;border-radius:5px 10px;box-shadow:0 4px 12px #00315025;
  font-size:11px;font-weight:600;line-height:1.5;pointer-events:none;opacity:0;transition:opacity .15s,transform .15s}
.design-pin:hover,.design-pin:focus-visible{background:#fffdfa;box-shadow:0 3px 0 #314d5259,0 0 0 5px #fff7e838}
.design-pin:hover .pin-label,.design-pin:focus-visible .pin-label{opacity:1;transform:translateX(-50%) translateY(0)}
.design-pin.is-read{background:#d9e8dd;border-color:#527b78}
.design-pin.is-read::after{background:#d9e8dd;border-color:#527b78}
.design-pin.is-new{animation:note-arrives .65s ease-out,note-signal 1.5s 1s 2}
.modal-open .design-pins{visibility:hidden}
.game-dialog.is-log,.game-dialog.is-note{width:604px}
.game-dialog.is-note .dialog-content{padding-bottom:26px}
.notebook-panel h2{display:flex;align-items:center;justify-content:space-between;gap:15px}
.notes-progress{font:600 12px/1 Arial,sans-serif;letter-spacing:1px;white-space:nowrap;background:#e8e8d1;padding:9px 11px;border-radius:6px;color:#60756e}
.notes-index-hint,.notes-start-hint{font-size:11px;line-height:1.65;color:#637770}
.notes-index-hint{border-left:2px solid #7ea79c;padding-left:11px;margin:0 0 20px}
.notes-start-hint{text-align:center;margin:16px 0 0}
.notes-index-list{display:grid;gap:9px;margin:0 0 22px}
.notes-index-row{display:flex;align-items:center;gap:14px;text-align:left;padding:13px 15px;min-height:73px;
  border:1px solid #b8ab8870;border-radius:6px 14px 6px 14px;background:#fffaf0;transition:background .15s,border-color .15s}
.notes-index-row:hover{background:#eaf0e2;border-color:#789b8b}
.notes-row-number{width:31px;height:35px;flex:none;border:1px solid #b9a77599;border-radius:4px 7px;background:#f0e5c8;
  display:grid;place-items:center;font:400 15px Georgia,serif;color:#897038}
.notes-row-copy{display:grid;gap:4px;flex:1;min-width:0}
.notes-row-category{font-size:10px;letter-spacing:1px;color:#6e6143;text-transform:uppercase}
.notes-row-copy strong{font-size:13px;font-weight:600;line-height:1.4;color:#355965}
.notes-row-status{font-size:10px;color:#5b716a;white-space:nowrap}
.notes-index-row.is-read .notes-row-status{color:#36746e}
.notes-index-row.is-read .notes-row-number{background:#dce9da;border-color:#91ad99;color:#467461}
.design-note-panel h2{font-size:29px;line-height:1.25;margin-bottom:15px}
.note-meta{display:flex;align-items:center;gap:13px;margin:0 0 16px}
.note-page-number{font:700 11px Georgia,serif;color:#977e45;letter-spacing:1px}
.note-category{font-size:10px;letter-spacing:.8px;color:#67786c}
.note-visual{border:1px solid #b9ac8b70;background:#f1eddb;min-height:160px;border-radius:7px 18px 7px 18px;padding:17px;margin:0 0 20px;overflow:hidden}
.note-model-figure{margin:0;min-width:0;text-align:center}
.note-model-figure canvas{display:block;width:100%;height:125px;border-radius:5px}
.note-model-figure figcaption{font-size:10px;line-height:1.5;color:#3d5b54;margin-top:8px}
.note-visual-idea{display:flex;align-items:center;justify-content:center;gap:36px;background:linear-gradient(120deg,#cae2da,#dce8e1)}
.note-game-icon{width:112px;height:112px;border-radius:21px;box-shadow:0 4px 0 #34586b30;transform:rotate(-5deg)}
.note-visual-idea .note-model-figure{width:220px}
.note-visual-idea canvas{height:140px;background-image:radial-gradient(ellipse at 30% 40%,#ffffff22 0 2%,transparent 2.3%);background-size:29px 23px}
.note-visual-visuals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;min-height:140px}
.note-visual-visuals canvas{height:98px}
.note-visual-visualScripting{background:#e6e9da}
.systems-label{display:block;text-align:center;font-size:10px;letter-spacing:.5px;font-weight:600;color:#638077;margin-bottom:13px}
.note-systems-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.note-system{position:relative;background:#fbf8eb;border:1px solid #aab39380;border-radius:5px;padding:5px 6px 10px}
.note-system::before,.note-system::after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#71948b;border:2px solid #edf1e3;top:36px}
.note-system::before{left:-4px}.note-system::after{right:-4px}
.note-system canvas{height:67px}.note-system figcaption{margin-top:3px;font-size:10px}
.note-visual-reuse{background:#e6eddc;padding:18px}
.reuse-source{margin:0;display:flex;justify-content:center;align-items:center;gap:14px}
.reuse-source img{width:43px;height:43px;padding:7px;background:#719d98;border-radius:5px}
.reuse-source figcaption{font-size:11px;color:#526f69;font-weight:600}
.reuse-branch{display:block;height:23px;width:67%;margin:3px auto 0;border-top:0;border-left:1px solid #a0ad8a;border-right:1px solid #a0ad8a;border-bottom:1px solid #a0ad8a;border-radius:0 0 7px 7px;position:relative}
.reuse-branch::after{content:"";position:absolute;left:50%;top:-4px;height:28px;width:1px;background:#a0ad8a}
.reuse-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:9px}
.reuse-results canvas{height:117px}
.note-visual-reflection{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center;background:#e1e8d8}
.note-visual-reflection canvas{height:143px}
.iteration-plan .systems-label{text-align:left}
.iteration-point{display:block;font-size:11px;line-height:1.5;margin:9px 0;color:#557168;padding-left:16px;position:relative}
.iteration-point::before{content:"";position:absolute;width:5px;height:5px;left:1px;top:5px;border:1px solid #86a58b;transform:rotate(45deg)}
.note-prose p{font-size:14px;line-height:1.85;color:#3f6467;margin:0 0 12px;text-wrap:pretty}
.note-prose p+p{color:#5b716a;font-size:13px}
.note-source-label{display:inline-block;font-size:10px;letter-spacing:.45px;color:#5b716a;border-top:1px solid #b3af9040;padding-top:11px;margin-top:1px}
.note-paging{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #b3af9040;margin:18px 0;padding-top:13px}
.notes-back{background:transparent;font-size:12px;font-weight:600;color:#3e777e;min-height:36px;padding:0 5px}
.notes-back::before{content:"←";margin-right:9px}
.notes-back:hover{color:#27556b}
.note-page-arrows{display:flex;gap:7px}
.note-page-arrow{width:35px;height:35px;border-radius:7px;border:1px solid #9dad9980;background:#eceddb;color:#567568;font-size:18px}
.note-page-arrow:hover:not(:disabled){background:#dce7d9}
.note-page-arrow:disabled{opacity:.35}
@keyframes note-arrives{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@keyframes note-signal{50%{box-shadow:0 3px 0 #314d5259,0 0 0 6px #fff7e84d}}
@media(max-width:680px){
  .navigation{gap:9px;padding-right:11px}
  .game-brand{gap:7px}.game-icon{width:27px;height:27px}
  .note-visual{padding:12px;min-height:140px}
  .note-visual-idea{gap:18px}.note-game-icon{width:85px;height:85px;border-radius:15px}
  .note-visual-idea .note-model-figure{width:150px}.note-visual-idea canvas{height:112px}
  .design-note-panel h2{font-size:26px}
  .note-visual-visuals{gap:5px;padding:10px 7px}.note-visual-visuals canvas{height:85px}
  .note-visual-visuals figcaption{font-size:9px}
  .note-systems-grid{gap:7px}.note-system{padding:3px 3px 7px}.note-system canvas{height:53px}
  .reuse-results{gap:7px}.reuse-results canvas{height:95px}
  .note-visual-reflection{gap:14px}.note-visual-reflection canvas{height:119px}
}
@media(max-width:400px){
  .game-brand{gap:6px}.navigation .game-brand h1{font-size:16px}
  .game-icon{width:25px;height:25px}
  .notes-index-row{padding:11px 10px;gap:11px}.notes-row-status{font-size:9px}
  .notes-row-copy strong{font-size:12px}.notes-progress{font-size:10px;padding:8px}
  .note-visual-visuals{grid-template-columns:repeat(3,minmax(0,1fr))}
  .note-visual-visuals canvas{height:68px}.note-visual-visuals figcaption{margin:4px 0}
  .note-systems-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reuse-results canvas{height:85px}.reuse-results figcaption{font-size:9px}
  .note-prose p{font-size:13px}.note-prose p+p{font-size:12px}
}
@media(max-height:540px){
  .notes-start-hint{display:none}
  .note-visual{min-height:100px;padding:10px;margin-bottom:15px}
  .note-visual-idea canvas{height:110px}.note-game-icon{width:85px;height:85px}
  .note-visual-visuals canvas{height:72px}.reuse-results canvas{height:87px}
}
@media(max-width:360px){.navigation .game-brand h1{display:none}}
@media(prefers-reduced-motion:reduce){.design-pin{animation:none}}
