*{box-sizing:border-box}html,body{margin:0;height:100%;background:#102c38;color:#f6f3de;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}main{height:100%;min-height:410px;display:grid;grid-template-rows:auto minmax(130px,1fr) auto;background:radial-gradient(ellipse at 67% 43%,#234858,#102c38 72%)}header,footer{width:min(100%,920px);margin:auto;padding:16px clamp(14px,4vw,38px)}header a{color:#c0d5d3;font-size:13px;text-decoration:none}h1{font:600 clamp(19px,3.4vw,36px)/1.35 inherit;font-family:inherit;font-size:clamp(19px,3.4vw,36px);line-height:1.35;margin:.55em 0 0;text-wrap:balance}#stage{position:relative;overflow:hidden}canvas{display:block;touch-action:none;width:100%;height:100%}footer{padding-top:0;padding-bottom:max(16px,env(safe-area-inset-bottom))}#caption{margin:0 auto 14px;text-align:center;max-width:38em;min-height:2em;line-height:1.55;font-size:clamp(16px,2vw,22px);text-wrap:balance}.control,.transport{display:flex;align-items:center;gap:12px}.control{border-top:1px solid #7a96995e;padding:12px 2px}.control output,#time{font-size:13px;font-variant-numeric:tabular-nums}.control label{font-size:14px}.control input,.transport input{flex:1;min-width:32px;accent-color:#f3c567}.transport{background:#09232d;padding:6px 12px 6px 6px;border-radius:11px}button{font:inherit;cursor:pointer;border:0;border-radius:7px;min-height:37px;padding:5px 14px;background:#f7d285;color:#2a302b}input{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid white;outline-offset:2px}#notice{font-size:12px;color:#e0c48b;margin:4px auto;text-align:center}#notice:empty{display:none}[hidden]{display:none!important}body.bridge{color:#193c38;background:#e4eeea}body.bridge main{background:#e4eeea}body.bridge header a{color:#45615c}body.bridge .transport{color:#fff}body.bridge #stage{min-height:150px}@media(max-height:510px){main{min-height:335px}header,footer{padding-top:5px;padding-bottom:5px}header a{display:none}h1{font-size:16px}.control{padding:2px}#caption{font-size:14px;margin-bottom:3px;min-height:1.4em}}
#export{display:block;margin:6px 0 0 auto;background:transparent;color:inherit;font-size:12px;min-height:22px;padding:2px 6px;opacity:.8}

html:has(body.wind),body.wind,body.wind main{background:#f6f1e4;color:#244b4d}body.wind{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}body.wind header{padding-block:10px}body.wind h1{margin:.18em 0;font-size:clamp(19px,3vw,31px)}body.wind header a{color:#3d6c68}body.wind footer{padding-top:10px}body.wind .transport{color:#fbf2d8;background:#224b4e}body.wind button{background:#f1cb83}body.wind input{accent-color:#b95537}body.wind #notice{color:#864526}body.wind #export{background:transparent}

.wind-transcript{max-width:54rem;margin:0 auto;padding:1.2rem clamp(1rem,4vw,2.4rem) 2.5rem;line-height:1.8}.wind-transcript summary{cursor:pointer}.wind-transcript a{color:#365b54}

#wind-views{display:flex;gap:.3rem;justify-content:center;flex-wrap:wrap;margin:0 0 .45rem}body.wind #wind-views button{background:transparent;color:#355b58;padding:.1rem .65rem;border:1px solid #77968b;border-radius:1.5rem;font-size:.82rem;min-height:32px}body.wind #wind-views button[aria-pressed="true"]{color:#fff7dd;background:#315954}
body.canal,body.canal main{background:#f5efdf;color:#253f40}body.canal header a,body.canal .wind-transcript a{color:#34635f}body.canal header{padding-block:9px}body.canal h1{font-family:Georgia,serif;font-size:clamp(21px,3.5vw,37px);margin:.3em 0}body.canal footer{padding-top:9px}body.canal .transport{background:#254e52;color:#f9efda}body.canal button{background:#ecc894;color:#273c38}body.canal input{accent-color:#ac5039}body.canal .control output{max-width:12em;text-align:right}body.canal #export{background:transparent}body.canal #notice{color:#76472e}body.canal .wind-transcript{background:#f5efdf}

body.canal .canal-gate{display:block;margin:0 0 .5rem auto;min-height:34px;padding:5px 12px;color:#31524c;background:#e5ecdd;border:1px solid #97a69a}

#spatial-views{display:flex;justify-content:center;gap:.5rem;margin:0 0 .4rem;flex-wrap:wrap}
#spatial-views button{font:600 .87rem system-ui;border:1px solid #7e9792;color:#254646;background:#f7f5e8;border-radius:20px;padding:5px 15px;min-height:36px}
#spatial-views button[aria-pressed=true]{background:#305855;color:#fff8dd}
body.airship,body.airship main{background:#eeeede;color:#253c44}body.airship header a{color:#456168}
body.airship h1{font-family:Georgia,serif;font-size:clamp(21px,3.5vw,38px);margin:.28em 0}
body.airship .transport{background:#294b56;color:#fff7df}body.airship input{accent-color:#aa512e}
body.airship .wind-transcript{background:#eeeede;color:#253c44}
#stage canvas{touch-action:none}

.two-view-hint{margin:0;padding:10px 2px;text-align:center;border-top:1px solid #7a96995e;color:#456168;font-size:.86rem}

#airship-prediction{display:flex;justify-content:center;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.25rem auto .55rem}
#airship-prediction span{font-size:.87rem;color:#294650;font-weight:650}
#airship-prediction button{min-height:32px;padding:4px 14px;border:1px solid #6b817c;background:#fff8e7;color:#254743;border-radius:17px}
#airship-prediction button[aria-pressed=true]{background:#315a56;color:white}

#airship-outcome{display:block;text-align:center;min-height:36px;padding:5px;color:#254743;font-weight:650}

html:has(body.ondol),body.ondol,body.ondol main{background:#f6efdf;color:#443d35;font-family:system-ui,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;word-break:keep-all}
body.ondol main{grid-template-rows:auto minmax(195px,1fr) auto}
body.ondol header a,body.ondol .wind-transcript a{color:#68533b}
body.ondol h1{font-family:"AppleMyungjo","Batang",serif;font-size:clamp(21px,3vw,35px);line-height:1.35}
body.ondol #stage{width:min(100%,1080px);margin:auto;height:100%;border-radius:10px;background:#c7bd9f}
body.ondol footer{padding-top:10px}body.ondol #spatial-views{flex-wrap:wrap}
body.ondol #spatial-views button{color:#5a493c;border-color:#b2a58f;background:#fbf6ea}
body.ondol #spatial-views button[aria-pressed=true]{background:#594d3e;color:#fff4db}
body.ondol .transport{background:#464b43;color:white}body.ondol input{accent-color:#ac582e}
body.ondol #caption{font-size:clamp(16px,1.8vw,21px);margin-bottom:6px}
body.ondol #notice{color:#755032}body.ondol #spatial-views button{min-height:40px}
@media(max-width:600px){body.ondol main{height:auto;min-height:0;grid-template-rows:auto auto auto}body.ondol #stage{height:clamp(205px,55vw,325px);border-radius:0}body.ondol .control{gap:8px}body.ondol header{padding-block:10px}body.ondol #caption{min-height:3em}}
#ondol-probe{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:0 0 7px;font-size:.83rem}
#ondol-probe button{background:#ecdcba;color:#503e2f;min-height:34px}
#ondol-probe button[aria-pressed=true]{background:#77583c;color:#fff5da}

html:has(body.panpipes),body.panpipes,body.panpipes main{background:#f5eddb;color:#383039;font-family:system-ui,sans-serif}
body.panpipes header a,body.panpipes .wind-transcript a{color:#69513e}
body.panpipes h1{font-family:Georgia,serif;line-height:1.15;font-size:clamp(22px,3.3vw,36px);margin:.32em 0}
body.panpipes #stage{width:min(100%,1100px);height:100%;margin:auto;border-radius:10px;background:#d6c4a9}
body.panpipes footer{padding-top:8px}body.panpipes .transport{background:#3e4847;color:#fff8dd}
body.panpipes #caption{margin-bottom:6px;line-height:1.4}body.panpipes input{accent-color:#975635}
body.panpipes #spatial-views button{background:#fbf5e3;border-color:#ac9a7e;color:#514336;min-height:39px}
body.panpipes #spatial-views button[aria-pressed=true]{background:#37615c;color:#fff4d2}
body.panpipes #pipe-note{background:#71412f;color:#fff1cf;white-space:nowrap}body.panpipes #notice{color:#784032}
@media(max-width:600px){body.panpipes main{height:auto;min-height:0;grid-template-rows:auto auto auto}body.panpipes #stage{height:clamp(228px,62vw,350px);border-radius:0}body.panpipes .control{display:grid;grid-template-columns:auto 1fr auto;gap:4px 8px;padding:6px 0}body.panpipes #controlLabel{grid-column:1}body.panpipes #pipe-note{grid-column:3;grid-row:1/3}body.panpipes #result{grid-column:2;text-align:center}body.panpipes #caption{min-height:3em}body.panpipes #spatial-views{flex-wrap:wrap}}

html:has(body.ipe),body.ipe,body.ipe main{background:#f6efdd;color:#303d32;font-family:system-ui,sans-serif}
body.ipe header a,body.ipe .wind-transcript a{color:#4d644a}body.ipe h1{font-family:Georgia,serif;font-size:clamp(22px,3.3vw,36px);line-height:1.15;margin:.3em 0}
body.ipe #stage{width:min(100%,1060px);height:100%;margin:auto;border-radius:10px;background:#e9d3a9}
body.ipe footer{padding-top:9px}body.ipe #caption{margin-bottom:6px;line-height:1.4}
body.ipe .transport{background:#314a42;color:#fff8de}body.ipe input{accent-color:#a75332}
body.ipe #spatial-views button{background:#fbf5df;color:#46533f;border-color:#a7ac92;min-height:40px}
body.ipe #spatial-views button[aria-pressed=true]{background:#385746;color:#fff1d0}
body.ipe #release-seed{background:#855335;color:#fff3da;white-space:nowrap}body.ipe #notice{color:#784231}
@media(max-width:600px){body.ipe main{height:auto;min-height:0;grid-template-rows:auto auto auto}body.ipe #stage{height:clamp(220px,60vw,335px);border-radius:0}body.ipe .control{display:grid;grid-template-columns:auto 1fr auto;gap:5px 8px;padding:6px 0}body.ipe #release-seed{grid-column:3;grid-row:1/3}body.ipe #result{grid-column:1/3;font-size:12px}body.ipe #caption{min-height:3em}body.ipe #spatial-views{flex-wrap:wrap}}

body.tower{background:#f3efe3;color:#1e3943}body.tower main{background:#f3efe3;color:inherit}
body.tower header,body.tower footer{color:inherit}body.tower header a,body.tower #export{color:#31525b}
body.tower h1{font-family:Georgia,serif;color:#163b48}body.tower #stage{background:#b9c9ca;border-radius:10px}
body.tower .transport{background:#1e4754;color:#fff4de}body.tower input{accent-color:#a15b32}
body.tower #spatial-views button{color:#21434c;background:#faf6e9;border:1px solid #a8afa3;min-height:38px}
body.tower #spatial-views button[aria-pressed=true]{background:#244d57;color:#fff1d4}
@media(max-width:600px){body.tower main{height:auto;min-height:0;grid-template-rows:auto auto auto}body.tower #stage{height:clamp(230px,58vw,340px);border-radius:0}body.tower #spatial-views{display:flex;flex-wrap:wrap;gap:4px}body.tower #spatial-views button{padding:5px 10px}}
body.tower #stage{width:min(100%,1100px);justify-self:center}

body.damper{background:#142c3a;color:#f4e8cd}body.damper main{background:#142c3a;color:inherit}
body.damper header,body.damper footer{color:inherit}body.damper header a,body.damper #export{color:#d4dcca}
body.damper h1{font-family:"Songti TC","Noto Serif TC",serif;color:#f4e5c4;letter-spacing:.025em}
body.damper #stage{width:min(100%,1180px);justify-self:center;border-radius:10px;background:#284352}
body.damper #caption{color:#f1edda}body.damper .transport{background:#253f4b;color:#fff2d6}body.damper input{accent-color:#d8a663}
body.damper #spatial-views{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
body.damper #spatial-views button{background:#1c3645;color:#dce5d8;border:1px solid #637b80;min-height:38px}
body.damper #spatial-views button[aria-pressed=true]{background:#d8bb82;color:#172f3a}
body.damper #repeat-gust{background:#e2be81;color:#162f39;white-space:nowrap}body.damper #result{color:#f2dbab}
@media(max-width:600px){body.damper main{height:auto;min-height:0;grid-template-rows:auto auto auto}body.damper #stage{height:clamp(235px,63vw,340px);border-radius:0}body.damper #spatial-views button{padding:6px 10px}body.damper .control{display:grid;grid-template-columns:auto 1fr auto;gap:6px}body.damper #result{grid-column:1/3}body.damper #repeat-gust{grid-column:3;grid-row:1/3}}

body.icebreaker,body.icebreaker main{background:#f1efe6;color:#1b3847;font-family:"Source Sans 3",system-ui,sans-serif}
body.icebreaker main{height:auto;min-height:100%;grid-template-rows:auto minmax(245px,min(48vh,480px)) auto;align-content:center}
body.icebreaker header,body.icebreaker footer{color:#1b3847}
body.icebreaker h1{font:600 clamp(23px,3.3vw,44px)/1.1 Georgia,serif;letter-spacing:-.025em}
body.icebreaker header a,body.icebreaker #export,body.icebreaker .wind-transcript,body.icebreaker .wind-transcript a{color:#31586a}
body.icebreaker #stage{justify-self:center;width:min(100%,1240px);border-radius:8px;background:#82a0ad}
body.icebreaker #spatial-views{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;padding-top:10px}
body.icebreaker #spatial-views button,body.icebreaker #reset-ice{background:#e3e6dd;border:1px solid #afbcb7;color:#1e3b49;min-height:38px}
body.icebreaker #spatial-views button[aria-pressed=true],body.icebreaker #play{background:#24576a;color:white}
body.icebreaker #caption{color:#1b3847;line-height:1.35}
body.icebreaker .control,body.icebreaker #result{color:#294c58}
body.icebreaker .transport{background:#d5e1df;color:#193f50}
body.icebreaker input{accent-color:#b34c35}
@media(max-width:620px){
 body.icebreaker main{min-height:0;grid-template-rows:auto auto auto}
 body.icebreaker #stage{height:clamp(228px,58vw,340px);border-radius:0}
 body.icebreaker #spatial-views{gap:4px}body.icebreaker #spatial-views button{padding:6px 9px}
 body.icebreaker .control{display:grid;grid-template-columns:auto minmax(60px,1fr) auto;gap:6px}
 body.icebreaker #result{grid-column:1/3}
 body.icebreaker #reset-ice{grid-column:3;grid-row:1/3}
}
