.thermo-page{max-width:1040px}
.thermo-hero{display:flex;justify-content:space-between;gap:18px;align-items:end;margin:22px 0 12px}.thermo-hero h1{margin:.15rem 0 .25rem}.thermo-hero p{margin:0;max-width:680px}.thermo-modebox{text-align:right;white-space:nowrap}.thermo-modebox small{display:block;color:var(--muted);font-weight:800}.thermo-modebox strong{font-size:1.05rem}
.thermo-levels,.thermo-toolbar,.thermo-marking,.thermo-more-actions,.thermo-daynav{display:flex;gap:8px;flex-wrap:wrap}.thermo-levels{margin:10px 0 12px}.thermo-levels a,.thermo-marking button,.thermo-daynav a{border:1px solid var(--line);border-radius:999px;padding:8px 12px;text-decoration:none;color:var(--ink);font-weight:800;background:var(--card)}.thermo-levels a.active,.thermo-marking button.active{outline:2px solid currentColor;outline-offset:1px}.thermo-daynav{margin:0 0 10px;align-items:center}.thermo-daynav .daylabel{font-weight:900;padding:8px 4px}
.thermo-gamecard{padding:14px}.thermo-game-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.thermo-game-top .muted{margin:0;max-width:620px;font-size:.88rem}.thermo-scroll{overflow:auto;overscroll-behavior:contain;border-radius:14px}.thermo-shell{width:min(100%,760px);margin:4px auto 10px;transition:width .15s ease}.thermo-shell.full{min-width:var(--board-min,460px)}.thermo-shell.fit{min-width:0;width:100%}
.thermo-board{display:grid;grid-template-columns:50px minmax(0,1fr);grid-template-rows:50px minmax(0,1fr);gap:5px}.thermo-corner{display:grid;place-items:center;color:var(--muted);font-size:.72rem;font-weight:900}.thermo-cols{--n:8;display:grid;grid-template-columns:repeat(var(--n),1fr);gap:3px}.thermo-rows{--n:8;display:grid;grid-template-rows:repeat(var(--n),1fr);gap:3px;min-height:0}.thermo-clue-chip{border:1px solid var(--line);border-radius:8px;background:var(--soft);display:grid;place-items:center;line-height:1.05;padding:1px;min-width:0}.thermo-clue-chip strong{font-size:.82rem;color:var(--ink)}.thermo-clue-chip small{font-size:.66rem;color:var(--muted);font-weight:800}.thermo-clue-chip.forced{box-shadow:inset 0 0 0 2px currentColor}.thermo-clue-chip.done{opacity:.55}.thermo-clue-chip.bad{box-shadow:inset 0 0 0 3px currentColor}
.thermo-grid{--n:8;display:grid;grid-template-columns:repeat(var(--n),minmax(28px,1fr));gap:3px;aspect-ratio:1;position:relative;isolation:isolate}.thermo-svg{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:visible}.thermo-svg polyline{fill:none;stroke:var(--muted);stroke-width:.14;stroke-linecap:round;stroke-linejoin:round;opacity:.68}.thermo-svg circle{fill:var(--card);stroke:var(--muted);stroke-width:.08}.thermo-svg .bulb{fill:var(--soft)}.thermo-cell{position:relative;z-index:1;border:1px solid color-mix(in srgb,var(--line) 76%,transparent);border-radius:7px;background:color-mix(in srgb,var(--card) 84%,transparent);min-width:0;min-height:0;font:inherit;cursor:pointer;touch-action:none}.thermo-cell:hover{border-color:currentColor}.thermo-cell.mercury{background:color-mix(in srgb,#ef4444 24%,var(--card))}.thermo-cell.empty{background:color-mix(in srgb,var(--soft) 74%,var(--card));color:var(--muted)}.thermo-cell.bad{box-shadow:inset 0 0 0 3px #dc2626}.thermo-cell .bulb-dot{font-size:.62rem;opacity:.9}.thermo-grid.is-paused .thermo-cell,.thermo-grid.is-paused .thermo-svg{visibility:hidden}
.thermo-toolbar{justify-content:center;margin:9px 0 4px}.thermo-toolbar .btn{min-width:86px}.thermo-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px auto 6px;max-width:720px}.thermo-progress div{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:8px 10px;text-align:center}.thermo-progress small{display:block;color:var(--muted);font-size:.7rem;font-weight:800}.thermo-progress strong{font-size:.95rem}.thermo-status{max-width:760px;margin:8px auto 0;text-align:center;min-height:1.5em}
.thermo-more{max-width:760px;margin:10px auto 0;border-top:1px solid var(--line);padding-top:8px}.thermo-more summary,.thermo-below summary{cursor:pointer;font-weight:900;padding:7px 0}.thermo-more-actions{padding:4px 0 10px}.thermo-more-actions .btn{flex:0 1 auto}.thermo-marking{margin:6px 0 10px}.thermo-marking button{cursor:pointer}.thermo-teaching{display:none;margin:10px 0 0;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:12px}.thermo-teaching.open{display:block}.thermo-teaching-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.thermo-teaching-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.thermo-teaching-grid div{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:8px}.thermo-teaching-grid small{display:block;color:var(--muted)}.thermo-ranges{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.thermo-chip{border:1px solid var(--line);border-radius:999px;padding:5px 8px;background:var(--card);font-size:.78rem}.thermo-chip.forced{box-shadow:inset 0 0 0 2px currentColor}.thermo-chip.bad{box-shadow:inset 0 0 0 2px #dc2626}
.thermo-below{margin-top:14px}.thermo-below .inside{padding:2px 0 12px}.thermo-recent{display:grid;gap:6px}.thermo-recent-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:7px 0}.thermo-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.thermo-rule{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--card)}.thermo-rule h3{margin:0 0 5px;font-size:1rem}.thermo-rule p{margin:0;color:var(--muted)}
@media(max-width:700px){.thermo-hero{align-items:start}.thermo-modebox{display:none}.thermo-gamecard{padding:10px}.thermo-board{grid-template-columns:44px minmax(0,1fr);grid-template-rows:44px minmax(0,1fr)}.thermo-progress{grid-template-columns:repeat(4,minmax(68px,1fr));overflow:auto}.thermo-teaching-grid,.thermo-rules{grid-template-columns:1fr 1fr}.thermo-toolbar{gap:6px}.thermo-toolbar .btn{min-width:0;flex:1 1 26%;padding-left:8px;padding-right:8px}}
@media(max-width:470px){.thermo-page{padding-left:10px;padding-right:10px}.thermo-hero{margin-top:12px}.thermo-hero h1{font-size:2rem}.thermo-hero p{font-size:.88rem}.thermo-levels{gap:6px;flex-wrap:nowrap;overflow:auto;padding-bottom:3px}.thermo-levels a{padding:7px 9px;font-size:.82rem;flex:0 0 auto}.thermo-game-top .muted{display:none}.thermo-game-top{margin-bottom:4px}.thermo-board{grid-template-columns:40px minmax(0,1fr);grid-template-rows:40px minmax(0,1fr)}.thermo-clue-chip small{display:none}.thermo-progress{grid-template-columns:repeat(4,76px);justify-content:start}.thermo-toolbar .btn{font-size:.82rem}.thermo-teaching-grid,.thermo-rules{grid-template-columns:1fr}.thermo-more-actions .btn{flex:1 1 42%}}
@media print{.preview-note,.topbar,.mobile-dock,.thermo-levels,.thermo-daynav,.thermo-game-top,.thermo-toolbar,.thermo-progress,.thermo-status,.thermo-more,.thermo-below,.footer{display:none!important}.thermo-gamecard{border:0!important;box-shadow:none!important}.thermo-scroll{overflow:visible}.thermo-shell{width:720px!important;min-width:0!important}.thermo-cell.empty span{visibility:hidden}}
