.thinking-focus{display:flex;align-items:center;gap:7px;align-self:flex-start;background:#eee7f5;border:1px solid #e1d6ea;border-radius:9px;padding:7px 10px;color:#987aa9;font-size:11px;line-height:1.6}.thinking-focus .icon{width:17px;height:17px}.thinking-task{width:100%;background:#f4efe5;border:1px solid #e8ddcc;border-radius:14px;padding:16px 18px}.thinking-task h3{font-size:18px;line-height:1.65;color:#89758f}.thinking-task p{font-size:12px;line-height:1.85;color:#a0918b;margin-top:7px}.thinking-clues,.treasure-clues{width:100%;display:grid;gap:8px}.thinking-clue{display:flex;align-items:flex-start;gap:8px;border:1px solid #e2dae8;background:#f6f0f9;border-radius:11px;padding:10px 12px;font-size:12px;line-height:1.85;color:#8b769a}.clue-number{display:inline-flex;align-items:center;justify-content:center;background:#e6d9ef;color:#9b7eb2;font-size:10px;height:21px;min-width:21px;border-radius:7px;margin-top:2px}.thinking-clue.valid{background:#eef4e9;border-color:#d4e0c7;color:#829471}.thinking-clue.valid .clue-number{background:#dbe7cc;color:#80956f}.thinking-clue.invalid{background:#faeae4;border-color:#edcdbf;color:#b0806b}.thinking-clue.invalid .clue-number{background:#efd4c9;color:#b2846e}.thinking-hint{outline:3px dashed #b598c9!important;outline-offset:2px}.thinking-toolbar{width:100%}.thinking-toolbar .primary-button{font-size:12px;padding:11px 18px;min-height:43px}.thinking-explanation{width:100%;padding:14px;border-radius:12px;border:1px solid #d6e0cd;background:#eef4e8;color:#869676;font-size:12px;line-height:1.9}.thinking-explanation.caution{background:#faf0e6;border-color:#ead7c0;color:#ab9073}.new-game-label.thinking{background:#e9e1f2;color:#9b7db0;border-color:#dccde7}
.detective-homes{display:flex;gap:12px;width:100%;overflow-x:auto;padding:23px 5px 9px;scrollbar-width:thin;scrollbar-color:#d0bcde #f8f4ed}.detective-home{position:relative;flex:1 0 86px;border:2px solid #dcc9ac;background:#f7e8ca;padding:12px 8px 8px;border-radius:4px 4px 10px 10px;min-height:123px;margin-top:3px;isolation:isolate}.house-roof{position:absolute;top:-22px;left:-6px;right:-6px;height:27px;background:#d8a28e;clip-path:polygon(50% 0,100% 100%,0 100%);z-index:-1}.detective-home:nth-child(3n+2){border-color:#cdb9dc;background:#ede2f3}.detective-home:nth-child(3n+2) .house-roof{background:#b69bca}.detective-home:nth-child(3n+3){border-color:#b8cfbb;background:#e4edda}.detective-home:nth-child(3n+3) .house-roof{background:#a2bca0}.detective-home>small{position:absolute;top:4px;left:5px;font-size:9px;color:#b09978}.house-window{display:flex;align-items:center;justify-content:center;width:61px;height:64px;margin:10px auto 5px;background:#fff7e6;border:2px solid #ffffff60;border-radius:13px;font-size:27px;color:#c2b191}.house-window .illustration{height:100%;width:100%}.house-name{font-size:11px;color:#9b857d}.detective-home.occupied .house-name{color:#8c7496}.detective-animals{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;width:100%}.detective-animal{background:#f1e9f6;border:2px solid #e4d8ed;border-radius:12px;padding:6px;min-width:64px;width:71px;color:#9c84ae;font-size:10px}.detective-animal .illustration{height:53px;width:53px;margin:0 auto 3px}.detective-animal.selected{border-color:#ab8ec5;background:#e8dcf1;transform:translateY(-3px)}.detective-animal:disabled{opacity:.3}
.story-plan{width:100%;display:flex;gap:8px;overflow-x:auto;background:#f3ece0;border:1px dashed #dccaac;border-radius:12px;min-height:76px;align-items:center;padding:10px;scrollbar-width:thin}.story-empty{font-size:12px;color:#b29c83;padding:9px}.story-step{display:flex;align-items:center;gap:7px;flex:0 0 165px;background:#fef8ec;border:1px solid #e0ceb0;border-radius:9px;padding:10px 8px;color:#a0896b;font-size:12px;line-height:1.7;min-height:61px;text-align:left}.story-step small{align-self:flex-start;background:#eadbbc;border-radius:5px;width:20px;min-width:20px;text-align:center;color:#a38a68;font-size:10px}.story-step>span{margin-left:auto;color:#c5b297}.story-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.story-event{background:#f4eef8;border:1px solid #e4d8ec;border-radius:12px;padding:13px;text-align:left;min-height:99px;color:#9177a3}.story-event strong{display:block;font-size:13px;line-height:1.75;margin-bottom:7px}.story-event>span{display:block;font-size:10px;line-height:1.9;color:#a994b7}.story-event:disabled{opacity:.35}.story-event:hover:not(:disabled){background:#ebe1f3}
.thinking-grid{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:4px;width:100%;aspect-ratio:1}.treasure-grid{background:#d9e4ce;border:6px solid #d9e4ce;border-radius:14px;max-width:370px}.treasure-cell{position:relative;background:#f1f4dd;border-radius:5px;padding:3px;aspect-ratio:1;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a8bc8d;font-size:22px}.treasure-cell.landmark{background:#e7edda;opacity:1}.treasure-cell .illustration{height:calc(100% - 12px);width:85%;position:absolute;top:0;left:7.5%}.treasure-cell small{font:8px system-ui,sans-serif;color:#8ba07b;position:absolute;bottom:2px;left:0;width:100%;text-align:center}.treasure-cell.chosen{background:#f4e1b8;box-shadow:inset 0 0 0 2px #c7ab72;color:#aa8b58}.treasure-cell .icon{width:55%;height:55%;fill:#e3c379}.treasure-cell.excluded{background:#e1e4da;color:#b2b5a9}.treasure-cell .grass-tuft{font-size:26px;color:#bdcba8}.treasure-clues{max-height:248px;overflow-y:auto;scrollbar-width:thin;padding:2px}.treasure-clues .thinking-clue{font:12px/1.75 system-ui,"PingFang SC",sans-serif}.treasure-clues .thinking-clue>div{flex:1;min-width:0}.treasure-clues small{display:block;margin-top:5px;font:11px/1.8 "PingFang SC",sans-serif;color:#a491ad}.clue-speak{width:28px;min-width:28px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:#ede5f2;border-radius:8px;color:#aa92ba}.clue-speak .icon{width:15px;height:15px}.treasure-mode{font-size:11px;color:#96a27f;text-align:center;line-height:1.8}
.rule-task{background:#f0eaf6;border:1px solid #e1d5ec;border-radius:15px;padding:17px;width:100%}.rule-task h3{font:650 17px/1.85 system-ui,sans-serif;color:#8c6c9d;overflow-wrap:anywhere;margin:8px 0}.rule-task>p{font-size:12px;line-height:1.8;color:#9a84a6}.rule-vocabulary{border-top:1px dashed #dbcee5;margin-top:12px;padding-top:9px;font-size:10px;line-height:1.9;color:#b09cbd}.rule-objects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%}.rule-object{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;background:#f8f3ea;border:2px solid #e8dfd1;border-radius:13px;padding:10px 6px;min-height:118px;color:#a18b74}.rule-object>.illustration{width:52px;height:52px}.rule-object>span:not(.rule-checkbox){font:11px/1.5 system-ui,sans-serif;text-align:center}.rule-object>small{font-size:9px;line-height:1.8;color:#af9b85}.rule-checkbox{position:absolute;top:5px;right:6px;background:#ece2d1;border-radius:50%;width:16px;height:16px;font-size:11px;color:#b4a186}.rule-object.selected{border-color:#b8a0cc;background:#eee3f6}.rule-object.selected .rule-checkbox{background:#b59dca;color:#fffaf5}.rule-object.invalid{border-color:#deb7a8;background:#f9e9e0}.rule-object:disabled{opacity:1}
.mirror-lab{position:relative;width:min(100%,410px);border:6px solid #e0d6e8;border-radius:13px;overflow:hidden;background:#e0d6e8}.mirror-grid{gap:3px}.mirror-cell{display:flex;align-items:center;justify-content:center;background:#faf6ee;border-radius:5px;min-width:0;padding:3px;aspect-ratio:1;color:#ac92bd}.mirror-cell:disabled{opacity:1}.mirror-cell>svg{height:90%;width:90%}.mirror-cell .icon{height:65%;width:65%;stroke-width:1.5}.mirror-cell .icon:not(.lit){fill:#efdaa2;color:#d7bd81}.mirror-cell .icon.lit{fill:#f3c975;color:#d5a756}.mirror-cell.rock{background:#e8e6e0}.mirror-cell.emitter{background:#e6d7ef;color:#9a7dad}.mirror-cell.emitter .icon{fill:#b396c6;stroke:#a88abf}.mirror-cell.receiver{background:#e0ecd9}.receiver-ring{font-size:35px;color:#91ad7c;line-height:1}.beam-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.beam-line{fill:none;stroke:#b7a0d2;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #c7b0df)}.beam-line.running{stroke-dasharray:var(--beam-length);stroke-dashoffset:var(--beam-length);animation:thinking-beam var(--beam-time) linear forwards}.beam-line.success{stroke:#a1bd84}.beam-line.miss{stroke:#d7a491}.mirror-guide{display:flex;gap:14px;justify-content:center;font-size:11px;color:#a28bac;width:100%;flex-wrap:wrap}.mirror-guide b{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:#efe5f6;border:1px solid #e3d4ed;border-radius:6px;color:#ab8ec4;font-size:21px;margin-right:6px}
.switch-scene{display:block;width:100%;max-width:600px;max-height:320px}.switch-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}.switch-choice{display:flex;align-items:center;gap:9px;justify-content:center;background:#f2eaf7;border:2px solid #e4d7ed;border-radius:11px;padding:9px 8px;min-height:49px;color:#9f85b1}.switch-choice b{font:750 21px system-ui,sans-serif}.switch-choice span{font-size:10px;line-height:1.6}.switch-choice.selected{background:#e7daf1;border-color:#bca3d0;color:#9675ab}.switch-preview{width:100%;background:#f5f1e7;border:1px dashed #e7dcc6;padding:11px 13px;border-radius:10px;text-align:center;font-size:12px;line-height:1.8;color:#a39178}.switch-shot{stroke:#edc371;stroke-width:8;stroke-linecap:round;stroke-dasharray:500;stroke-dashoffset:500;animation:thinking-beam .36s linear forwards}@keyframes thinking-beam{to{stroke-dashoffset:0}}
@media(max-width:760px){.thinking-task{padding:14px}.thinking-task h3{font-size:16px}.thinking-task p{font-size:11px}.thinking-clue{font-size:11px;padding:9px 10px}.detective-home{flex:1 0 81px;min-height:116px}.house-window{width:56px;height:59px}.detective-homes{gap:10px}.thinking-focus{font-size:10px}.thinking-toolbar .primary-button{font-size:11px;padding:10px 16px}.treasure-clues{max-height:205px}.story-event{padding:11px;min-height:98px}.story-event strong{font-size:12px}.rule-objects{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rule-task h3{font-size:15px}.rule-object{min-height:113px}.switch-choice{gap:6px}.switch-choice span{font-size:9px}}
@media(max-width:420px){.thinking-task h3{font-size:15px}.thinking-clue{font-size:11px;gap:7px}.clue-number{width:19px;min-width:19px;height:19px;font-size:9px}.detective-animal{width:61px;min-width:61px}.detective-animal .illustration{width:46px;height:46px}.detective-home{flex-basis:78px}.house-window{width:51px;height:54px}.house-name{font-size:10px}.story-step{flex-basis:145px;font-size:11px}.story-events{gap:8px}.story-event{padding:10px 9px}.story-event strong{font-size:11px}.story-event>span{font-size:9px}.treasure-grid{border-width:5px;gap:3px}.treasure-cell small{font-size:7px}.treasure-clues .thinking-clue{font-size:11px}.treasure-clues small{font-size:10px}.treasure-clues{max-height:190px}.thinking-grid{gap:3px}.rule-task{padding:13px}.rule-task h3{font-size:14px}.rule-vocabulary{font-size:9px}.rule-object{min-height:107px;padding:8px 4px}.rule-object>.illustration{height:45px;width:45px}.rule-object>span:not(.rule-checkbox){font-size:9px}.rule-object>small{font-size:8px}.mirror-lab{border-width:5px}.receiver-ring{font-size:26px}.mirror-guide{font-size:10px;gap:9px}.mirror-guide b{width:21px;height:23px;font-size:18px;margin-right:3px}.switch-buttons{gap:7px}.switch-choice{padding:8px 5px;flex-direction:column;gap:3px;min-height:63px}.switch-choice b{font-size:19px}.switch-preview{font-size:11px}.thinking-explanation{font-size:11px}}

.thinking-scroll-note{width:100%;text-align:center;color:#ac97b5;font-size:10px;line-height:1.7;margin-top:-5px}
@media(max-width:760px){[data-game="treasure"]{gap:12px}[data-game="treasure"] .thinking-task{display:none}[data-game="treasure"] .treasure-clues{max-height:145px}[data-game="treasure"] .treasure-grid{max-width:268px}}
