#orbital.asteroids{position:absolute;inset:90px 0 65px;width:100%;height:auto;margin:0;transform:none;will-change:auto}
/* A soft veil behind the copy keeps the full-width playfield legible. */
.hero-copy:before{content:"";position:absolute;inset:-65px -70px -55px 0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 35% 50%,#101514e8 0%,#101514a8 45%,#10151400 73%)}
.hero-copy h1{text-shadow:0 2px 22px #10151499}
#orbital.asteroids:focus,#orbital.asteroids:focus-visible,.asteroids canvas:focus{outline:none}
.asteroids:focus-visible .game-hint{color:#d3e8dc;text-decoration:underline;text-underline-offset:4px}
.asteroids .game-hint{position:absolute;bottom:0;left:5%;right:5%;font-size:8px;line-height:1.9;letter-spacing:1.2px;text-align:center;color:#a6afa9;pointer-events:none}
.asteroids canvas{height:calc(100% - 35px);cursor:crosshair}
.game-touch{display:none;position:absolute;bottom:35px;left:15%;right:15%;justify-content:center;gap:12px}
.game-touch button{background:#10151488;border:1px solid #9cc9bb55;border-radius:50%;width:42px;height:42px;color:#c8d9ce;touch-action:none;font-size:17px}
@media(pointer:coarse){.game-touch{display:flex}.asteroids canvas{height:calc(100% - 95px)}}
@media(max-width:700px){.hero{min-height:820px;min-height:max(820px,100svh);padding-bottom:190px}#orbital.asteroids{position:absolute;inset:75px 0 65px;width:100%;height:auto;margin:0}.hero-copy:before{inset:-35px -10px -30px;background:radial-gradient(ellipse at 35% 45%,#101514dc 0%,#10151488 45%,#10151400 76%)}.asteroids .game-hint{font-size:7px;letter-spacing:.8px}}
.game-board{position:absolute;right:5%;top:115px;z-index:4;width:245px;padding:17px 18px;background:#10151480;border:1px solid #9cc9bb26;backdrop-filter:blur(8px);color:#bdc9bd;font-size:11px;line-height:1.6}
.game-board h2{font:10px 'DM Sans',sans-serif;letter-spacing:1.5px;text-transform:uppercase;white-space:normal;margin:0 0 10px;color:#d3e8dc}
.game-board ol{list-style:none;margin:0;padding:0}.game-board li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #ffffff12}.game-board li span:first-child{overflow-wrap:anywhere}.game-board li:first-child{color:#d0bb97}
.game-board .board-prize{font-size:11px;margin-top:12px;color:#d0bb97}.game-board .board-rules{font-size:9px;color:#899a8d;margin-top:4px;letter-spacing:0}
.game-board .flight-score{display:block;font-size:9px;letter-spacing:1px;color:#d3e8dc;margin:12px 0 5px}.game-board .board-status{font-size:10px;color:#99aaa0}.game-board form{margin-top:12px}.game-board [hidden]{display:none!important}
.game-board label{display:block;font-size:10px}.game-board input{display:block;width:100%;background:#101514;border:1px solid #9cc9bb55;color:#d3e8dc;font:12px 'DM Sans',sans-serif;padding:7px;margin:5px 0 8px}.game-board button{background:none;border:1px solid #9cc9bb55;padding:5px 9px;font-size:10px}.game-board .new-flight{border:0;padding-left:0;margin-top:8px;color:#a6afa9;text-decoration:underline;text-underline-offset:3px}
.claim-receipt{margin-top:9px}.claim-receipt p{font-size:9px}.claim-receipt textarea{width:100%;height:95px;resize:vertical;background:#101514;color:#c1d1c5;border:1px solid #9cc9bb44;font-size:9px;margin-top:5px}.claim-receipt a{text-decoration:underline}
.game-board .previous-winner{font-size:10px;color:#d0bb97;margin-top:10px}
/* One exact vertical tile per cycle makes the existing sky loop seamlessly. */
.hero:after{animation:hero-star-ascent 140s linear infinite;background-position:center 0}
@keyframes hero-star-ascent{from{background-position:center 0}to{background-position:center -1000px}}
html.motion-paused .hero:after{animation-play-state:paused}
@media(max-width:700px){.hero:after{animation-name:hero-star-ascent-mobile;animation-duration:110s}}
@keyframes hero-star-ascent-mobile{from{background-position:center 0}to{background-position:center -695px}}
@media(prefers-reduced-motion:reduce){.hero:after{animation:none}}
@media(max-width:1000px) and (min-width:701px){.game-board{width:220px;right:4%;top:105px;padding:12px}.game-board .board-rules{font-size:8px}}
@media(max-width:700px){.hero{min-height:1080px;min-height:max(1080px,100svh);padding-bottom:480px}.game-board{top:auto;bottom:140px;right:7%;width:235px;padding:14px}.game-board:has(form:not([hidden])){width:min(86%,330px)}.game-touch{bottom:40px}.asteroids canvas{height:calc(100% - 95px)}}

/* Native disclosure keeps the leaderboard usable without extra UI dependencies. */
.game-board summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.game-board summary::-webkit-details-marker{display:none}
.game-board summary h2{margin:0;font-size:10px}
.game-board summary:focus-visible{outline:1px solid #9cc9bb88;outline-offset:5px}
.board-toggle{font-size:17px;line-height:1;color:#9cc9bb;transition:transform .18s}
.leaderboard-details[open] .board-toggle{transform:rotate(45deg)}
.board-content{padding-top:10px}
@media(max-width:700px){.game-board{bottom:185px}.game-board:has(.leaderboard-details:not([open])){width:235px}.game-board:has(form:not([hidden])){width:min(86%,330px)}}

/* Match the first visible mobile screen instead of a fixed 1080px stage. */
.hero:after{opacity:.936}
@media(max-width:700px){
  .hero{height:100vh;height:100svh;min-height:0;max-height:none;padding-bottom:0}
  .hero-copy{padding-top:108px}
  .hero:after{opacity:.66}
  .game-touch{display:flex;bottom:40px;gap:12px;left:7%;right:7%}
  .game-touch button{width:48px;height:48px;flex-shrink:0}
  .game-board{bottom:185px}
  .leaderboard-details[open] .board-content{max-height:calc(100svh - 330px);overflow-y:auto;overscroll-behavior:contain}
}
/* Keep copy and controls apart with Safari's bars visible on shorter screens. */
@media(max-width:700px) and (max-height:740px){
  .hero-copy{padding-top:96px}
  .hero h1{font-size:clamp(42px,10.5vw,54px);margin:18px 0 14px}
  .hero-description{font-size:14px;line-height:1.55;margin-bottom:16px}
  .hero-copy .button{padding:11px 18px}
  .hero .eyebrow{font-size:7px}
}
@media(max-width:700px) and (max-height:600px) and (orientation:landscape){
  .hero-copy{width:62%;padding-top:88px}
  .hero h1{font-size:38px;margin:12px 0}
  .hero-description{font-size:12px;line-height:1.45;max-width:240px;margin-bottom:12px}
  .hero-copy .button{padding:9px 14px;font-size:11px}
  .hero .eyebrow{font-size:6px;letter-spacing:.6px}
  .game-board{top:100px;bottom:auto;right:5%;width:175px;padding:12px}
  .game-board:has(.leaderboard-details:not([open])){width:175px}
  .game-board summary h2{font-size:8px;letter-spacing:1px}
}

/* Additional 30% luminance lift for the moving starfield. */
.hero:after{filter:brightness(1.3)}

/* Visible even while the leaderboard is collapsed. */
.hero-flight-clock{position:absolute;top:104px;left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:10px;pointer-events:none;color:#c4d4c8;font-variant-numeric:tabular-nums}
.clock-label{font-size:8px;letter-spacing:1.3px;line-height:1.3}
.clock-value{font:400 22px/1.2 'DM Sans',sans-serif;letter-spacing:1px}
.clock-urgent .clock-value{color:#d0bb97}
@media(max-width:700px){.hero-flight-clock{top:83px;left:auto;right:7%;transform:none;gap:8px}.clock-label{font-size:7px;letter-spacing:.8px;max-width:85px;text-align:right}.clock-value{font-size:18px}}
@media(max-width:700px) and (max-height:600px) and (orientation:landscape){.hero-flight-clock{left:52%;right:auto;top:83px;transform:translateX(-50%);gap:6px}.clock-label{max-width:60px;font-size:6px}.clock-value{font-size:16px}}

/* Score remains beside the countdown even with the leaderboard tucked away. */
.clock-score-group{display:flex;align-items:center;gap:8px;border-left:1px solid #9cc9bb44;padding-left:12px;margin-left:2px}
.clock-score-label{font-size:8px;letter-spacing:1.3px}
.clock-score-value{font:400 22px/1.2 'DM Sans',sans-serif;letter-spacing:1px;min-width:1ch}
@media(max-width:700px){.clock-score-group{gap:6px;padding-left:8px;margin-left:0}.clock-score-label{font-size:7px;letter-spacing:.8px}.clock-score-value{font-size:18px}}
@media(max-width:700px) and (max-height:600px) and (orientation:landscape){.hero-flight-clock{left:auto;right:5%;top:81px;transform:none;gap:5px}.clock-score-label{font-size:6px;letter-spacing:.5px}.clock-score-value{font-size:16px}.clock-score-group{gap:4px;padding-left:7px}.game-board{top:114px}}

.clock-end-action{position:absolute;top:calc(100% + 5px);right:0;pointer-events:auto;background:#101514df;border:1px solid #9cc9bb66;color:#d3e8dc;font-size:10px;padding:4px 9px;white-space:nowrap}
.clock-end-action[hidden]{display:none}
@media(max-width:700px) and (max-height:600px) and (orientation:landscape){.game-board{top:143px}}

/* Let navigation and the game share one uninterrupted sky. */
header{border-bottom:0}


/* Independent result actions stay together beside the time and score. */
.clock-end-actions{position:absolute;top:calc(100% + 5px);right:0;display:flex;align-items:center;gap:14px;pointer-events:auto}
.clock-end-actions[hidden]{display:none}
.clock-end-actions .clock-end-action{position:static;background:#101514b3;border:0;padding:3px 0;font-size:10px;text-decoration:underline;text-underline-offset:4px}
