.hc-game{--hc-heat:#8ed9ed;--hc-soft:#7bcde91c;--hc-fill:7%;overflow:hidden;border:1px solid var(--ui-line);border-radius:22px;background:var(--ui-panel);color:var(--ui-ink);box-shadow:var(--ui-shadow)}
.hc-game *{box-sizing:border-box}.hc-game [hidden]{display:none!important}
.hc-game[data-tone=chilly],.hc-history li[data-tone=chilly]{--hc-heat:#8bd8f5;--hc-soft:#80c6f31c}.hc-game[data-tone=cool],.hc-history li[data-tone=cool]{--hc-heat:#7fbbeb;--hc-soft:#7fbbeb1c}.hc-game[data-tone=warm],.hc-history li[data-tone=warm]{--hc-heat:#efcd82;--hc-soft:#efcd821c}.hc-game[data-tone=hot],.hc-history li[data-tone=hot]{--hc-heat:#ffab71;--hc-soft:#ffab711c}.hc-game[data-tone=scorching],.hc-history li[data-tone=scorching]{--hc-heat:#ff8f91;--hc-soft:#ff8f911c}.hc-game[data-tone=found],.hc-history li[data-tone=found]{--hc-heat:#9ce5b7;--hc-soft:#9ce5b71c}
:root[data-theme=light] .hc-game{--hc-heat:#166b8e;--hc-soft:#d9edf3}:root[data-theme=light] :is(.hc-game,.hc-history li)[data-tone=chilly]{--hc-heat:#166b8e;--hc-soft:#d9edf3}:root[data-theme=light] :is(.hc-game,.hc-history li)[data-tone=cool]{--hc-heat:#345f9b;--hc-soft:#e4ebf8}:root[data-theme=light] :is(.hc-game,.hc-history li)[data-tone=warm]{--hc-heat:#856014;--hc-soft:#f6ecd5}:root[data-theme=light] :is(.hc-game,.hc-history li)[data-tone=hot]{--hc-heat:#a64a1d;--hc-soft:#fbe9dd}:root[data-theme=light] :is(.hc-game,.hc-history li)[data-tone=scorching]{--hc-heat:#b8324a;--hc-soft:#f9e4e8}:root[data-theme=light] :is(.hc-game,.hc-history li)[data-tone=found]{--hc-heat:#26744d;--hc-soft:#e0f2e7}
.hc-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 26px;border-bottom:1px solid var(--ui-line);background:var(--ui-raised)}
.hc-topline>div{display:flex;align-items:center;gap:12px;font-size:10px;font-weight:700;letter-spacing:.14em}
.hc-emblem{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:linear-gradient(135deg,#3b91bb,#a75957);box-shadow:inset 0 0 0 1px #ffffff30}.hc-emblem i{width:6px;height:15px;border:1.5px solid #fff;border-radius:6px;position:relative}.hc-emblem i:after{content:"";position:absolute;bottom:-3px;left:-2px;width:7px;height:7px;border-radius:50%;background:#fff}
.hc-topline label{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--ui-muted)}
.hc-game select{min-width:145px!important;min-height:40px;border:1px solid var(--ui-line);border-radius:9px;padding:9px 12px;background:var(--ui-input);color:var(--ui-ink);font:600 12px var(--font-body)}
.hc-play{display:grid;grid-template-columns:minmax(240px,.78fr) minmax(0,1.22fr)}
.hc-sensor{position:relative;isolation:isolate;overflow:hidden;margin:0;padding:28px 22px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;border-right:1px solid var(--ui-line);background:radial-gradient(ellipse at 20% 15%,#2daee31a,transparent 65%),radial-gradient(ellipse at 80% 90%,#f2947514,transparent 60%),var(--ui-soft)}
.hc-sensor:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(var(--ui-line) 1px,transparent 1px),linear-gradient(90deg,var(--ui-line) 1px,transparent 1px);background-size:32px 32px;opacity:.15;mask-image:radial-gradient(ellipse,#000,transparent 75%)}
.hc-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--ui-muted)}
.hc-sensor-heading{display:grid;gap:10px;z-index:1}.hc-last-number{font-size:48px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.05em;min-height:48px}.hc-last-number.is-long{font-size:34px;display:grid;align-items:center}
.hc-thermometer{position:relative;width:170px;height:209px;margin:13px 0 7px}
.hc-halo{position:absolute;inset:12px -12px -15px;border-radius:50%;background:radial-gradient(ellipse,var(--hc-soft),transparent 68%);transition:background .6s}
.hc-tube{position:absolute;top:8px;left:66px;width:38px;height:155px;border:2px solid var(--ui-line);border-radius:23px 23px 9px 9px;background:linear-gradient(90deg,var(--ui-raised),var(--ui-input));overflow:hidden;box-shadow:inset 4px 0 10px #00000020,1px 0 0 #ffffff18}
.hc-liquid{position:absolute;bottom:0;left:6px;right:6px;height:var(--hc-fill);max-height:calc(100% - 8px);background:linear-gradient(90deg,color-mix(in srgb,var(--hc-heat),#000 12%),var(--hc-heat) 60%,color-mix(in srgb,var(--hc-heat),#fff 25%));border-radius:15px 15px 0 0;transition:height .7s cubic-bezier(.2,.7,.3,1),background .5s;box-shadow:0 0 18px var(--hc-soft)}
.hc-liquid:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:#ffffff70;border-radius:50%}
.hc-glass-shine{position:absolute;top:13px;bottom:10px;left:4px;width:3px;border-radius:4px;background:linear-gradient(#ffffff80,#ffffff08)}
.hc-bulb{position:absolute;left:54px;top:143px;width:62px;height:62px;border:2px solid var(--ui-line);border-radius:50%;background:var(--ui-raised);box-shadow:0 13px 18px #00000018}
.hc-bulb:before{content:"";position:absolute;inset:6px;border-radius:50%;background:radial-gradient(circle at 32% 26%,color-mix(in srgb,var(--hc-heat),#fff 38%),var(--hc-heat) 50%,color-mix(in srgb,var(--hc-heat),#000 25%));transition:background .5s}
.hc-bulb i{position:absolute;top:12px;left:13px;width:16px;height:9px;border-radius:50%;background:#ffffff72;transform:rotate(-35deg)}
.hc-ticks{position:absolute;left:116px;top:20px;display:grid;gap:11px}.hc-ticks i{width:9px;height:1px;background:var(--ui-muted);opacity:.5}.hc-ticks i:nth-child(odd){width:14px;opacity:.8}
.hc-thermometer svg{position:absolute;left:31px;width:20px;height:20px;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.hc-hot-icon{top:13px;stroke:var(--ui-coral)}.hc-cold-icon{top:118px;stroke:var(--ui-cool)}
.hc-sensor figcaption{display:grid;gap:8px;z-index:1}.hc-temperature{font-size:16px;font-weight:600;color:var(--hc-heat);transition:color .4s}.hc-temperature-note{font-size:10px;line-height:1.7;color:var(--ui-muted);max-width:240px}
.hc-console{min-width:0;display:flex;flex-direction:column;padding:27px 32px 24px}
.hc-stats{display:grid;grid-template-columns:.8fr 1.2fr;gap:15px;border-bottom:1px solid var(--ui-line);padding-bottom:19px}
.hc-stats>div{display:flex;align-items:center;gap:12px}.hc-stats>div+div{border-left:1px solid var(--ui-line);padding-left:18px}.hc-stats span{font-size:9px;letter-spacing:.08em;font-weight:700;color:var(--ui-muted);line-height:1.5}.hc-stats small{display:block;font-size:8px;font-weight:400;letter-spacing:.04em}.hc-stats strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.hc-feedback{padding:28px 0 23px;min-height:162px}.hc-feedback-label{color:var(--hc-heat)}.hc-game .hc-feedback h3{margin:11px 0 12px;font-size:clamp(23px,2.8vw,31px);letter-spacing:-.045em;line-height:1.15}.hc-feedback p{margin:0;font-size:12px;line-height:1.8;color:var(--ui-muted);max-width:365px}
.hc-form{margin-top:auto}.hc-form>label{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:600;margin-bottom:9px}.hc-range-note{font-weight:400;font-size:11px;color:var(--ui-muted)}
.hc-entry{display:flex;flex-wrap:wrap;gap:9px}.hc-entry input{width:0;min-width:140px;flex:1 1 140px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-input);color:var(--ui-ink);min-height:52px;padding:12px 14px;font:600 19px var(--font-body);font-variant-numeric:tabular-nums;box-shadow:inset 0 2px 3px #00000008}.hc-entry input::placeholder{font-size:11px;font-weight:400;color:var(--ui-muted)}
.hc-entry button{display:flex;align-items:center;justify-content:center;gap:15px;flex:1 0 auto;min-height:52px;cursor:pointer;border:1px solid transparent;border-radius:10px;background:var(--ui-primary);color:var(--ui-on-primary);padding:13px 16px;font:700 12px var(--font-body);transition:filter .18s,transform .18s}.hc-entry button:hover{filter:brightness(1.06);transform:translateY(-1px)}.hc-entry button>span{font-size:18px}.hc-entry input:disabled{opacity:.6}.hc-entry input[aria-invalid=true]{border-color:var(--ui-danger)}
.hc-game :is(input,select,button):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.hc-error{color:var(--ui-danger);font-size:11px;line-height:1.6;margin:10px 0 0}.hc-error:empty{display:none}.hc-key-hint{font-size:10px;color:var(--ui-muted);margin:12px 0 0;line-height:1.7}.hc-key-hint kbd{border:1px solid var(--ui-line);border-radius:4px;padding:1px 4px;font:inherit;background:var(--ui-raised)}
.hc-history{border-top:1px solid var(--ui-line);padding:22px 26px 25px}.hc-history-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.hc-history h4{margin:0;font-size:14px;letter-spacing:-.02em}.hc-history-heading>span{font-size:10px;color:var(--ui-muted)}.hc-empty{margin:0;border:1px dashed var(--ui-line);border-radius:10px;padding:17px;font-size:12px;line-height:1.7;color:var(--ui-muted);text-align:center}
.hc-history ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:9px;max-height:248px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--ui-line) transparent}
.hc-history li{position:relative;display:grid;grid-template-columns:auto 1fr;gap:7px 11px;align-items:baseline;padding:13px 15px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised);font-size:11px}.hc-history li:first-child{border-color:var(--hc-heat);background:var(--hc-soft)}.hc-try-number{grid-row:1/3;font-size:10px;color:var(--ui-muted);font-variant-numeric:tabular-nums}.hc-history strong{font-size:20px;font-weight:600;letter-spacing:-.035em;font-variant-numeric:tabular-nums}.hc-history-temperature{color:var(--hc-heat);font-weight:600}.hc-history-direction{grid-column:2;color:var(--ui-muted);font-size:10px}.hc-history-direction b{display:inline-block;margin-right:5px;color:var(--hc-heat);font-size:13px}
.hc-help{display:flex;align-items:flex-start;gap:12px;padding:17px 26px;border-top:1px solid var(--ui-line);background:var(--ui-raised)}.hc-help>span{flex-shrink:0;border:1px solid var(--ui-line);border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font-size:11px;color:var(--ui-muted)}.hc-help p{margin:0;color:var(--ui-muted);font-size:11px;line-height:1.8;max-width:720px}.hc-help strong{font-weight:600;color:var(--ui-ink)}
.hc-sparks{position:absolute;left:85px;top:165px}.hc-sparks i{position:absolute;width:4px;height:8px;border-radius:3px;background:var(--hc-heat);opacity:0;transform:rotate(calc(var(--spark)*45deg)) translateY(-40px)}
.hc-game[data-phase=won] .hc-sparks i{animation:hc-celebrate .9s ease-out both}.hc-game[data-phase=won] .hc-halo{animation:hc-glow 1.1s ease-out both}
@keyframes hc-celebrate{0%{opacity:0;transform:rotate(calc(var(--spark)*45deg)) translateY(-25px) scale(.4)}25%{opacity:1}100%{opacity:0;transform:rotate(calc(var(--spark)*45deg)) translateY(-90px) scale(.6)}}
@keyframes hc-glow{0%{transform:scale(.7);opacity:.2}45%{transform:scale(1.5);opacity:1}100%{transform:scale(1);opacity:1}}
@media(max-width:900px){.hc-console{padding:24px}.hc-entry button{width:100%}.hc-play{grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr)}}
@media(max-width:600px){.hc-topline{padding:16px;gap:12px;flex-wrap:wrap}.hc-topline>div{font-size:9px}.hc-topline label{font-size:10px;gap:8px}.hc-game select{min-width:125px!important}.hc-play{grid-template-columns:1fr}.hc-sensor{border-right:0;border-bottom:1px solid var(--ui-line);display:grid;grid-template-columns:1fr 130px;padding:20px;gap:0 8px;text-align:left;align-items:center}.hc-sensor-heading{gap:10px}.hc-last-number{font-size:43px;min-height:43px}.hc-last-number.is-long{font-size:28px}.hc-thermometer{grid-column:2;grid-row:1/3;transform:scale(.8);transform-origin:center center;margin:-20px -20px;width:170px;height:209px}.hc-sensor figcaption{grid-column:1;align-self:start;padding-top:13px}.hc-temperature{font-size:14px}.hc-temperature-note{font-size:9px}.hc-console{padding:22px 20px}.hc-feedback{min-height:0;padding:23px 0}.hc-game .hc-feedback h3{font-size:27px}.hc-stats strong{font-size:25px}.hc-entry input{min-width:0;flex-basis:130px}.hc-entry button{width:auto;flex-basis:120px;padding:12px;gap:9px}.hc-history{padding:20px}.hc-history ol{grid-template-columns:1fr 1fr}.hc-history li{padding:12px 10px;gap:6px}.hc-history strong{font-size:19px}.hc-help{padding:17px 20px}}
@media(max-width:370px){.hc-sensor{grid-template-columns:1fr 100px;padding:18px 16px}.hc-thermometer{transform:scale(.7);margin:-24px -35px}.hc-last-number.is-long{font-size:24px}.hc-console{padding:20px 16px}.hc-history{padding:18px 16px}.hc-history ol{grid-template-columns:1fr}.hc-game .hc-feedback h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.hc-game *{animation:none!important;transition:none!important}}
