:root{color-scheme:dark;--plum:#422239;--deep:#251320;--pink:#f3aac1;--pearl:#fff0df;--ink:#4b2436;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--deep);color:var(--pearl)}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#74354f 0,#301629 62%,#20121d 100%)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:var(--pearl);border:1px solid #b8758e;background:linear-gradient(#77405c,#49243c);border-radius:12px;cursor:pointer;min-height:48px;min-width:48px;font-size:13px;font-weight:700;box-shadow:inset 0 1px #e4acba55,0 3px 5px #14071260;touch-action:manipulation}button:disabled{opacity:.47;cursor:default}button:not(:disabled):active{transform:translateY(1px)}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--pearl);outline-offset:2px}button:hover:not(:disabled){filter:brightness(1.12)}[hidden]{display:none!important}
.workshop{width:min(100%,480px);height:100svh;max-height:960px;min-height:640px;margin:0 auto;padding:6px 8px 8px;display:flex;flex-direction:column;gap:5px;background:linear-gradient(#4b233933,#4b233933),url('../assets/play/kilnkeepers/bench-texture.webp') center/550px;border-inline:1px solid #b9768b55;box-shadow:0 12px 70px #0c070dcc;overflow:hidden}
.masthead{height:48px;flex:none;display:flex;align-items:center;gap:2px}.home{width:48px;height:48px;display:grid;place-items:center;color:var(--pearl);font-size:38px;text-decoration:none}.wordmark{width:calc(100% - 100px);height:48px;object-fit:contain;mix-blend-mode:screen}.icon-button{background:#4c2639;border-color:#b6758b66;font-size:22px}
.map-row{height:48px;flex:none;display:flex;gap:7px;align-items:stretch}.map-row button{flex:1;text-align:left;padding:4px 9px;line-height:1.15;min-width:140px;background:#321629aa}.map-row strong{font-size:15px}.map-row small{display:block;font-size:11px;font-weight:500;margin-top:4px;color:#f7c7d4}.counter{min-width:63px;padding:3px 0;text-align:center;display:flex;flex-direction:column;justify-content:center;background:#2c1527a6;border-radius:9px}.counter small{font-size:11px;letter-spacing:1.4px;color:#e9b7c9}.counter b{font-size:17px;white-space:nowrap}
.heat-row{height:24px;flex:none;display:flex;align-items:center;gap:7px;font-size:11px}.heat-row>span{white-space:nowrap}.heat-row>b{white-space:nowrap;color:#ffe7f0;font-size:11px}.heat-track{flex:1;height:14px;background:#260f20;border:2px solid #e1a4b5;border-radius:20px;box-shadow:0 2px 3px #100810,inset 0 1px 4px #170915;overflow:hidden}.heat-track i{display:block;height:100%;width:0;background:linear-gradient(#ffd6e0,#ed77a4 50%,#a63469);border-radius:12px;box-shadow:0 0 9px #ff88bb}
.board-wrap{position:relative;flex:1;min-height:150px;border-radius:20px;overflow:hidden;box-shadow:0 3px 9px #1d0b21aa;border:1px solid #a15d78}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:pointer;background:#4a2037}.board-caption{position:absolute;left:0;right:0;top:5px;text-align:center;color:#fff1e7;font-size:11px;letter-spacing:.2px;text-shadow:0 1px 3px #291124;pointer-events:none}.pause-layer{position:absolute;inset:0;background:#291526dc;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;backdrop-filter:blur(3px)}.pause-layer strong{font-size:25px}.pause-layer span{font-size:13px;color:#edbdce}.pause-layer button{width:140px}
.tower-tray{flex:none;height:66px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:3px;border-radius:13px;background:#321426;box-shadow:inset 0 1px 2px #100812,0 1px 0 #ba7184}.tower-tray button{height:60px;padding:0;min-width:48px;background:#f6d3c3 url('../assets/play/kilnkeepers/button-pearl.webp') center/100% 100%;border:1px solid #f6c2ca;border-radius:10px;color:#492030;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;line-height:1}.tower-tray img{width:44px;height:43px;object-fit:contain;pointer-events:none}.tower-tray span{font-size:11px;white-space:nowrap}.tower-tray b{font-size:11px;position:absolute;top:3px;right:3px;background:#fff0df;border-radius:4px;padding:1px 2px}.tower-tray button[aria-pressed=true]{outline:2px solid #ffb5d2;outline-offset:1px}
.inspect{height:48px;flex:none;padding:4px 8px;text-align:left;background:#2a1525a8;border-color:#94546d;box-shadow:none;display:flex;flex-direction:column;justify-content:center;gap:3px}.inspect strong{font-size:12px}.inspect span{font-size:11px;font-weight:500;color:#efc3d3;white-space:nowrap}.actions{height:48px;flex:none;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.actions button{font-size:12px}.primary{height:64px;flex:none;border:0;background:#f6d7ca url('../assets/play/kilnkeepers/button-pearl.webp') center/100% 100%;color:#51253b;text-shadow:0 1px #fff1e7;font-size:20px;letter-spacing:.3px;line-height:1.15;box-shadow:0 4px 6px #140918aa;border-radius:26px;padding:5px 8px 8px}.primary span{display:block;font-size:11px;letter-spacing:.3px;margin-top:3px;font-weight:600}.utility{height:48px;flex:none;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.utility button{font-size:11px;background:#341b2c;border-color:#935670;box-shadow:none}
.help{max-width:760px;margin:55px auto;padding:0 22px 55px;font-size:16px;line-height:1.8;color:#edced9}.help h1{font-size:30px;line-height:1.25;color:var(--pearl)}.help h2{font-size:21px;color:#fac7d8;margin-top:32px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;color:#eda4c0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.primary:disabled{opacity:.8}
dialog{width:min(94vw,440px);max-height:90svh;border:1px solid #df9eb8;border-radius:22px;padding:16px;background:linear-gradient(145deg,#65324e,#321b2c);color:var(--pearl);box-shadow:0 16px 90px #140711;overflow-y:auto}dialog::backdrop{background:#1d1021c9;backdrop-filter:blur(5px)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.panel-heading h2{margin:0;font-size:24px}.panel-heading button{flex:none;font-size:25px}.panel-copy{font-size:14px;line-height:1.6;color:#f1ccd9}.panel-copy p{margin:9px 0}.panel-copy button{margin-top:10px;width:100%}.map-card{width:100%;text-align:left;padding:10px 12px;display:block;margin:8px 0}.map-card strong{font-size:16px;display:block}.map-card span,.map-card small{display:block;font-size:11px;margin-top:5px;font-weight:500;color:#f7c8d9}.wave-card{padding:10px 12px;border:1px solid #aa7088;border-radius:14px;margin:9px 0;background:#301729}.wave-card h3{font-size:16px;margin:0 0 6px}.wave-card p{font-size:12px;margin:4px 0}.tower-hero{display:flex;align-items:center;gap:10px}.tower-hero img{width:96px;height:96px;object-fit:contain}.tower-hero p{font-size:13px;line-height:1.5;margin:0}.stat-table{width:100%;border-collapse:collapse;font-size:12px;margin:10px 0}.stat-table th,.stat-table td{text-align:right;padding:7px 4px;border-bottom:1px solid #bf81944d}.stat-table th:first-child{text-align:left}.stat-table thead{color:#ffc5df}.panel-action{width:100%;margin-top:8px}.record-line{font-size:12px;color:#f6c9dc;text-align:center;margin:8px 0}.result-number{font-size:42px;margin:12px 0;text-align:center;color:#fff0df}.result-actions{display:grid;gap:8px}.retry-row{display:flex;gap:8px;margin:8px 0}.retry-row select{flex:1;min-height:48px;min-width:0;background:#32172b;color:#fff0df;border:1px solid #be829c;border-radius:10px;padding:5px;font:inherit}.result-kiln{display:block;width:130px;height:120px;object-fit:contain;margin:0 auto}
@media(min-width:700px){.workshop{margin:18px auto;height:calc(100svh - 36px);max-height:920px;border-radius:25px;padding:10px 12px 12px;gap:6px}.wordmark{height:54px}.masthead{height:54px}.help{margin-top:65px}}
@media(max-height:740px) and (max-width:699px){.workshop{gap:3px;padding-top:3px;padding-bottom:4px}.masthead,.wordmark{height:44px}.tower-tray{height:60px}.tower-tray button{height:54px}.tower-tray img{height:37px;width:39px}.inspect span{font-size:11px}.map-row small{font-size:11px}.board-caption{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
