/* Align Hero, 80-column punch card skin (hero suite kit 1.0.0): card stock #EFE6CC on a desk #3A3832, ink #2A2823,
   print red #B23A2B, cut-corner cards, Plex Mono. Loaded after the page's own style block, so it wins at equal specificity. */
html,body{background:#3A3832;color:#EFE6CC;font-family:"Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-font-smoothing:none}
:root{--cut:polygon(14px 0,100% 0,100% 100%,0 100%,0 14px)}
/* the kit sets its tokens on the body, which would shadow the palette the page writes on the root: restate the desk tokens there */
body[data-skin=card]{--ground:#3A3832;--ink:#EFE6CC;--dim:#C9BFA6;--acc:#E8917F;background:#3A3832;color:#EFE6CC}

/* brand block, top-left on every screen (tap = the menu) */
.brand{position:fixed;top:max(4px,env(safe-area-inset-top));left:6px;z-index:40;display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:0 8px 0 4px;
  background:#3A3832;border:0;color:#EFE6CC;font:inherit;cursor:pointer}
.brand:focus-visible{outline:3px solid #E8917F;outline-offset:2px}
.brand [data-px] svg{height:auto}
#app{padding-top:calc(max(6px,env(safe-area-inset-top)) + 48px)}
.screen{padding-top:calc(max(14px,env(safe-area-inset-top)) + 50px);background:#3A3832}
#menu h1{display:none}
.screen h1{font-size:calc(var(--t-num)*.8);letter-spacing:.1em;color:#EFE6CC}
.screen h2{color:#C9BFA6}
.screen .credit{margin:.8rem 0 .2rem;font-size:.9rem;color:#C9BFA6}
.credit a{color:#C9BFA6;display:inline-flex;align-items:center;min-height:44px}

/* cards: the cut corner is the punch-card corner */
.btn,.seg button{border:0;border-radius:0;background:#EFE6CC;color:#2A2823;clip-path:var(--cut);min-height:52px;text-align:left;padding:.7rem 1rem .7rem 1.4rem;font-weight:700;letter-spacing:.03em}
.btn:not(.ghost){box-shadow:inset 7px 0 0 #B23A2B}
.btn.ghost{background:#EFE6CC;color:#2A2823}
.seg button.on{background:#2A2823;color:#EFE6CC;box-shadow:none}
.seg .btn,.seg .btn.ghost{border:0}
.seg{gap:.5rem}
.btn:active,.seg button:active{background:#D9CDA8}
.seg button.on:active{background:#4A4538}
.btn:focus-visible,.seg button:focus-visible{outline:3px solid #E8917F;outline-offset:3px;clip-path:none}
#menu .btn{font-size:1.05rem}
pre.card{background:#EFE6CC;color:#2A2823;border:0;border-radius:0;clip-path:var(--cut);padding:.8rem .9rem .8rem 1.3rem}
#mission{background:#EFE6CC;color:#2A2823;border:0;border-radius:0;clip-path:var(--cut);padding:.5rem .7rem .5rem 1.2rem}
#mission-copy,#mission-copy b{color:#2A2823}
#mission-copy{color:#4A4538}
#mission .plc-target__head,#menu .plc-target__head{color:#4A4538}
#mission .plc-target__count,#menu .plc-target__count{color:#B23A2B}
#mission .plc-target__track,#menu .plc-target__track{background:#CFC6AE;border-radius:0;height:8px}
#mission .plc-target__fill,#menu .plc-target__fill{background:#2A2823;border-radius:0}
#menu .plc-target{padding:.4rem .6rem}
#menu .plc-target__head{color:#C9BFA6}
#menu .plc-target__track{background:#55524A}
#menu .plc-target__fill{background:#EFE6CC}
#menu .plc-target__count{color:#E8917F}
.plc-target{border-radius:0}
canvas{border:0;border-radius:0;background:#EFE6CC;clip-path:var(--cut)}
#clock{border-radius:0;height:8px;background:#55524A}
#clock i{border-radius:0}
#hud #par{font-family:"VT323","Plex Mono",monospace;font-weight:400;font-size:2.1rem}
#left,#parlab,#pargoal{font-family:"VT323","Plex Mono",monospace;font-size:1.35rem}

/* the three lanes under the board are cards too */
.lane{background:#EFE6CC;color:#2A2823;border:0;border-radius:0;clip-path:var(--cut);padding:.45rem .2rem .4rem}
.lane .col,.lane .out,.lane .col .op{color:#2A2823!important}
.lane .nm{color:#5C5646}
.lane.best{box-shadow:inset 0 0 0 3px #B23A2B}
.lane:active,.lane.hit{background:#D9CDA8}
.lane:focus-visible{clip-path:none;outline:3px solid #E8917F}
.lane:disabled{opacity:.45}
#help .btn{min-height:48px}
#fb{font-family:"Plex Mono",monospace}

/* the result: a fan-fold printout (the suite's card), paper stripes and sprocket holes drawn as flat dots */
#over{--ink:#1F2420;--dim:#4A4538;--match:#1F2420;--mis:#B23A2B;--warn:#B23A2B;--acc:#B23A2B;--edge:#8A806A;--panel:#FBFAF3;--bg:#FBFAF3;--faint:#6A6252;--board:#E9EFE2;--gap:#4A4538;--track:#CFC6AE;
  color:#1F2420;padding-left:38px;padding-right:38px;
  background-color:#FBFAF3;
  background-image:
    radial-gradient(circle at 11px 10px,#3A3832 0 4px,transparent 4.5px),
    radial-gradient(circle at calc(100% - 11px) 10px,#3A3832 0 4px,transparent 4.5px),
    repeating-linear-gradient(#FBFAF3 0 40px,#DCEBD6 40px 80px);
  background-size:22px 20px,22px 20px,auto;
  background-position:0 0,100% 0,0 0;
  background-repeat:repeat-y,repeat-y,repeat;
  background-attachment:local}
#over h1,#over h2,#over p,#over td{color:#1F2420}
#over h2,#over .sub{color:#4A4538}
#over .btn{background:#2A2823;color:#EFE6CC;clip-path:none;box-shadow:none;text-align:center;padding:.7rem 1rem}
#over .btn.ghost{background:transparent;color:#1F2420;border:2px solid #2A2823}
#over pre.card{background:transparent;color:#1F2420;border:2px dashed #8A806A;clip-path:none;padding:.6rem}
#over td{border-bottom:1px dashed #8A806A}
#over .brandrow{display:none}

/* narrow phones */
@media (max-width:359px){
  .brand{padding-right:4px}
  #over{padding-left:34px;padding-right:34px}
  .btn,.seg button{padding:.6rem .7rem .6rem 1.2rem}
}
@media (max-height:620px){ #app{padding-top:calc(max(4px,env(safe-area-inset-top)) + 46px)} #mission{padding:.3rem .5rem .3rem 1rem} }

.btn small{color:#5C5646}
body:has(#over:not(.hide)) .brand{background:#FBFAF3;color:#1F2420}

[hidden]{display:none!important}
#app{padding-top:calc(max(4px,env(safe-area-inset-top)) + 46px)}
#hud{min-height:2.6rem}
#board{height:clamp(220px,35svh,380px)}
#coach{font-size:clamp(.9rem,.86rem + .2vw,1.05rem);line-height:1.3;min-height:2.4rem}
#fb{font-size:clamp(1rem,.95rem + .3vw,1.25rem);min-height:2.4rem}
@media (max-height:620px){ #board{height:clamp(170px,32svh,260px)} #coach{min-height:1.3rem;font-size:.85rem} #fb{min-height:1.6rem;font-size:.95rem} }

#board{height:auto;align-self:stretch;max-height:400px}
#left{white-space:nowrap}
@media (max-width:400px){
  #parlab,#pargoal,#left{font-size:1.15rem}
  #hud #par{font-size:1.8rem}
  #hud{gap:.3rem}
}
