@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-0.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-1.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-2.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-3.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-4.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-5.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-6.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-7.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/font-8.ttf) format('truetype');
}

:root{color-scheme:light;--ink:#233d35;--muted:#7b8579;--paper:#f6f5ed;--orange:#e97743;--green:#3e6b50}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}button,a,canvas{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--orange);outline-offset:4px}main{max-width:1580px;margin:auto;padding:0 64px}.site-header{height:104px;display:flex;align-items:center;border-bottom:1px solid #dadfd3;gap:20px}.brand{display:flex;align-items:center;font-family:Manrope,sans-serif;font-weight:800;font-size:23px;letter-spacing:-1px;text-decoration:none;color:var(--ink)}.brand-icon{font-size:39px;color:#416a4b;margin-right:10px}.brand-light{font-weight:500}.seal{display:inline-flex;margin-left:11px;background:#c75c3c;border-radius:3px;font-size:10px;line-height:13px;letter-spacing:1px;color:#fff1d9;padding:4px 3px;width:21px;word-break:break-all}.edition{margin:auto;font-size:10px;letter-spacing:2.2px;font-weight:600;display:flex;align-items:center;gap:9px}.edition>span{width:5px;height:5px;background:var(--orange);border-radius:50%}.icon-button{width:42px;height:42px;border:1px solid #d7ddce;background:none;border-radius:50%;display:grid;place-items:center}.intro{display:flex;align-items:center;justify-content:space-between;padding:39px 0 33px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.2px;margin:0 0 13px;color:#688069}h1{font-family:Manrope,sans-serif;font-size:clamp(30px,3.2vw,49px);line-height:1.2;letter-spacing:-2.3px;font-weight:700;margin:0}h1 em{font-style:normal;color:var(--orange)}.subtitle{margin:14px 0 0;font-size:13px;color:#7e8579}.mobile-break{display:none}.chapter{display:flex;gap:17px;align-items:center}.chapter-number{font-family:Manrope;font-size:56px;letter-spacing:-4px;color:#d3d9c8;font-weight:500}.chapter>div{font-size:8px;letter-spacing:1.6px;color:#818d7d;line-height:2.1}.chapter strong{display:block;font-size:15px;letter-spacing:0;color:var(--ink);font-weight:500}.game-shell{border:1px solid #c9d5bc;border-radius:17px;overflow:hidden;background:#eef1df;box-shadow:0 12px 28px #455b3210}.game-topbar{height:59px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:#fafbf1}.level-tag{display:flex;align-items:center;gap:11px;font-size:10px;letter-spacing:1.5px;font-weight:700}.level-dot{width:7px;height:7px;border-radius:50%;background:#5a805b}.divider{color:#c4ccbc;margin:0 2px}.level-name{font-size:12px;font-weight:500;letter-spacing:0}.game-stats{display:flex;align-items:center;gap:21px;font-size:9px;letter-spacing:1px;color:#7f8c76}.game-stats b{color:var(--ink);font-size:12px;letter-spacing:0;margin-left:8px}.game-stats>span:first-child b{color:#52765a;font-size:10px}.stat-divider{width:1px;height:16px;background:#dce1d2}.reset{border:1px solid #d9e0cf;color:#405b43;background:transparent;width:29px;height:29px;border-radius:50%;font-size:21px;line-height:1}.reset:hover,.icon-button:hover{background:#e6eddc}.canvas-wrap{position:relative;background:#e5edcf;aspect-ratio:1400/680;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.aim-hint{position:absolute;left:11%;top:44%;font-size:9px;letter-spacing:1.5px;color:#526e4a;pointer-events:none;display:flex;align-items:center;gap:10px}.aim-hint>span{font-size:26px;transform:rotate(-15deg)}.scene-caption{position:absolute;left:25px;bottom:20px;display:flex;gap:13px;align-items:center;pointer-events:none;color:#506c43}.scene-caption>span:first-child{font-family:serif;font-size:13px;letter-spacing:3px}.scene-caption>span:last-child{border-left:1px solid #7e945466;padding-left:13px;font-size:7px;letter-spacing:2px}.game-footer{display:flex;align-items:center;justify-content:space-between;height:48px;background:#f9fbef;padding:0 26px}.live-status{display:flex;gap:9px;align-items:center;font-size:11px;color:#63765b}.live-status>span:first-child{width:5px;height:5px;background:#7d985f;border-radius:50%}.footer-note{font-size:8px;letter-spacing:1.6px;color:#8b947e}.below-game{display:flex;justify-content:space-between;align-items:center;padding:30px 0 34px}.instructions{display:flex;align-items:center;gap:25px}.instruction{display:flex;gap:12px;align-items:center}.step{height:29px;width:29px;display:grid;place-items:center;border:1px solid #d5ddcc;border-radius:50%;font-size:9px;color:#6f866b}.instruction p{margin:0;font-size:11px;line-height:1.8}.instruction strong{display:block;font-weight:600;font-size:12px}.instruction p>span{color:#838a7b;font-size:10px}.arrow{color:#b6c2a9;font-size:17px}.zen-note{display:flex;align-items:center;gap:13px}.zen-note>span{color:var(--orange);font-size:24px}.zen-note p{font-size:11px;line-height:1.7;color:#8b917f}.site-footer{border-top:1px solid #dce1d2;padding:19px 0 24px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#919989}.site-footer>span:nth-child(2){letter-spacing:0}.site-footer i{font-style:normal;margin:0 8px}.result{position:absolute;inset:0;background:#e7efd52a;backdrop-filter:blur(3px);display:grid;place-items:center}.result[hidden]{display:none}.result-card{padding:30px 45px;background:#fcfbedf5;border:1px solid #c9d2b7;border-radius:17px;text-align:center;box-shadow:0 18px 50px #253e3020;min-width:320px}.result-kicker{font-size:8px;letter-spacing:2px;color:#78916b}.result-stars{color:#e5a64e;font-size:28px;letter-spacing:7px;margin-top:16px}.result h2{font-family:Manrope;font-size:30px;letter-spacing:-1px;margin:12px 0}.result p{font-size:12px;color:#7b8870}.result button{background:#335c45;color:#fff;border:0;border-radius:7px;font-size:12px;padding:13px 20px;margin-top:13px}.result button>span{margin-left:18px} @media(min-width:1600px){main{padding:0 45px}}@media(max-width:1050px){main{padding:0 28px}.intro{padding:28px 0}.chapter{display:none}.instructions{gap:14px}.zen-note{display:none}.game-stats{gap:12px}.site-header{height:80px}}@media(max-width:650px){main{padding:0 15px}.site-header{height:70px}.brand{font-size:20px}.edition{display:none}.icon-button{margin-left:auto}.intro{padding:27px 0}.eyebrow{font-size:8px}h1{font-size:34px;letter-spacing:-1.6px}.mobile-break{display:block}.subtitle{font-size:12px;max-width:280px;line-height:1.65}.game-topbar{height:47px;padding:0 12px}.level-name{display:none}.game-stats{font-size:7px;gap:8px}.game-stats b{font-size:10px;margin-left:4px}.canvas-wrap{aspect-ratio:1400/680}.game-footer{height:43px;padding:0 12px}.live-status{font-size:9px}.footer-note{display:none}.aim-hint{font-size:7px;left:8%;top:40%}.scene-caption{left:13px;bottom:12px}.scene-caption>span:last-child{display:none}.below-game{padding:22px 0}.instructions{width:100%;justify-content:space-between;gap:4px}.instruction{flex-direction:column;align-items:flex-start;gap:7px}.instruction p>span{font-size:9px;max-width:87px;display:block;line-height:1.5}.instruction strong{font-size:10px}.arrow{display:none}.site-footer{font-size:6px;letter-spacing:.7px;gap:10px}.site-footer>span:nth-child(2){display:none}.result-card{padding:20px;min-width:260px}.result h2{font-size:25px}.result p{font-size:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.game-selection{display:flex;justify-content:space-between;align-items:center;gap:26px;margin:0 0 23px}.selection-label{font-size:8px;letter-spacing:1.6px;color:#7b8c72;font-weight:700}.character-options{display:flex;align-items:center;gap:9px}.character-options>.selection-label{margin-right:7px}.character-card{display:flex;align-items:center;gap:9px;padding:8px 14px 8px 7px;background:transparent;border:1px solid #d7dfca;border-radius:10px;text-align:left;color:var(--ink)}.character-card[aria-pressed=true]{background:#e9efdc;border-color:#65835b;box-shadow:inset 0 0 0 1px #65835b}.character-card canvas{width:43px;height:43px}.character-card strong{display:block;font-size:11px;font-weight:600}.character-card small{font-size:8px;color:#819073;display:block;margin-top:4px}.level-options>.selection-label{display:block;margin-bottom:8px}.level-options>div{display:flex;gap:8px}.level-options button{background:transparent;border:1px solid #d7dfca;border-radius:9px;color:#7d8a70;text-align:left;padding:9px 12px;font-size:10px}.level-options button>span{color:var(--ink);font-weight:600;margin-left:6px}.level-options button small{display:block;font-size:8px;margin:5px 0 0 19px}.level-options button[aria-pressed=true]{background:#e9efdc;border-color:#65835b}.result-secondary{display:block;margin:10px auto 0!important;background:transparent!important;color:inherit!important;font-size:10px!important;border:1px solid #81907355!important;padding:8px 13px!important}.result p{max-width:340px;line-height:1.7}.game-selection button:hover{border-color:#65835b}@media(max-width:1100px){.game-selection{align-items:flex-start}.character-options{flex-wrap:wrap}.character-options>.selection-label{width:100%}.character-card{padding-right:10px}.level-options{flex-shrink:0}}@media(max-width:750px){.game-selection{flex-direction:column;gap:16px}.character-options{width:100%}.character-card{flex:1}.level-options{width:100%}.level-options>div{width:100%}.level-options button{flex:1}.character-card strong{font-size:10px}.character-card small{font-size:7px}.game-footer{height:auto;min-height:43px;padding-top:10px;padding-bottom:10px}.live-status{line-height:1.5}.result-card{max-width:90%;min-width:0;padding:15px 20px}.result h2{font-size:20px;margin:7px 0}.result-stars{font-size:19px;margin-top:7px}.result button{margin-top:5px;padding:9px 14px}.result p{margin:5px 0}.result-kicker{font-size:7px}.result-secondary{margin:5px auto 0!important;padding:5px 10px!important}}
@media(max-width:750px){.result{overflow-y:auto;align-items:start;padding:8px 0}.result-card{margin:auto}.result-card .result-secondary[hidden]{display:none!important}}
@media(max-width:750px){.canvas-wrap:has(.result:not([hidden])){aspect-ratio:auto;height:310px}.canvas-wrap:has(.result:not([hidden])) .result{align-items:center;overflow-y:auto}.canvas-wrap:has(.result:not([hidden])) canvas{object-fit:cover}.canvas-wrap:has(.result:not([hidden])) .scene-caption{display:none}}
/* The bamboo crew: larger portraits and soft, segmented bamboo frames. */
.character-options{flex-direction:column;align-items:flex-start;gap:8px}.character-row{display:flex;gap:9px}.character-card{position:relative;padding:9px 12px 9px 5px;min-width:172px;overflow:hidden;background:#f8faee;border-color:#cbd9bb;border-width:1px 2px}.character-card::before,.character-card::after{content:'';position:absolute;left:0;right:0;height:3px;pointer-events:none;background:repeating-linear-gradient(90deg,#b5c997 0 31px,#7d9c66 31px 34px,#b5c997 34px 65px);opacity:.45}.character-card::before{top:0}.character-card::after{bottom:0}.character-card canvas{width:62px;height:62px;flex-shrink:0}.character-card strong{font-size:12px;letter-spacing:-.2px}.character-card small{font-size:8px;line-height:1.5}.character-card[aria-pressed=true]{background:#efe7f8;border-color:#a17cc5;box-shadow:inset 0 0 0 1px #a17cc5}.character-card[aria-pressed=true]::before,.character-card[aria-pressed=true]::after{background:repeating-linear-gradient(90deg,#b597d4 0 31px,#8d63b4 31px 34px,#b597d4 34px 65px)}#character-buffer[aria-pressed=true]{background:#faf2d5;border-color:#b9a25e;box-shadow:inset 0 0 0 1px #b9a25e}.brand-icon{display:flex;align-items:center}.game-selection{align-items:flex-end}.level-options{padding-bottom:0}.character-options>.selection-label{width:auto}.game-selection button:hover{border-color:#9a76bc}@media(max-width:1050px){.game-selection{flex-direction:column;align-items:stretch;gap:17px}.character-options,.character-row{width:100%}.character-card{flex:1}.level-options>div{width:100%}.level-options button{flex:1}}@media(max-width:650px){.character-row{gap:7px}.character-card{min-width:0;flex:1;padding:9px 4px 10px;flex-direction:column;gap:4px;align-items:center;text-align:center}.character-card canvas{width:64px;height:64px}.character-card strong{font-size:11px}.character-card small{font-size:7px;margin-top:3px;min-height:20px;max-width:94px}.game-selection{margin-bottom:19px}.selection-label{font-size:8px}.eyebrow{letter-spacing:1.5px}}
/* Five distinct pandas and a soft enchanted valley. */
.game-selection{flex-direction:column;align-items:stretch;gap:16px}.character-options,.character-row{width:100%}.character-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.character-card{min-width:0;justify-content:center;padding:9px 6px;gap:5px}.character-card strong{font-size:12px}.character-card small{font-size:8px}.level-options{display:flex;align-items:center;justify-content:space-between;gap:15px}.level-options>.selection-label{margin:0}.level-options>div{width:auto;min-width:350px}.level-options button{flex:1}.ability-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 25px;border-top:1px solid #d2ddc1;border-bottom:1px solid #e1e7d6;background:#f1f4e5}.ability-description{display:flex;flex-direction:column;gap:5px}.ability-description strong{font-size:12px;font-weight:600;color:#5a4967}.ability-description>span{font-size:10px;line-height:1.5;color:#829074}.ability-action{display:flex;align-items:center;gap:13px;flex-shrink:0}.ability-action>span{font-size:8px;letter-spacing:.5px;color:#9b83b0}.ability-action button{border:1px solid #ac89ca;border-radius:8px;background:#976bc0;color:#fffafc;padding:10px 17px;font-size:11px;min-width:130px;font-weight:600}.ability-action button:disabled{background:#ebe5f0;color:#a18aaf;border-color:#d7c9e0;cursor:default}.ability-action button:not(:disabled):hover{background:#8054aa}.valley .game-topbar,.valley .game-footer{background:#fcf5f7}.valley .ability-bar{background:#f4edf7;border-color:#e1d2e9}.valley .canvas-wrap{background:#f4e8f1}.valley .level-dot{background:#bf89a4}.valley .scene-caption{color:#6b616b}.valley .aim-hint{color:#6b6572}.valley .result-card{background:#fffaf5f5;border-color:#d7bddd}.valley .result button{background:#a078bd}.game-shell.valley{border-color:#d5bbd3}.valley .result-stars{color:#dca77b}#character-squeeze[aria-pressed=true]{background:#f3e8ef}#character-wizard[aria-pressed=true]{background:#e9dff6;border-color:#9772c2}.intro h1{font-size:clamp(30px,3vw,45px)}@media(max-width:1100px){.character-card{flex-direction:column;text-align:center;padding:9px 5px}.character-card canvas{width:65px;height:65px}.character-card small{font-size:8px;min-height:14px}.ability-action{flex-direction:column;gap:5px}}@media(max-width:650px){.character-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.character-card{grid-column:span 2;gap:3px}.character-card:nth-child(n+4){grid-column:span 3}.character-card strong{font-size:11px}.character-card small{max-width:none;font-size:7px;min-height:12px}.level-options{display:block}.level-options>.selection-label{margin-bottom:8px;display:block}.level-options>div{min-width:0;width:100%}.ability-bar{padding:11px 12px;gap:10px;align-items:flex-start}.ability-description strong{font-size:10px}.ability-description>span{font-size:9px;max-width:205px}.ability-action>span{font-size:6px;max-width:110px;text-align:center}.ability-action button{min-width:108px;padding:9px 9px;font-size:10px}.intro h1{font-size:33px}.canvas-wrap:has(.result:not([hidden])){height:325px}}
/* Ten-level campaign and eight-panda roster. */
.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}.header-controls{display:flex;align-items:center;gap:9px;margin-left:auto}#crew-toggle{display:none;border:1px solid #c5b2d9;background:#f1e8f7;color:#6f5585;border-radius:7px;padding:8px 11px;font:inherit;font-size:10px}.header-level select{font:inherit;font-size:10px;max-width:215px;border:1px solid #d1dcbf;border-radius:7px;padding:8px;background:#fbfbee;color:#54704d}.edition{margin-left:auto;margin-right:auto}.character-row{grid-template-columns:repeat(4,minmax(0,1fr))}.character-card{flex-direction:row;text-align:left;padding:7px 10px}.character-card canvas{width:58px;height:58px}.level-options{display:block}.level-options>.selection-label{display:block;margin-bottom:9px}.level-options>div.campaign-levels{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:100%;min-width:0;gap:7px}.campaign-levels button{padding:9px 6px;text-align:center;font-size:11px;min-height:65px}.campaign-levels button span{display:block;font-size:8px;margin:5px 0 0;line-height:1.4}.campaign-levels button small{font-size:6px;letter-spacing:.5px;margin:5px 0 0;display:block;color:#ae6c81}.campaign-levels .boss-choice{border-color:#ceb0c4;background:#f7edf1}.game-selection{position:relative}#crew-close{display:none}#boss-hud{display:flex;align-items:center;gap:13px;padding:9px 24px;background:#efe4ee;color:#78536c;border-top:1px solid #d8c4d7;font-size:10px}#boss-hud strong{font-size:11px;flex-shrink:0}#boss-health{width:100%;height:9px;appearance:none;border:0;border-radius:9px;overflow:hidden;background:#ddc9d9}#boss-health::-webkit-progress-bar{background:#ddc9d9}#boss-health::-webkit-progress-value{background:#ba7895;border-radius:9px}#boss-hp{white-space:nowrap}#boss-phase{font-size:7px;white-space:nowrap;letter-spacing:.5px}#roll-control{font-size:8px;color:#9275a7;display:flex;align-items:center;gap:6px}#roll-direction{font-size:9px;padding:6px;border:1px solid #c4aed5;border-radius:5px;background:#f9f1fc;color:#73548d}.boss-level .game-topbar{background:#f0e7ef}.boss-level .result-card{border-color:#c4a4bb}.boss-level .level-dot{background:#a76e8b}@media(max-width:750px) and (orientation:portrait){.header-controls{display:none}.character-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.character-card,.character-card:nth-child(n+4){grid-column:auto;flex-direction:column;text-align:center;padding:8px 3px;gap:3px}.character-card canvas{width:55px;height:55px}.character-card strong{font-size:9px}.character-card small{font-size:6px;min-height:18px;line-height:1.4}.level-options>div.campaign-levels{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.campaign-levels button span{font-size:7px}.campaign-levels button{min-height:61px}#boss-hud{gap:7px;padding:8px 10px}#boss-hud strong{font-size:8px}#boss-phase{display:none}.ability-action{gap:4px}}
/* Landscape is a fixed-height game screen, not a scrolling page. */
@media(orientation:landscape){html,body{height:100%;overflow:hidden;overscroll-behavior:none}main{height:100dvh;max-width:none;padding:10px 22px;display:flex;flex-direction:column;gap:8px;overflow:hidden}.site-header{height:43px;min-height:43px;flex-shrink:0;border-bottom:0;gap:12px}.site-header .brand{font-size:19px}.site-header .brand-icon svg{height:30px;width:27px}.site-header .seal{font-size:8px;padding:2px 3px;width:18px}.icon-button{width:33px;height:33px;flex-shrink:0}.edition{font-size:8px;letter-spacing:1.2px}.intro,.below-game,.site-footer{display:none}.header-controls{display:flex}#crew-toggle{display:block}.game-selection{display:none;margin:0}.game-selection.open{display:flex;position:fixed;z-index:30;top:58px;left:50%;transform:translateX(-50%);width:min(94vw,850px);padding:16px;border:1px solid #c9b7d6;border-radius:13px;background:#faf8f0;box-shadow:0 15px 70px #40314645;gap:13px;align-items:stretch}.character-options{gap:7px}.character-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.character-card{min-width:0;flex-direction:row;justify-content:flex-start;text-align:left;grid-column:auto!important;padding:6px}.character-card canvas{width:41px;height:41px}.character-card strong{font-size:10px}.character-card small{font-size:7px;min-height:0}.level-options>div.campaign-levels{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.campaign-levels button{min-height:35px;padding:7px 3px;font-size:11px}.campaign-levels button span{display:none}.campaign-levels button small{font-size:5px;margin:2px 0 0}.selection-label{font-size:7px}#crew-close{display:block;position:absolute;right:10px;top:8px;border:0;background:none;color:#7e658f;font-size:20px;padding:0 5px}.game-shell{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;border-radius:12px}.game-topbar{height:37px;min-height:37px;flex-shrink:0;padding:0 18px}.canvas-wrap{flex:1;min-height:0;aspect-ratio:auto!important;height:auto!important;width:100%;position:relative}.canvas-wrap canvas,.canvas-wrap:has(.result:not([hidden])) canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.canvas-wrap .result{padding:5px;overflow:hidden}.canvas-wrap:has(.result:not([hidden])) .result{align-items:center;overflow:hidden}.result-card{padding:12px 20px;margin:auto;min-width:280px;max-width:95%;border-radius:11px}.result-kicker,.result-stars{display:none}.result h2{font-size:21px;margin:0 0 5px}.result p{font-size:10px;line-height:1.45;margin:5px auto;max-width:410px}.result button{padding:9px 16px;margin:5px 0 0;font-size:10px}.result-secondary{padding:5px 10px!important;font-size:8px!important;margin:5px auto 0!important}.scene-caption{bottom:10px!important;left:18px}.scene-caption span{font-size:9px!important}.scene-caption>span:last-child{font-size:6px!important}.canvas-wrap:has(.result:not([hidden])) .scene-caption{display:none}.ability-bar{min-height:49px;flex-shrink:0;padding:9px 17px;align-items:center}.ability-description{gap:3px}.ability-description strong{font-size:10px}.ability-description>span{font-size:9px;max-width:none}.ability-action{flex-direction:row;gap:12px}.ability-action button{font-size:10px;padding:8px 12px;min-width:130px}.ability-action>span{font-size:7px;max-width:none}.game-footer{min-height:29px;height:29px;flex-shrink:0;padding:0 18px}.live-status{font-size:9px}.footer-note{font-size:7px}#boss-hud{flex-shrink:0;padding:6px 18px;min-height:29px}#boss-hud strong{font-size:10px}.aim-hint{font-size:8px}.game-stats{font-size:8px;gap:13px}.level-tag{font-size:9px}.level-name{display:inline;font-size:10px}}
@media(orientation:landscape) and (max-height:500px){main{padding:5px 10px;gap:4px}.site-header{height:34px;min-height:34px}.brand-icon svg{height:24px!important;width:22px!important}.site-header .brand{font-size:16px}.edition{display:none}.header-level select{max-width:215px;padding:6px;font-size:9px}#crew-toggle{padding:6px 9px;font-size:9px}.icon-button{width:28px;height:28px}.game-topbar{height:30px;min-height:30px;padding:0 11px}.ability-bar{min-height:39px;padding:6px 11px;gap:8px}.ability-description strong{font-size:9px}.ability-description>span{font-size:7px;max-width:400px}.ability-action{gap:7px}.ability-action button{padding:6px 9px;min-width:111px;font-size:9px}.ability-action>span{font-size:6px}.game-footer{height:24px;min-height:24px;padding:0 11px}.footer-note{display:none}.live-status{font-size:8px}#boss-hud{min-height:23px;padding:4px 11px}#boss-hud strong{font-size:8px}#boss-hud #boss-phase{font-size:6px;display:inline}.result-card{padding:9px 16px}.result h2{font-size:17px}.result p{font-size:9px;line-height:1.35}.result button{padding:6px 12px;font-size:9px}.game-selection.open{top:44px;padding:10px;gap:7px}.character-card canvas{width:35px;height:35px}.character-card strong{font-size:9px}.character-card small{display:none}.character-card{padding:5px}.level-options>.selection-label{margin-bottom:5px}.selection-label{font-size:6px}.game-selection .character-options{gap:5px}.scene-caption{font-size:6px}.scene-caption>span:last-child{display:none}}
.music-button{font-size:21px;color:#8c6fac}.music-button[aria-pressed=false]{opacity:.5}.clear-bubble{margin:13px auto 9px;max-width:200px;padding:13px 18px;background:#fff0ac;color:#755878;border:2px solid #9a78a4;clip-path:polygon(0 13%,12% 8%,16% 0,30% 8%,46% 0,57% 8%,73% 0,79% 10%,95% 3%,100% 28%,94% 48%,100% 67%,91% 82%,100% 96%,78% 92%,65% 100%,49% 90%,29% 100%,20% 88%,4% 100%,9% 78%,0 66%,7% 46%);font-family:Manrope,sans-serif;font-size:24px;font-weight:800;letter-spacing:-.8px;transform:rotate(-4deg)}@media(orientation:landscape){.clear-bubble{font-size:18px;padding:8px 13px;margin:6px auto;max-width:150px}.site-header{gap:9px}.header-controls{min-width:0}.header-level select{max-width:205px}}@media(orientation:landscape) and (max-height:500px){.clear-bubble{font-size:15px;padding:5px 10px;margin:4px auto;max-width:130px}.header-level select{max-width:185px}.music-button{font-size:18px}}@media(orientation:landscape) and (max-width:600px){.header-level select{max-width:145px}#crew-toggle{max-width:99px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}

/* iPad Home Screen safe areas; preserve the original canvas and controls. */
@media(orientation:landscape){main{padding-top:max(10px,env(safe-area-inset-top));padding-right:max(22px,env(safe-area-inset-right));padding-bottom:max(10px,env(safe-area-inset-bottom));padding-left:max(22px,env(safe-area-inset-left))}}
@media(display-mode:standalone) and (orientation:portrait){main{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}}

/* Arcade score stays visible; records belong to each level on this device. */
.score-stat{white-space:nowrap}#combo{font-size:8px;color:#bd7538;margin-left:5px}.arcade-result{border-top:1px solid #d9d8c7;margin-top:10px;padding-top:10px;text-align:left}.arcade-result>strong{font:800 22px Manrope,sans-serif;color:#7954a1}.arcade-result p{max-width:420px;font-size:10px}.arcade-result form{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:9px}.arcade-result label{font-size:9px;letter-spacing:1px}.arcade-result input{width:68px;font:800 18px Manrope;text-transform:uppercase;letter-spacing:3px;text-align:center;border:1px solid #baa4cf;background:#fff9ef;border-radius:6px;padding:7px}.arcade-result form button{margin:0}.arcade-result summary{cursor:pointer;font-size:9px;font-weight:700;letter-spacing:.5px;padding:7px 0;color:#74508f}#leaderboard{list-style:none;padding:0;margin:3px 0;max-height:160px;overflow:auto}#leaderboard li{display:flex;justify-content:space-between;padding:5px 8px;font-size:11px;border-bottom:1px solid #e5e1d5}#leaderboard li:first-child{color:#976318;background:#faf0ce}#score-save-status:empty{display:none}
@media(orientation:landscape){.canvas-wrap .result{overflow:auto!important}.result-card{max-height:100%;overflow:auto}.arcade-result>strong{font-size:17px}.arcade-result p{font-size:9px}.character-row{grid-template-columns:repeat(5,minmax(0,1fr))}.game-stats{gap:12px}}
@media(orientation:landscape) and (max-height:500px){.result-card{max-width:640px}.arcade-result{margin-top:5px;padding-top:5px}.arcade-result form{margin-top:4px}.game-stats{gap:7px}.score-stat small{display:none}.character-row{grid-template-columns:repeat(5,minmax(0,1fr))}}

.score-stat{border:0;background:none;color:inherit;padding:0;font-size:inherit;letter-spacing:inherit}.scores-panel{position:absolute;z-index:25;top:12px;right:12px;width:min(360px,90%);max-height:90%;overflow:auto;padding:20px;background:#fff8ef;border:2px solid #b99ad2;border-radius:14px;box-shadow:0 10px 30px #40314635}.scores-panel h2{font:800 17px Manrope;color:#7954a1;margin:0 20px 6px 0}.scores-panel p,.scores-panel small{font-size:9px;color:#82718d;letter-spacing:.5px}.scores-panel>button{position:absolute;top:8px;right:8px;border:0;background:none;font-size:23px;color:#7954a1}.scores-panel ol{list-style:none;margin:14px 0;padding:0}.scores-panel li{display:flex;justify-content:space-between;padding:7px;border-bottom:1px solid #e0d1e5;font-size:13px}.scores-panel li:first-child{color:#976318;background:#faf0ce}@media(orientation:landscape){.game-selection.open{max-height:calc(100dvh - 70px);overflow:auto}}
/* Landscape-only phone play and safe-area aware, finger-sized controls. */
#rotate-prompt{display:none}.design-credit{display:block;font-size:8px;letter-spacing:.1px;color:#6f7a63;line-height:1.4}.edition{flex-direction:column;align-items:flex-start;gap:2px}.edition>span:not(.design-credit){display:none}.final-celebration .result{background:transparent;backdrop-filter:none}.final-celebration .result-card{background:#fff8e8ee;border:2px solid #d9a84e}.arcade-result input{width:96px;letter-spacing:2px}
@media(orientation:portrait) and (max-width:900px) and (pointer:coarse){html,body{height:100%;overflow:hidden}main{display:none}#rotate-prompt{height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;background:radial-gradient(circle,#edf1d9,#d5e1c4);color:#3d674a}#rotate-prompt>span{font-size:90px;color:#a581bf}#rotate-prompt h1{font:800 32px Manrope;letter-spacing:-1px}#rotate-prompt p{font-size:17px;line-height:1.6}}
@media(orientation:landscape) and (max-height:500px){main{padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:3px}.site-header{min-height:38px;height:38px;gap:7px}.edition{display:flex;font-size:5px;letter-spacing:.4px;max-width:190px;margin-left:5px;line-height:1.3}.design-credit{font-size:6px;max-width:165px;line-height:1.3}.header-controls{gap:5px}.header-level select{max-width:165px;padding:6px 3px;font-size:8px}#crew-toggle{font-size:8px;padding:6px}.game-topbar{height:29px;min-height:29px}.level-tag{gap:5px;font-size:7px}.level-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.game-stats{gap:7px;font-size:7px}.ability-bar{min-height:37px;padding:4px 9px}.ability-description>span{max-width:300px;font-size:7px}.ability-action button{min-height:30px;min-width:102px}.game-footer{min-height:20px;height:20px}.live-status{font-size:7px}.result-card{min-width:255px;max-width:95%;padding:9px 14px}.result-card .arcade-result label{font-size:7px}}
@media(orientation:landscape) and (max-width:740px){.edition{max-width:110px}.design-credit{font-size:5px}.header-level select{max-width:133px}.site-header .brand{font-size:14px}.seal{display:none}.ability-description{max-width:45%}.level-name{max-width:90px}}

/* Reset the original decorative-dot dimensions on the actual credit text. */
.edition{flex:1;min-width:0;margin-left:8px;margin-right:8px}.edition>.design-credit{width:auto;height:auto;max-width:100%;background:none;border-radius:0;line-height:1.3;letter-spacing:.1px;white-space:normal}
@media(orientation:landscape) and (max-height:500px){.edition>.design-credit{font-size:6px}}
@media(orientation:landscape) and (max-width:740px){.edition>.design-credit{font-size:5px}}
