.demolition-experience {
  --demo-ink: #f1e5d0; --demo-muted: #afc0b2; --demo-mint: #b8d8b9;
  --demo-line: #d4d9b52a; --demo-peach: #efb49a;
  max-width: 1180px; color: var(--demo-ink);
}
.demolition-experience [hidden] { display: none !important; }
.demolition-experience button, .demolition-experience select { font: inherit; }
.demolition-experience button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.demolition-experience button:disabled { opacity: .4; cursor: default; }
.demolition-experience :is(button, select, summary, .demo-stage):focus-visible { outline: 2px solid var(--demo-peach); outline-offset: 3px; }
.demo-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.demo-title { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 20px; row-gap: 6px; }
.demo-eyebrow { font-size: 9px; letter-spacing: .18em; color: var(--demo-peach); }
.demo-title h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 450; letter-spacing: .05em; margin: 0; }
.demo-title h1 span { color: var(--demo-peach); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 2px; }
.demo-actions button { min-height: 40px; background: transparent; color: var(--demo-muted); border: 0; border-radius: 9px; padding: 8px 10px; font-size: 11px; }
.demo-actions button:hover:not(:disabled) { color: var(--demo-ink); background: #e4d4b610; }
.demo-rooms { display: flex; gap: 8px; margin-bottom: 13px; }
.demo-rooms button { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; background: #11262755; color: var(--demo-muted); border: 1px solid var(--demo-line); border-radius: 13px; font-size: 12px; text-align: left; }
.demo-rooms button > span { color: #829d8d; font: 13px Georgia, serif; }
.demo-rooms button > i { margin-left: auto; font-style: normal; opacity: .3; }
.demo-rooms button[aria-pressed="true"] { background: #c2d9b818; border-color: #bcd8b473; color: #e5ebcf; }
.demo-rooms button[aria-pressed="true"] > span, .demo-rooms button[aria-pressed="true"] > i { color: var(--demo-mint); opacity: 1; }
.demo-board { overflow: hidden; border: 1px solid var(--demo-line); border-radius: 23px; background: #172f31; box-shadow: 0 15px 60px #04161833; }
.demo-room-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 47px; padding: 8px 20px; border-bottom: 1px solid #d4d9b514; background: #13292be8; }
.demo-room-copy { font-size: 11px; color: var(--demo-muted); margin: 0; line-height: 1.65; }
.demo-views { flex-shrink: 0; display: flex; padding: 3px; border: 1px solid #d4d9b51d; border-radius: 20px; }
.demo-views button { min-height: 30px; padding: 5px 12px; border: 0; border-radius: 18px; font-size: 10px; color: #9ab0a4; background: transparent; }
.demo-views button[aria-pressed="true"] { background: #c6d4b920; color: #e3dfc6; }
.demo-stage { position: relative; width: 100%; height: clamp(350px, 48vw, 550px); isolation: isolate; background: radial-gradient(ellipse at 50% 60%, #658276, #233e3f 76%); touch-action: none; user-select: none; cursor: crosshair; outline-offset: -4px !important; }
.demo-canvas { display: block; width: 100%; height: 100%; }
/* Native 32px cursors use the same client coordinates as the scene raycast.
   Hammer: striking face at (5, 9). Bowling ball: centre at (16, 16).
   Read the existing tool selection so mouse and keyboard changes are immediate.
   While the canvas is pressed, its pointer-capture host shares the cursor.
   Other controls keep their own cursors; no overlay or listeners are needed. */
.demolition-experience[data-phase="playing"]:has(.demo-tools > button[data-tool="hammer"][aria-pressed="true"]) :is(.demo-canvas, .demo-stage:has(> .demo-canvas:active)) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='metal' x2='.3' y2='1'%3E%3Cstop stop-color='%23f8eed8'/%3E%3Cstop offset='1' stop-color='%239db6b0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='m13 12 6-2 9 17q1 2-1 3l-2 1q-2 0-3-2Z' fill='%23eab088' stroke='%23163236' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='m21 24 5-2m-3 6 5-2' stroke='%23a4694d' stroke-width='1.5'/%3E%3Cpath d='M5 3h18q4 0 4 4v5q0 3-4 3H5Z' fill='url(%23metal)' stroke='%23163236' stroke-width='1.5' stroke-linejoin='round'/%3E%3Crect x='2.5' y='3' width='5' height='12' rx='1.5' fill='%23ebf0df' stroke='%23163236' stroke-width='1.5'/%3E%3Cpath d='M10 5h12' stroke='%23fff8e9' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='9' r='1.2' fill='%23325b5b'/%3E%3C/svg%3E") 5 9, crosshair;
}
.demolition-experience[data-phase="playing"]:has(.demo-tools > button[data-tool="ball"][aria-pressed="true"]) :is(.demo-canvas, .demo-stage:has(> .demo-canvas:active)) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='ball' cx='.32' cy='.26' r='.8'%3E%3Cstop stop-color='%239fccc0'/%3E%3Cstop offset='.6' stop-color='%23437678'/%3E%3Cstop offset='1' stop-color='%231c3b48'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='13' fill='url(%23ball)' stroke='%23142e35' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23f5e7c5' stroke-width='1'/%3E%3Cpath d='M8 12q1-4 5-5' fill='none' stroke='%23e1eee0' stroke-opacity='.7' stroke-width='1.5' stroke-linecap='round'/%3E%3Cg fill='%23162f39' stroke='%23c1d8c6' stroke-width='.65'%3E%3Ccircle cx='18' cy='8.5' r='1.8'/%3E%3Ccircle cx='22.5' cy='11.5' r='1.8'/%3E%3Ccircle cx='19' cy='12.5' r='1.8'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='1.3' fill='%23fff0ce' stroke='%2323464e' stroke-width='.7'/%3E%3C/svg%3E") 16 16, crosshair;
}
.demo-room-foot { min-height: 48px; padding: 10px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #112a2dd9; border-top: 1px solid #d4d9b518; font-size: 10px; color: var(--demo-muted); }
.demo-selected { margin: 0; flex: 1 1 210px; color: #e0ddc7; }
.demo-charge { display: flex; gap: 10px; align-items: center; }
.demo-charge > span { min-width: 87px; text-align: right; }
.demo-charge progress { width: 74px; height: 5px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 5px; background: #c3d3ac17; color: var(--demo-peach); overflow: hidden; }
.demo-charge progress::-webkit-progress-bar { background: #c3d3ac17; border-radius: 5px; }
.demo-charge progress::-webkit-progress-value { background: var(--demo-peach); border-radius: 5px; }
.demo-charge progress::-moz-progress-bar { background: var(--demo-peach); border-radius: 5px; }
.demo-tally { color: #a5bba6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-goals { display: flex; align-items: center; gap: 20px; margin: 11px 0 15px; padding: 12px 16px; border: 1px solid #c2d6b61a; border-radius: 12px; background: #10282b33; }
.demo-goal-heading { flex-shrink: 0; color: #c8d5b8; font-size: 11px; }
.demo-goal-heading small { display: block; color: #829e90; font-size: 9px; margin-top: 4px; letter-spacing: .1em; }
.demo-goal-items { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; }
.demo-goal { display: flex; gap: 10px; color: #9fb4a4; font-size: 10px; align-items: center; }
.demo-goal small { white-space: nowrap; font-size: 10px; color: #829c8c; font-variant-numeric: tabular-nums; }
.demo-goal.is-done, .demo-goal.is-done small { color: #d0dea5; }
.demo-goals > button { flex-shrink: 0; min-height: 38px; padding: 7px 12px; color: #e4d7b9; background: #e1c39a18; border: 1px solid #e1c39a35; border-radius: 8px; font-size: 11px; }
.demo-dock { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; border: 1px solid var(--demo-line); border-radius: 17px; background: #142c2dcc; padding: 12px; }
.demo-tools { display: flex; flex: 1 1 410px; gap: 6px; }
.demo-tools button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 10px 13px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: #adbfae; text-align: left; font-size: 12px; }
.demo-tools button[aria-pressed="true"] { color: #f0ddc4; background: #e3ba9213; border-color: #dfb58e47; }
.demo-tool-mark { color: #deb297; font-size: 28px; line-height: 1; min-width: 28px; text-align: center; }
.demo-tools small { display: block; margin-top: 6px; color: #8fa799; font-size: 9px; }
.demo-tools kbd { align-self: flex-start; border: 1px solid #c4d3b326; border-radius: 4px; padding: 1px 4px; color: #8ea799; font: 9px ui-monospace, monospace; }
.demo-accessible { display: flex; flex: 1 1 325px; align-items: center; gap: 8px; border-left: 1px solid var(--demo-line); padding: 3px 3px 3px 16px; }
.demo-accessible label { font-size: 10px; color: #a6b8a7; }
.demo-accessible select { min-width: 0; width: 130px; flex: 1; min-height: 42px; border: 1px solid #bdd3b335; background: #1c3637; color: #dbe2c9; border-radius: 8px; padding: 7px; font-size: 11px; }
.demo-strike { flex-shrink: 0; min-height: 44px; padding: 10px 15px; border: 1px solid #e4c3a47a; border-radius: 9px; background: #e3bca0; color: #263e3b; font-size: 12px !important; }
.demo-caption { display: flex; align-items: flex-start; gap: 20px; margin-top: 12px; color: #9db4a5; font-size: 11px; line-height: 1.8; }
.demo-status { flex: 1; margin: 0; min-height: 2em; }
.demo-caption details { flex: 0 1 310px; max-width: 50%; }
.demo-caption summary { cursor: pointer; color: #bdc9b5; text-align: right; }
.demo-caption details p { margin: 10px 0 0; color: #9ab3a1; }
.demo-paused { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; background: #102b2ccf; backdrop-filter: blur(6px); cursor: default; }
.demo-paused > span { font-size: 10px; letter-spacing: .18em; color: var(--demo-peach); }
.demo-paused h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 30px; font-weight: 400; }
.demo-paused p { margin: 0; color: var(--demo-muted); font-size: 12px; }
.demo-paused button { min-height: 44px; margin-top: 7px; padding: 12px 25px; border: 1px solid #e6c7a955; border-radius: 24px; background: #d8c5a61c; color: #f0dfc0; font-size: 12px; }
.demo-fallback { position: absolute; inset: 0; overflow-y: auto; padding: 18px; touch-action: pan-y; cursor: default; background: #1b3637; }
.demo-is-fallback .demo-stage { touch-action: pan-y; }
.demo-fallback > p { font-size: 11px; color: #c7d7bd; margin: 0 0 15px; }
.demo-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 9px; }
.demo-props button { min-height: 99px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 1px solid #c9d8b728; border-radius: 12px; background: #91bda814; color: #d8e1c8; touch-action: pan-y; }
.demo-props button[aria-pressed="true"] { border-color: #e8bc9990; background: #e8bc9914; }
.demo-props button > span { font-size: 24px; color: #dcc19b; line-height: 1.15; }
.demo-props strong { font-weight: 400; font-size: 11px; }
.demo-props small { font-size: 9px; color: #9cb79f; }
@media (max-width: 760px) {
  .demo-heading { gap: 10px; margin-bottom: 11px; }
  .demo-title { column-gap: 12px; }
  .demo-eyebrow { font-size: 8px; }
  .demo-actions { margin-left: auto; }
  .demo-actions button { padding: 7px 8px; font-size: 10px; }
  .demo-rooms { gap: 5px; margin-bottom: 10px; }
  .demo-rooms button { padding: 10px 11px; font-size: 11px; gap: 7px; border-radius: 10px; }
  .demo-room-bar { padding: 8px 13px; gap: 10px; }
  .demo-room-copy { font-size: 10px; }
  .demo-views button { padding: 5px 9px; }
  .demo-board { border-radius: 17px; }
  .demo-stage { height: clamp(340px, 62vw, 460px); }
  .demo-room-foot { padding: 10px 13px; gap: 8px 12px; }
  .demo-selected { flex-basis: 100%; }
  .demo-charge > span { text-align: left; }
  .demo-tally { margin-left: auto; }
  .demo-goals { gap: 12px; padding: 10px 12px; flex-wrap: wrap; }
  .demo-goal-heading { align-self: flex-start; }
  .demo-goal-items { gap: 7px 12px; flex-basis: 250px; }
  .demo-goal { flex: 1 1 200px; justify-content: space-between; }
  .demo-dock { padding: 8px; gap: 8px; }
  .demo-tools { flex-basis: 100%; }
  .demo-tools button { min-height: 60px; gap: 8px; padding: 8px; }
  .demo-accessible { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--demo-line); padding: 12px 4px 4px; }
  .demo-caption { gap: 12px; font-size: 10px; }
}
@media (max-width: 400px) {
  .demo-title { justify-content: space-between; width: 100%; }
  .demo-title h1 { font-size: 27px; }
  .demo-actions { width: 100%; justify-content: space-between; }
  .demo-rooms button { padding: 9px 7px; gap: 5px; font-size: 10px; }
  .demo-rooms button > i { display: none; }
  .demo-room-bar { flex-wrap: wrap; gap: 7px; }
  .demo-room-copy { flex-basis: 100%; }
  .demo-views { margin-left: auto; }
  .demo-stage { height: 340px; }
  .demo-tools button { font-size: 11px; gap: 5px; }
  .demo-tool-mark { min-width: 21px; font-size: 24px; }
  .demo-tools kbd { display: none; }
  .demo-accessible label { display: none; }
  .demo-caption { flex-wrap: wrap; }
  .demo-caption details { flex-basis: 100%; max-width: 100%; }
  .demo-caption summary { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .demolition-experience *, .demolition-experience *::before, .demolition-experience *::after { scroll-behavior: auto; transition: none !important; animation: none !important; }
}
