[data-scene="tower"]{--paper:#f2f5e3;--ink:#2e3a26;--ink-2:#4b5740;--ink-3:#56624a;--rule:#d8e1c0;--well:#e5ebd1;--paint-1:#b9d991;--paint-2:#f2d36b;--paint-3:#e4917a;--display:"Urbanist"}

/* The house takes most of the panel: beside the text on a wide screen, above it on a narrow or
   upright one.
   Without the script the still images stand where the house would be; once the wooden house's
   pieces have loaded (is-mounted on the panel) the canvas replaces them and the button appears.
   With scripts the button keeps its room until then, so the panel is as tall as it will be when
   stage.js measures it, and does not grow when the canvas comes in. */
.kc-scene[data-scene="tower"]{flex-wrap:nowrap;align-items:flex-end}
[data-scene="tower"] .kc-scene__text{flex:2 1 0;min-width:0}
[data-scene="tower"] .kc-scene__piece,[data-scene="tower"] .kc-scene__still{position:relative;flex:3 1 0;align-self:stretch;min-width:0}
[data-scene="tower"] .kc-scene__still{align-items:center;justify-content:center;gap:8px}
[data-scene="tower"] .kc-scene__still img{max-width:calc(50% - 4px);height:auto}
[data-scene="tower"].is-mounted .kc-scene__still,[data-scene="tower"]:not(.is-mounted) .kc-scene__piece,:root:not(.kc-js) [data-scene="tower"] [data-kc="plant"]{display:none}
[data-scene="tower"]:not(.is-mounted) [data-kc="plant"]{visibility:hidden}
[data-scene="tower"] [data-kc="plant"]{align-self:flex-start}
[data-scene="tower"] [data-kc="plant"]:disabled{color:var(--ink-3);text-decoration:none;cursor:default}
/* While the view is close on the house the meadow runs past the canvas; its edges fade out so
   nothing is cut off sharply. The fade is narrower than the scene's 24px margin round the build. */
.kc-tower{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:pan-y;-webkit-mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent),linear-gradient(to bottom,transparent,#000 16px,#000 calc(100% - 16px),transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent),linear-gradient(to bottom,transparent,#000 16px,#000 calc(100% - 16px),transparent);mask-composite:intersect}
/* On the live stage of a wide screen the piece runs on through the right margin. The padding
   keeps the text as wide as it is in the column, and scene.js fits the house to the content box,
   so only the meadow grows into the margin. */
@media not all and (max-height:560px){.kc-live [data-scene="tower"] .kc-scene__piece{margin-right:calc(-1 * var(--bleed));padding-right:var(--bleed)}}
@media (max-width:759px),(max-aspect-ratio:1/1){
  .kc-scene[data-scene="tower"]{flex-direction:column;align-items:stretch}
  [data-scene="tower"] .kc-scene__text{flex:none}
  [data-scene="tower"] .kc-scene__piece,[data-scene="tower"] .kc-scene__still{order:-1;flex:1 1 0;min-height:160px}
}
