/* The earned pressing shares the harbour skyline with the final concert. */
.harbour-course:has(#round-report:not([hidden])) {
  background:#101c24;
}
.harbour-course:has(#round-report:not([hidden])) main {
  width:100%; max-width:none;
}
.harbour-course:has(#round-report:not([hidden])) .nav {
  position:absolute; z-index:4; inset:0 0 auto; width:100%; height:64px;
  padding:6px max(4vw,env(safe-area-inset-right)) 6px max(4vw,env(safe-area-inset-left));
  border:0; background:linear-gradient(#0b1720b8,transparent);
}
.harbour-course:has(#round-report:not([hidden])) .sv-island-link {display:none}
.harbour-course #round-report {margin:0 auto; border:0; border-radius:0; box-shadow:none}
#harbour-report-head {
  --gutter:clamp(26px,6vw,108px); --star-size:clamp(42px,4.9vw,68px);
  position:relative; isolation:isolate; overflow:hidden; color:#fff6df;
  display:grid; grid-template-columns:minmax(0,.96fr) minmax(0,1fr);
  grid-template-areas:"cover headline" "cover stats" "cover encore" "cover routes" "cover replay";
  align-content:center; align-items:center; justify-items:start; column-gap:clamp(12px,5vw,94px); row-gap:clamp(14px,2vw,28px);
  min-height:max(535px,calc(100svh - 52px)); padding:clamp(78px,10vh,125px) var(--gutter) clamp(52px,7vh,86px);
  background:linear-gradient(90deg,#14181a0a 0%,#101a250a 24%,#10202ba8 45%,#101923e0 70%,#152332b0 100%),
    linear-gradient(0deg,#101c24 0%,#172530b8 7%,#1726330d 35%,#2e1f2210 73%,#111a2d62 100%),
    url("game-assets/city.webp") center 73%/cover;
  border-bottom:0;
}
#harbour-report-head:not(.has-new-routes) {grid-template-areas:"cover headline" "cover stats" "cover encore" "cover replay"}
#harbour-report-head #winning-encore {grid-area:encore}
#harbour-report-head>div,#harbour-report-head>section {position:relative}
#harbour-report-head .report-headline {align-self:end}
#harbour-report-head .eyebrow {
  display:flex; align-items:center; gap:.55em; color:#ffdf93; letter-spacing:.19em;
  margin:0 0 .56em; font:800 clamp(.73rem,1.15vw,.96rem)/1 Inter,system-ui,sans-serif;
  text-transform:uppercase; text-shadow:0 2px 6px #261b18;
}
#harbour-report-head .eyebrow::before {content:"";width:1.55em;height:2px;background:#ffcf76}
#harbour-report-head h1 {
  max-width:100%; color:#ffedc6; font:italic 900 clamp(3rem,6.45vw,7.3rem)/.88 Barlow,Impact,sans-serif;
  text-transform:uppercase; letter-spacing:-.026em; text-wrap:balance;
  text-shadow:0 3px 0 #75472d,0 9px 24px #141519a8; scroll-margin:0;
}
#harbour-report-head h1:focus {outline:0}
#harbour-report-head.graded .report-art {
  --disc-glow:#ffe5a267;
  width:min(90%,36vw,48vh,445px); max-width:none; aspect-ratio:217/220;
  align-self:center; justify-self:center; z-index:0;
}
#harbour-report-head .report-art:has([data-record-medal=silver]) {--disc-glow:#d4ebff70}
#harbour-report-head .report-art:has([data-record-medal=bronze]) {--disc-glow:#ffbf8c65}
#harbour-report-head .report-art::before {
  content:""; position:absolute; z-index:-1; pointer-events:none; inset:-22%;
  background:radial-gradient(ellipse closest-side,var(--disc-glow) 40%,transparent);
}
#harbour-report-head #report-record:not([hidden]) {
  display:block; width:100%; height:auto; border-radius:50%;
  box-shadow:0 5px 18px #15202866;
}
#harbour-report-head:not(.graded) .report-art {display:none}
#harbour-report-head .harbour-stars:not([hidden]) {
  display:flex; align-items:center; gap:.09em; margin:.22em 0 0; font-size:var(--star-size);
}
#harbour-report-head .harbour-stars i {
  --star-shape:polygon(50% 2%,63% 32%,98% 37%,72% 60%,80% 95%,50% 77%,20% 95%,28% 60%,2% 37%,37% 32%);
  display:block; position:relative; width:1em; height:1em;
  background:none; clip-path:none; filter:drop-shadow(0 .055em .015em #171a24) drop-shadow(0 .065em .065em #49352194);
}
#harbour-report-head .harbour-stars i::before,#harbour-report-head .harbour-stars i::after {
  content:""; position:absolute; inset:0; clip-path:var(--star-shape);
}
#harbour-report-head .harbour-stars i::before {background:#dde6d6bd}
#harbour-report-head .harbour-stars i::after {inset:5%;background:#22323ccf}
#harbour-report-head .harbour-stars i[data-fill=full]::before {background:linear-gradient(#fff9cd,#fbe1a0 39%,#b0762d 100%)}
#harbour-report-head .harbour-stars i[data-fill=full]::after {background:linear-gradient(145deg,#fff097 0%,#fed063 47%,#e89b2d 77%,#ffd886 100%)}
#harbour-report-head .harbour-stars i[data-fill=half]::after {
  background:linear-gradient(90deg,transparent 50%,#263742 50%),linear-gradient(145deg,#fff097,#e9a12e);
}
#harbour-report-head .harbour-stars b {
  align-self:center; margin:.1em 0 0 .4em; color:#fbe8be;
  font:800 clamp(.94rem,1.6vw,1.35rem)/1 Inter,system-ui,sans-serif; text-shadow:0 2px 6px #181c21;
}
#harbour-report-head .award-tally {grid-area:stats; align-self:center}
#harbour-report-head .report-stats {display:flex; flex-wrap:nowrap; align-items:center; gap:0; margin:0; padding:0; border:0}
#harbour-report-head .report-stats>div {padding-inline:clamp(12px,1.8vw,35px);border-left:1px solid #d2c6ab73}
#harbour-report-head .report-stats>div:first-child {padding-left:0;border:0}
#harbour-report-head .report-stats dt {color:#e2e1d9;font:650 clamp(.71rem,1vw,.85rem)/1.2 Inter,sans-serif;white-space:nowrap}
#harbour-report-head .report-stats dd {margin:.06em 0 0;color:#fff0d1;font:900 clamp(1.36rem,2.5vw,2.2rem)/1 Barlow,Impact,sans-serif;font-variant-numeric:tabular-nums}
#harbour-report-head #personal-best {margin:.5em 0 0;color:#ffdc8f;font:720 clamp(.75rem,1.1vw,.9rem)/1.25 Inter,sans-serif}
#harbour-report-head .harbour-unlocks:not([hidden]) {display:flex;align-items:center;gap:clamp(12px,2vw,35px);max-width:none}
#harbour-report-head .island-reward {display:flex;align-items:center;gap:9px;overflow:visible;border:0;border-radius:0;background:none;text-shadow:0 1px 4px #101722}
#harbour-report-head .reward-picture {
  flex:none;width:clamp(34px,4vw,53px);height:clamp(34px,4vw,53px);border:2px solid #ead29a;border-radius:50%;
  background-size:500% auto;box-shadow:0 2px 6px #10141ac9;
}
#harbour-report-head .island-reward>div:last-child {padding:0}
#harbour-report-head .island-reward strong {color:#fff1ce;font:900 clamp(.95rem,1.6vw,1.36rem)/1.02 Barlow,sans-serif}
#harbour-report-head .island-reward small {margin-top:3px;color:#d2e6df;font:650 clamp(.68rem,.96vw,.82rem)/1.18 Inter,sans-serif}
#harbour-report-head .harbour-end-actions {align-items:center;flex-wrap:wrap;gap:5px clamp(12px,2vw,26px)}
#harbour-report-head .harbour-end-actions :is(a,button) {
  width:auto;min-height:44px;margin:0;border:0;border-radius:0;padding:6px 0;box-shadow:none;
  background:none;color:#fff1cb;text-decoration:underline;text-underline-offset:.24em;
  font:750 clamp(.8rem,1.15vw,.99rem)/1.15 Inter,sans-serif;
}
#harbour-report-head .harbour-end-actions .primary {
  padding:8px clamp(14px,2vw,28px);border:1px solid #ffdf94;border-bottom:2px solid #ac7336;border-radius:8px;
  background:linear-gradient(#ffe5a0,#f3bd55);color:#261e20;box-shadow:0 3px 0 #633e27;text-shadow:none;text-decoration:none;
}
#harbour-report-head .harbour-end-actions kbd {margin-right:.58em}
#harbour-report-head .harbour-end-actions a[hidden] {display:none}
@media(prefers-reduced-motion:no-preference) {
  #harbour-report-head.graded #report-record {animation:pressing-reveal .5s cubic-bezier(.17,.73,.27,1) both}
  #harbour-report-head.graded .report-art::after {
    content:""; position:absolute; inset:0; pointer-events:none; border-radius:50%;
    background:linear-gradient(112deg,transparent 41%,#fffce124 47%,#fffae560 50%,#fffade1f 52%,transparent 58%) 105% center/250% 100% no-repeat;
    mask:radial-gradient(circle closest-side,transparent 0 32%,black 37% 99%,transparent);
    animation:pressing-shine .95s .25s ease-out both;
  }
  #harbour-report-head .harbour-stars i {animation:earned-star .32s .20s cubic-bezier(.23,.83,.32,1.13) both}
  #harbour-report-head .harbour-stars i:nth-child(2){animation-delay:.29s}
  #harbour-report-head .harbour-stars i:nth-child(3){animation-delay:.38s}
  @keyframes pressing-reveal {from {opacity:0;transform:translateY(.4em) scale(.94)}}
  @keyframes pressing-shine {0%{background-position:105% center;opacity:0}18%{opacity:.8}to{background-position:-5% center;opacity:0}}
  @keyframes earned-star {0%{transform:scale(.66) translateY(.14em)}65%{transform:scale(1.1) translateY(-.035em)}100%{transform:none}}
}
@media(max-width:720px) and (orientation:portrait){
  .harbour-course:has(#round-report:not([hidden])) .nav{height:55px;padding:3px 12px;}
  .harbour-course:has(#round-report:not([hidden])) .nav .brand img{height:31px}
  #harbour-report-head,#harbour-report-head:not(.has-new-routes){
    --star-size:clamp(30px,8vw,48px); justify-content:center; justify-items:center; text-align:center;
    grid-template-columns:minmax(0,1fr); grid-template-areas:"cover" "headline" "stats" "encore" "routes" "replay";
    align-content:center; gap:clamp(11px,2.15vh,24px); min-height:calc(100svh - 52px);
    padding:max(48px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) clamp(24px,4vh,46px) max(10px,env(safe-area-inset-left));
    background:linear-gradient(0deg,#101c24 3%,#111e27f2 37%,#1724344a 70%,#18253610),
      url("game-assets/city.webp") 46% 0/auto 86% no-repeat,#15232a;
  }
  #harbour-report-head:not(.has-new-routes){grid-template-areas:"cover" "headline" "stats" "encore" "replay"}
  #harbour-report-head.graded .report-art{
    width:clamp(136px,min(58vw,32svh),270px);
  }
  #harbour-report-head .eyebrow{justify-content:center;font-size:.67rem;margin:0 0 .42em}
  #harbour-report-head .eyebrow::before{display:none}
  #harbour-report-head h1{font-size:clamp(2.35rem,10vw,4.75rem);line-height:.91}
  #harbour-report-head .harbour-stars:not([hidden]){justify-content:center;margin-top:5px}
  #harbour-report-head .harbour-stars b{font-size:.85rem}
  #harbour-report-head .report-stats>div:first-child{padding-left:12px}
  #harbour-report-head .report-stats>div{padding-inline:12px}
  #harbour-report-head .report-stats dd{font-size:1.45rem}
  #harbour-report-head #personal-best{margin:.35em 0 0}
  #harbour-report-head .harbour-unlocks:not([hidden]){gap:17px}
  #harbour-report-head .island-reward{text-align:left;gap:6px}
  #harbour-report-head .reward-picture{width:33px;height:33px}
  #harbour-report-head .harbour-end-actions{justify-content:center;gap:2px 13px}
  #harbour-report-head .harbour-end-actions :is(a,button){font-size:.8rem}
}
@media(max-height:510px) and (orientation:landscape) {
  .harbour-course:has(#round-report:not([hidden])) .nav{height:50px;padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}
  .harbour-course:has(#round-report:not([hidden])) .nav .brand img{height:24px}
  #harbour-report-head{
    --star-size:clamp(29px,6.7vh,39px); min-height:100svh; padding:43px max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left));
    grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); column-gap:20px;row-gap:7px;
  }
  #harbour-report-head.graded .report-art{width:min(85%,50vh,250px)}
  #harbour-report-head .eyebrow{font-size:.64rem;margin-bottom:5px}
  #harbour-report-head h1{font-size:clamp(2rem,6.5vw,3.7rem)}
  #harbour-report-head .harbour-stars:not([hidden]){margin-top:3px}
  #harbour-report-head .report-stats>div{padding-inline:12px}
  #harbour-report-head .report-stats dt{font-size:.67rem}
  #harbour-report-head .report-stats dd{font-size:1.25rem}
  #harbour-report-head #personal-best{font-size:.68rem;margin-top:3px}
  #harbour-report-head .reward-picture{width:29px;height:29px;border-width:1px}
  #harbour-report-head .island-reward{gap:5px}
  #harbour-report-head .island-reward strong{font-size:.92rem}
  #harbour-report-head .island-reward small{font-size:.65rem;margin-top:2px}
  #harbour-report-head .harbour-end-actions{gap:2px 11px}
  #harbour-report-head .harbour-end-actions :is(a,button){font-size:.75rem}
  #harbour-report-head .harbour-end-actions .primary{padding-inline:10px}
}

/* A run that ends without a record has no artwork column or reserved row. */
#harbour-report-head:not(.graded):not(.has-new-routes) {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"headline" "replay" "stats";
  justify-items:center; text-align:center; min-height:0;
  row-gap:clamp(14px,2.5vh,23px);
  padding-block:max(72px,10svh,env(safe-area-inset-top)) clamp(32px,6svh,60px);
  background:linear-gradient(0deg,#101c24 0%,#10202bc9 60%,#17252c6b),url("game-assets/city.webp") center 53%/cover;
}
#harbour-report-head:not(.graded) .eyebrow,
#harbour-report-head:not(.graded) .harbour-end-actions {justify-content:center}
#harbour-report-head:not(.graded) .eyebrow::before {display:none}
#harbour-report-head:not(.graded) h1 {font-size:clamp(2.1rem,7vw,4.1rem)}
#harbour-report-head:not(.graded) #replay {order:-1}
#harbour-report-head:not(.graded) .report-stats>div:first-child {padding-inline-start:0}
#harbour-report-head:not(.graded) .report-stats>div:last-child {padding-inline-end:0}
@media(max-height:510px) and (orientation:landscape) {
  #harbour-report-head:not(.graded):not(.has-new-routes) {row-gap:10px;padding-block:max(52px,env(safe-area-inset-top)) 18px}
}
@media(max-width:720px) and (max-height:720px) and (orientation:portrait) {
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) {
    row-gap:clamp(6px,1.3svh,10px);
    padding-block:max(49px,env(safe-area-inset-top)) max(13px,env(safe-area-inset-bottom));
  }
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) .report-art {width:clamp(105px,22svh,158px)}
}
@media(max-height:510px) and (orientation:landscape) {
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) {
    grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
    grid-template-areas:"cover stats" "cover encore" "headline routes" "headline replay";
    row-gap:6px;column-gap:clamp(10px,3vw,36px);
  }
  #harbour-report-head.graded:not(.has-new-routes):has(#winning-encore:not([hidden])) {
    grid-template-areas:"cover stats" "cover encore" "headline replay";
  }
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) .report-art {width:min(83%,35svh,175px)}
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) .report-headline {
    align-self:start;justify-self:center;text-align:center;
  }
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) .report-headline :is(.eyebrow,.harbour-stars) {justify-content:center}
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) .eyebrow::before {display:none}
  #harbour-report-head.graded:has(#winning-encore:not([hidden])) h1 {font-size:clamp(1.7rem,4.8vw,3.2rem)}
}
