/* Terminal hardware: original flat faces, with shallow solid edges. */
.setup-entry{
  box-shadow:inset 0 1px #c4f19d08,0 2px 0 #24351a,0 3px 0 #010301,0 7px 9px -5px #000c;
  text-decoration:none;
}
.setup-entry:hover{
  box-shadow:inset 0 1px #c4f19d0c,0 2px 0 #314724,0 3px 0 #010301,0 7px 9px -5px #000c;
}
.setup-entry:active{
  transform:translateY(2px);
  box-shadow:inset 0 1px #0005,0 1px 0 #172311,0 3px 4px -3px #000c;
}

/* Keep text links and progress navigation flat. Only framed actions get a base. */
.btn:where(:not(.footer-controls *, .landing-status *)),
.landing-status .btn-primary{
  --control-edge:#2d4320;
  --control-top:#c4f19d12;
  box-shadow:inset 0 1px var(--control-top),inset 0 -1px #0003,0 2px 0 var(--control-edge),0 3px 0 #010301,0 6px 8px -4px #000b;
}
.btn-primary:where(:not(.footer-controls *, .landing-status *)),
.landing-status .btn-primary{
  --control-edge:#527b35;
  --control-top:#e0ffbd60;
}
.btn:where(:not(.footer-controls *, .landing-status *)):hover:not(:disabled):not([aria-disabled=true]),
.landing-status .btn-primary:hover:not(:disabled):not([aria-disabled=true]){
  box-shadow:inset 0 1px var(--control-top),inset 0 -1px #0003,0 2px 0 var(--control-edge),0 3px 0 #010301,0 6px 8px -4px #000b;
}
.btn:where(:not(.footer-controls *, .landing-status *)):active:not(:disabled):not([aria-disabled=true]),
.landing-status .btn-primary:active:not(:disabled):not([aria-disabled=true]){
  transform:translateY(2px);
  box-shadow:inset 0 1px #0005,0 1px 0 var(--control-edge),0 3px 4px -3px #000b;
}
.btn:disabled,.btn[aria-disabled=true]{box-shadow:none}

/* The opaque window keeps its original border, content and scrolling behavior. */
dialog{
  box-shadow:0 3px 0 #2b3d20,0 4px 0 #010301,0 18px 36px -12px #000c;
}

/* One quiet sweep on the public start action; the label stays above the light. */
.btn-start{position:relative;isolation:isolate;overflow:hidden}
.btn-start>.start-label{position:relative;z-index:2;display:inline-flex;align-items:center;gap:8px}
.btn-start::before,.btn-start::after{content:"";position:absolute;pointer-events:none;z-index:1;opacity:0}
.btn-start::before{
  inset:-1px auto -1px -60%;width:42%;
  background:linear-gradient(110deg,transparent 10%,#f4ffe51a 35%,#f4ffe580 50%,#f4ffe51a 65%,transparent 90%);
  animation:start-light-sweep 12s ease-in-out 1.5s infinite;
}
.btn-start::after{
  top:5px;right:14px;width:16px;height:16px;
  background:#f4ffe5;
  clip-path:polygon(50% 0,59% 39%,100% 50%,59% 60%,50% 100%,40% 60%,0 50%,40% 39%);
  animation:start-light-glint 12s ease-in-out 1.5s infinite;
}
@keyframes start-light-sweep{
  0%,2%{transform:translateX(0);opacity:0}
  4%{opacity:.18}
  16%{opacity:.5}
  20%{transform:translateX(295%);opacity:.25}
  23%,100%{transform:translateX(410%);opacity:0}
}
@keyframes start-light-glint{
  0%,18%,25%,100%{transform:scale(.2);opacity:0}
  20%{transform:scale(1);opacity:.8}
  22%{transform:scale(.55);opacity:.25}
}
body:not([data-review-rain=active]) .btn-start::before,
body:not([data-review-rain=active]) .btn-start::after{visibility:hidden;animation-play-state:paused}
@media(prefers-reduced-motion:reduce){
  .setup-entry:active,.btn:active{transform:none!important}
  .btn-start::before,.btn-start::after{animation:none;display:none}
}
@media(forced-colors:active){
  .setup-entry,.setup-entry:hover,.setup-entry:active,.btn,dialog{box-shadow:none!important}
  .btn-start::before,.btn-start::after{display:none}
}
