/* css/scenes/peak.css · scene 5 "peak" and the sign slot (SPEC 2.5, 4.10) · prefix peak-
   Owned by WP4 (name-in-lights). The sign is one canvas inside a real button; every glow is
   drawn in the canvas, so nothing here animates a filter, shadow or layout property. */

/* The sign: <button class="sign" data-action="encore"> around the one canvas (.shot-table__sign is WP4's slot).
   Disabled + aria-hidden until `settled`, so the dark sign behind the cake is neither a control
   nor a target: taps pass through to the table shot (the cake's carry-the-flame gesture). */
.shot-table__sign .sign{position:relative;display:block;flex:none;margin:0;padding:0;border:0;border-radius:0;background:none;
  line-height:0;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.shot-table__sign .sign:disabled{cursor:default;pointer-events:none}
.shot-table__sign .sign[aria-disabled="true"]{cursor:default}
.shot-table__sign .peak-canvas{display:block;max-width:none}
.shot-table__sign .sign:focus{outline:none}
/* the focus ring hugs the letters (--peak-ring-* from peak.js), 4 px outside them (3.4 rule 3) */
.shot-table__sign .sign:focus-visible::after{content:"";position:absolute;pointer-events:none;
  left:var(--peak-ring-x,0px);top:var(--peak-ring-y,0px);width:var(--peak-ring-w,100%);height:var(--peak-ring-h,100%);
  border-radius:var(--r-focus);outline:var(--focus-ring);outline-offset:4px}

/* The title: real text in a heading, laid across the top of the letters. peak.js places it
   from the sign's on-screen rect (--peak-title-l/-w/-b); it stays laid out but invisible until
   it lands, so its box is part of the confetti clear zone from the clunk on. */
.scene-ui--peak .peak-title{position:absolute;z-index:1;left:var(--peak-title-l,0px);width:var(--peak-title-w,100%);
  bottom:var(--peak-title-b,62%);padding:0 var(--gutter);visibility:hidden;pointer-events:none;
  transform-origin:50% 100%;scale:var(--peak-title-k,1)}   /* fit on short screens only (peak.js); 1 everywhere else */
.scene-ui--peak .peak-title.is-on{visibility:visible}
/* landscape phones: the vw-driven display size (~62 px at 844 × 390) would wrap the title to two lines
   in a 390 px tall room; sized to the height it stays one line above the sign */
@media (orientation:landscape) and (max-height:500px){
  .scene-ui--peak .peak-title{font-size:clamp(1.75rem, 10dvh, 3rem)}
}

@media (forced-colors:active){
  .shot-table__sign .sign:focus-visible::after{outline-color:Highlight}
}
