.arcade-demo { display: grid; gap: 10px; color: #eaf4ee; font-size: .84rem; line-height: 1.4; --demo-accent: #a6e5dd; }
.arcade-demo * { box-sizing: border-box; }
.arcade-demo p { margin: 0; }
.demo-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 8px; }
.demo-header > span { font-size: 1rem; font-weight: 780; }
.demo-header > b { padding: 4px 7px; border: 1px solid #648580; border-radius: 20px; color: #b8ede3; font-size: .62rem; letter-spacing: .08em; background: #2b4b44; }
.arcade-demo .demo-disclaimer { font-size: .69rem; color: #b8c9bf; }
.arcade-demo .demo-instruction { padding: 10px 12px; border-left: 3px solid #b3efd9; border-radius: 8px; background: linear-gradient(110deg, #315344, #263e35); font-weight: 650; }
.demo-scene { display: grid; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #54716a; border-radius: 15px; background: radial-gradient(ellipse at 50% 0, #43685b45, transparent 75%), linear-gradient(#203d3a, #152b28); box-shadow: inset 0 1px #ffffff15, 0 4px 13px #06171455; }
.arcade-demo button { min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid #648b7b; border-radius: 9px; background: linear-gradient(#385b4e, #284539); color: #eaf6e8; font: inherit; font-size: .78rem; font-weight: 730; line-height: 1.2; cursor: pointer; touch-action: manipulation; box-shadow: inset 0 1px #ffffff18, 0 2px 0 #0d211c; }
.arcade-demo button small { display: block; margin-top: 3px; font-size: .62rem; color: #b5ccc2; font-weight: 500; }
.arcade-demo button:focus-visible { outline: 3px solid #f6d78d; outline-offset: 2px; }
.arcade-demo button:hover:not(:disabled) { border-color: #c9edb5; background: #426850; }
.arcade-demo button:disabled { opacity: .65; cursor: default; }
.arcade-demo .demo-primary { color: var(--action-ink); border-color: var(--action); background: var(--action); }
.arcade-demo .demo-primary:hover:not(:disabled) { color: var(--action-ink); border-color: #ffd098; background: #ffd098; }
.arcade-demo .demo-secondary { color: #d7e7df; background: #233b32; }
.demo-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.demo-controls.demo-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-controls.demo-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-controls.demo-four button { font-size: 1.45rem; }
.demo-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; }
.arcade-demo .demo-feedback { min-height: 42px; padding: 8px 11px; border-radius: 9px; background: #302e26; color: #e7d5ad; font-size: .76rem; border: 1px solid #756844; }
.arcade-demo .demo-feedback[data-good="true"] { background: #284736; border-color: #72985b; color: #dcf1bb; }
.demo-reward { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid #8e784a; background: linear-gradient(105deg, #4c4126, #2a3626); }
.demo-reward > span { color: #e5c985; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.demo-reward > strong { color: #ffedb4; font-size: .88rem; }
.demo-reward > small { color: #d2d4bd; font-size: .68rem; }
.demo-details { color: #bcd0c4; font-size: .72rem; }
.demo-details > summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: #d6e7cd; }
.demo-details p, .demo-details ul { margin: 7px 0; }
.demo-details ul { padding-left: 17px; }
.demo-details li + li { margin-top: 5px; }
.demo-tiers { padding: 3px 10px; background: #21372c; border-radius: 8px; }
.demo-scene > small { color: #c5d6cb; font-size: .68rem; }
.demo-lanes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.demo-lanes button { display: grid; align-content: end; gap: 7px; padding: 9px 4px; background: repeating-linear-gradient(0deg, #364e3d 0 8px, #385c43 9px 28px); border: 1px solid #62806a; }
.demo-lane-item { display: grid; justify-items: center; align-items: end; height: 86px; padding-bottom: 7px; }
.demo-lane-item svg { width: 65px; height: 75px; filter: drop-shadow(0 3px 3px #0a2426aa); }
.demo-lanes b { font-size: .7rem; padding-top: 4px; }
.demo-catch-line { position: absolute; inset: auto 5px 30px; border-top: 2px dashed #edecbf; padding-top: 1px; font-size: .51rem; text-align: center; color: #f3e7b4; pointer-events: none; }
.demo-trail-pebble { width: 24px; height: 11px; border-radius: 40%; background: #60715b; box-shadow: inset 4px 3px #86927a; transform: rotate(-20deg); }
.demo-object-stage { display: grid; position: relative; justify-items: center; gap: 1px; padding-block: 2px; overflow: hidden; border-radius: 9px; background: radial-gradient(ellipse at 50% 90%, #8dd1b62b, transparent 70%); }
.demo-object-stage > svg { width: 90px; height: 90px; filter: drop-shadow(0 4px 4px #071d23aa); }
.demo-object-stage > b { color: #edddbb; font-size: .74rem; }
.demo-jump-arc { position: absolute; width: 65%; height: 65px; border: 2px dashed #b8e3d176; border-bottom: 0; border-radius: 90% 90% 0 0; top: 10px; pointer-events: none; }
.demo-memory-cue { min-height: 24px; text-align: center; font-weight: 750; color: #f2d898; }
.demo-symbols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.demo-symbols button { min-height: 75px; padding: 6px; }
.demo-symbols b { display: block; font-size: 1.65rem; color: #f3d99c; }
.demo-symbols button[data-lit="true"] { background: #ceeeb5; border-color: #f4f9d8; box-shadow: 0 0 20px #d5f6bb50; opacity: 1; }
.demo-symbols button[data-lit="true"] b { color: #294536; }
.demo-packing-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.5fr); gap: 8px; align-items: center; font-size: .7rem; color: #d9d8eb; }
.demo-packing-head > div { display: flex; gap: 4px; }
.demo-packing-head button { padding: 6px 5px; font-size: .65rem; }
.demo-piece { display: grid; grid-template-columns: repeat(2, 17px); grid-template-rows: repeat(2, 17px); gap: 2px; }
.demo-piece i { border: 1px solid #ffdfa9; border-radius: 3px; background: #d9a66c; box-shadow: inset 0 2px #f5c68c; }
.demo-pack-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.demo-pack-grid button { min-height: 44px; padding: 2px; border-color: #696479; background: #2f3443; font-size: .83rem; }
.demo-pack-grid button[data-target="true"] { border: 2px dashed #d9b787; background: #4a4339; }
.demo-pack-grid button[data-filled="true"] { background: #dcaa70; border-style: solid; color: #483523; box-shadow: inset 0 3px #f2ce98; }
.demo-rhythm-stage { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 11px; min-height: 110px; color: #bed7d0; background: linear-gradient(100deg, #214a51, #3f3a54); border-radius: 10px; }
.demo-beat-ring { width: 80px; height: 80px; border: 3px dashed #7ca7a8; border-radius: 50%; transform: scale(.84); }
.demo-beat-ring > svg { width: 100%; height: 100%; }
.demo-rhythm-stage > b { max-width: 100px; font-size: .75rem; }
.demo-rhythm-stage[data-ready="true"] { color: #f5e6b4; }
.demo-rhythm-stage[data-ready="true"] .demo-beat-ring { transform: none; border-style: solid; border-color: #e6d796; box-shadow: 0 0 0 6px #fff5a510; }
.demo-burrows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.demo-burrows button { display: grid; justify-items: center; align-content: end; min-height: 88px; padding: 1px 3px 4px; background: linear-gradient(#55745055, #374d2b); border-color: #72825d; }
.demo-burrows svg { width: 65px; height: 65px; }
.demo-burrows small { margin: 0; }
.demo-empty-hole { width: 49px; height: 22px; margin: 20px 0 10px; border-radius: 50%; background: #172e23; border-top: 6px solid #7a7550; }
.demo-compass-stage { display: grid; justify-items: center; gap: 7px; font-size: .72rem; }
.demo-compass-stage > span b { color: #f6d997; }
.demo-compass { position: relative; width: 122px; height: 122px; border: 5px solid #b89c68; border-radius: 50%; background: radial-gradient(circle, #365e61, #18373d 70%); box-shadow: 0 4px 10px #091f29aa, inset 0 0 0 2px #e9cf8a; }
.demo-compass > span { position: absolute; color: #e7e4bc; font-size: .82rem; font-weight: 800; }
.demo-compass-n { right: 9px; top: 45px; color: #ffb28e !important; }
.demo-compass-e { bottom: 6px; left: 49px; }
.demo-compass-s { left: 7px; top: 45px; }
.demo-compass-w { top: 5px; left: 48px; }
.demo-compass > i { position: absolute; width: 70px; height: 20px; left: 21px; top: 46px; clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%); background: linear-gradient(90deg, #e0d9b2 50%, #ed977b 50%); }
.demo-balance-stage { position: relative; display: grid; justify-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; background: linear-gradient(165deg, #547887, #1d3743 65%); overflow: hidden; }
.demo-balance-stage::before { content: ''; position: absolute; inset: 40% -5% 19%; background: #648686; clip-path: polygon(0 100%, 42% 10%, 50% 60%, 74% 0, 100% 100%); opacity: .7; }
.demo-wind { align-self: start; font-size: .72rem; color: #bde9f0; }
.demo-ridge-runner { position: relative; color: #f6dca3; font-size: 2.6rem; font-weight: 750; line-height: 1; text-shadow: 0 3px #1b3643; }
.demo-ridge-runner > svg { display: block; width: 56px; height: 42px; filter: drop-shadow(0 2px 2px #112f42); }
.demo-balance-stage > b { z-index: 1; color: #e8ecc5; font-size: .74rem; }
.demo-balance-meter { width: 100%; height: 12px; border-radius: 15px; overflow: hidden; background: #142d3a; border: 1px solid #82a7a4; z-index: 1; }
.demo-balance-meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #81d7d8, #d8e59c); }
.demo-search-target { display: flex; align-items: center; justify-content: center; gap: 9px; color: #ddd5f2; font-size: .75rem; }
.demo-search-target strong { font-size: 1.8rem; color: #f6ca8b; }
.demo-search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.demo-search-grid button { min-height: 47px; padding: 4px; color: #ecd3a8; font-size: 1.6rem; background: radial-gradient(circle at 50% 40%, #53617b, #28384b); border-color: #7184a3; }
@media (max-width: 360px) {
  .arcade-demo { gap: 8px; }
  .demo-scene { padding: 7px; }
  .demo-header > span { font-size: .9rem; }
  .arcade-demo .demo-instruction { font-size: .78rem; padding: 8px; }
  .demo-controls button { padding: 6px 4px; font-size: .7rem; }
  .demo-packing-head { gap: 4px; grid-template-columns: minmax(0, 1fr) 39px minmax(0, 1.5fr); }
  .demo-actions button { padding: 8px 5px; }
}
.arcade-demo [data-demo-action="hold"] { touch-action: none; user-select: none; -webkit-touch-callout: none; }
@media (prefers-reduced-motion: reduce) { .arcade-demo *, .arcade-demo *::before { animation: none !important; transition: none !important; } }
