.page-demo2 .back-nav{margin-bottom:.5rem}.page-demo2 .hero-header{padding:.65rem 0 .75rem}.page-demo2 .hero-header h1{margin-bottom:.35rem;font-size:clamp(1.25rem,4.2vw,1.7rem);line-height:1.25}.page-demo2 .hero-header .tag{padding:.12rem .45rem;font-size:.65rem}.page-demo2 .hero-header p{margin-bottom:0;font-size:clamp(.78rem,2.8vw,.9rem);line-height:1.5}@media(max-width:600px){.page-demo2 .back-nav{margin-bottom:.35rem}.page-demo2 .hero-header{padding:.25rem 0 .5rem}.page-demo2 .hero-header p{display:none}}.demo2-game{--demo2-width: min(100%, 420px);display:flex;flex-direction:column;gap:.75rem;width:100%;max-width:var(--demo2-width);margin:1rem auto 2rem;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.demo2-play{display:flex;flex-direction:column;gap:.65rem;min-width:0}.demo2-side{display:flex;flex-direction:column;gap:.75rem;min-width:0}.demo2-settings--mobile{display:flex}.demo2-settings{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.demo2-settings-note{flex:1 1 auto;min-width:0;margin:0;font-size:clamp(.68rem,2.6vw,.78rem);line-height:1.4;color:var(--pico-muted-color, #6b7280)}.demo2-sound{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-height:44px;margin:0;padding:.35rem .9rem;font-size:clamp(.72rem,2.8vw,.82rem);font-weight:700;color:var(--pico-color, #1f2937);background:var(--pico-card-background-color, #fffdf8);border:1px solid var(--pico-muted-border-color, #cbd5e1);border-radius:999px;box-shadow:none;touch-action:manipulation}.demo2-sound.is-muted{color:var(--pico-muted-color, #6b7280);background:#eef1f6}.demo2-hud{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:.4rem;padding:.45rem .6rem;color:#f2ead8;font-size:clamp(.7rem,2.7vw,.8rem);font-variant-numeric:tabular-nums;white-space:nowrap;background:#0a0816;border:1px solid #4c4066;border-radius:8px}.demo2-hud-item{min-width:0;overflow:hidden;text-overflow:ellipsis}.demo2-hud b{font-weight:700;color:#f2da92}.demo2-hud-hp b{color:#9ee6a0}.demo2-hud-mp b{color:#8ec8f0}.demo2-hud-gold{text-align:right}.demo2-hud-gold b{color:#ffd76e}.demo2-screen{position:relative;width:100%;aspect-ratio:3 / 4;overflow:hidden;background:#05040a;border:2px solid #241d38;border-radius:4px;box-shadow:0 0 26px #5e48a047}.demo2-screen canvas{display:block;width:100%;height:100%;background:#000;image-rendering:pixelated;image-rendering:crisp-edges}.demo2-scan{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#00000038 0 1px,#0000 1px 3px);opacity:.22;mix-blend-mode:multiply}.demo2-status{min-height:1.5em;margin:0;text-align:center;font-size:clamp(.74rem,2.8vw,.82rem);line-height:1.5;color:var(--pico-muted-color, #6b7280)}.demo2-touch{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;padding:.7rem .6rem .6rem;background:#f7f4ec;background:color-mix(in srgb,var(--pico-card-background-color, #fff) 86%,#e9e2d2);border:1px solid var(--pico-card-border-color, #d8d0bf);border-radius:16px;touch-action:none}.demo2-dpad{--pad: clamp(44px, 12.5vw, 56px);display:grid;grid-template-columns:repeat(3,var(--pad));grid-template-rows:repeat(3,var(--pad));gap:4px;flex:0 0 auto}.demo2-dpad-button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;margin:0;padding:0;font-size:clamp(1rem,4vw,1.25rem);font-weight:700;line-height:1;color:#fff;background:#221b3c;border:1px solid #b9a7e8;border-radius:10px;box-shadow:0 3px #0b0814;touch-action:none;-webkit-tap-highlight-color:transparent}.demo2-dpad-up{grid-column:2;grid-row:1}.demo2-dpad-left{grid-column:1;grid-row:2}.demo2-dpad-down{grid-column:2;grid-row:2}.demo2-dpad-right{grid-column:3;grid-row:2}.demo2-actions{display:flex;align-items:flex-end;gap:.6rem;flex:0 0 auto;padding-bottom:.2rem}.demo2-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.05rem;margin:0;padding:0;color:#fff;border:2px solid;border-radius:50%;box-shadow:0 4px #00000059;touch-action:none;-webkit-tap-highlight-color:transparent}.demo2-action-a{width:clamp(60px,17vw,76px);height:clamp(60px,17vw,76px);background:#c84040;border-color:#7a2020}.demo2-action-b{width:clamp(46px,14vw,58px);height:clamp(46px,14vw,58px);background:#3a3a52;border-color:#1f1f2e}.demo2-action-key{font-size:clamp(1.05rem,4.2vw,1.35rem);font-weight:700;line-height:1}.demo2-action-label{font-size:clamp(.48rem,1.9vw,.58rem);line-height:1.1;opacity:.9}.demo2-action-a .demo2-action-key{font-size:clamp(1.3rem,5vw,1.7rem)}.demo2-dpad-button:active,.demo2-action:active,.demo2-dpad-button.is-pressed,.demo2-action.is-pressed{transform:translateY(3px);box-shadow:0 1px #00000059;filter:brightness(1.12)}.demo2-dpad-button:focus-visible,.demo2-action:focus-visible,.demo2-sound:focus-visible{outline:3px solid #f4d888;outline-offset:2px}.demo2-side-sound{display:none;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem .85rem;background:var(--pico-card-background-color, #fffdf8);border:1px solid var(--pico-card-border-color, #d8d0bf);border-radius:12px}.demo2-side-kicker{margin:0;font-size:.68rem;font-weight:700;letter-spacing:.08em;color:var(--pico-muted-color, #6b7280)}.demo2-side-sound-note{margin:.15rem 0 0;font-size:.72rem;line-height:1.4;color:var(--pico-muted-color, #6b7280)}.demo2-info{padding:.9rem 1rem;background:var(--pico-card-background-color, #fffdf8);border:1px solid var(--pico-card-border-color, #d8d0bf);border-radius:12px}.demo2-info h2{margin:0 0 .5rem;font-size:clamp(1rem,3vw,1.15rem);line-height:1.35}.demo2-info h3{margin:1rem 0 .4rem;font-size:clamp(.86rem,2.8vw,.95rem)}.demo2-info p{margin:0 0 .6rem;font-size:clamp(.78rem,2.8vw,.86rem);line-height:1.65}.demo2-info ul{margin:0 0 .7rem;padding-left:1.1rem}.demo2-info li{margin-bottom:.3rem;font-size:clamp(.76rem,2.7vw,.84rem);line-height:1.55}.demo2-info kbd{font-size:.9em}.demo2-note{margin:0 0 .45rem;font-size:.92em;line-height:1.55;color:var(--pico-muted-color, #6b7280)}@media(min-width:900px){.demo2-game{display:grid;grid-template-columns:minmax(0,520px) minmax(320px,1fr);align-items:start;gap:1.5rem 2rem;max-width:1040px;margin-top:1.25rem}.demo2-settings--mobile{display:none}.demo2-side-sound{display:flex}.demo2-side{gap:1rem}.demo2-touch{padding:.9rem .85rem .8rem}.demo2-dpad{--pad: clamp(54px, 5.2vw, 64px)}.demo2-action-a{width:clamp(72px,6.5vw,86px);height:clamp(72px,6.5vw,86px)}.demo2-action-b{width:clamp(56px,5.2vw,66px);height:clamp(56px,5.2vw,66px)}.demo2-info p{font-size:.88rem}.demo2-info li{font-size:.86rem}}@media(max-width:899px){.demo2-side{margin-top:.15rem}}@media(prefers-reduced-motion:reduce){.demo2-dpad-button,.demo2-action,.demo2-sound{transition:none!important}.demo2-dpad-button:active,.demo2-action:active,.demo2-dpad-button.is-pressed,.demo2-action.is-pressed{transform:none}}
