* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
#canvas { display: block; width: 100vw; height: 100vh; cursor: crosshair; }
#source-code-link { position: fixed; right: 12px; bottom: 6px; z-index: 1; padding: 4px 6px; color: #c8d1d0; font: 11px/16px monospace; text-decoration: underline; text-underline-offset: 3px; }
#source-code-link:hover { color: #fff; }
#source-code-link:focus-visible { outline: 2px solid #44ffff; outline-offset: 2px; }
#start-screen { position: fixed; inset: 0; overflow: auto; isolation: isolate; display: flex; flex-direction: column; justify-content: center; background: #101715; color: #f2f5f1; font: 16px/1.5 system-ui, sans-serif; }
#start-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; z-index: -2; }
#start-screen::before { content: ''; position: absolute; inset: 0; background: rgba(7,13,12,.68); z-index: -1; }
.start-content { width: min(100% - 64px, 1120px); margin: auto; padding: 72px 0; flex-shrink: 0; }
.start-eyebrow { color: #a6e4d5; font: 12px/1.5 monospace; margin-bottom: 18px; }
.start-content h1 { font-size: 72px; line-height: 1.05; letter-spacing: 0; font-weight: 750; }
.start-intro { margin-top: 18px; color: #d7dfdb; font-size: 18px; }
.start-loading { width: min(100%, 350px); margin-top: 44px; font: 12px/1.5 monospace; }
.start-loading-label { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; min-height: 22px; }
#asset-status { color: #d0dba0; }
#asset-percent { color: #a6e4d5; flex-shrink: 0; }
#asset-progress { display: block; appearance: none; border: 0; width: 100%; height: 4px; margin: 9px 0 12px; color: #a6e4d5; accent-color: #a6e4d5; background: rgba(255,255,255,.18); }
#asset-progress::-webkit-progress-bar { background: rgba(255,255,255,.18); }
#asset-progress::-webkit-progress-value { background: #a6e4d5; }
#asset-progress::-moz-progress-bar { background: #a6e4d5; }
#asset-detail { color: #b9c4be; min-height: 36px; }
.start-loading[data-error] #asset-status { color: #ffb398; }
.start-actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
#start-game { width: 204px; height: 52px; border: 1px solid #a6e4d5; border-radius: 4px; background: #a6e4d5; color: #132722; font: 650 16px system-ui, sans-serif; cursor: pointer; }
#start-game:hover:enabled { background: #c1f1e6; border-color: #c1f1e6; }
#start-game:disabled { background: rgba(17,32,28,.55); border-color: #60786b; color: #93a99e; cursor: default; }
#retry-assets { border: 0; padding: 8px 0; background: none; color: #ffb398; font: 14px system-ui, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.start-footer { width: min(100% - 64px, 1120px); margin: 0 auto; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #b9c4be; font-size: 13px; flex-shrink: 0; }
.start-footer a { color: #f2f5f1; text-underline-offset: 4px; }
.start-footer a:hover { color: #a6e4d5; }
#start-screen :focus-visible { outline: 2px solid #f5a47f; outline-offset: 5px; }
.start-content noscript { display: block; margin-top: 20px; color: #ffb398; }
@media (max-width: 600px) {
  .start-content, .start-footer { width: calc(100% - 40px); }
  .start-content { padding: 56px 0 36px; }
  .start-content h1 { font-size: 48px; }
  .start-intro { font-size: 16px; max-width: 280px; }
  .start-loading { margin-top: 32px; }
  #start-backdrop { object-position: 70% center; }
}
@media (max-height: 520px) {
  .start-content { padding-top: 28px; padding-bottom: 28px; }
  .start-content h1 { font-size: 48px; }
  .start-loading { margin-top: 24px; }
}
