/* Keep the packaged sea art visible before the first canvas frame. */
#app {
  max-width: none;
  background: #052636 url("images/gen/gptimg_1795363900_look.png") center / cover no-repeat;
}
#app .start-screen {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 12px 16px calc(clamp(68px, 23vh, 122px) + var(--safe-bottom));
  background: transparent;
}
#app .start-screen::before { pointer-events: none; }
#app .start-screen.hidden { display: none; }
#app .launch-actions { position: relative; display: grid; justify-items: center; gap: 8px; }
#app #btnStart {
  min-width: min(224px, 80vw);
  min-height: 48px;
  border: 1px solid #ffdab0;
  border-radius: 14px;
  background: var(--orange);
  box-shadow: 0 4px 0 #9d430e, 0 7px 20px #001722a8;
  color: #331300;
  font-size: 18px;
  font-weight: 900;
}
#app button:focus-visible { outline: 2px solid #fff3cf; outline-offset: 3px; }
#app .modal, #app .end-card { max-height: 92vh; overflow: auto; }
#app .end-screen.hidden, #app .modal-mask.hidden { display: none; }
#app .home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#app .home-actions button { min-height: 44px; }

#app .start-screen { pointer-events: none; }
#app .start-screen .launch-actions { z-index: 1; pointer-events: auto; }
#app #btnStart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#app #btnStart:active { transform: translateY(2px); }
#app .end-screen {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(2, 15, 27, .68);
}
#app .end-screen.hidden { display: none; }
#app .end-card { width: min(100%, 440px); }
#app .home-actions button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
}
#app .home-actions .btn-primary { background: var(--orange); color: #331300; }
#app .home-actions .btn-ghost { background: #102d3e; color: var(--text); }
#app .ts-fire { display: block; font-size: 10px; }
#app .end-card .end-grid { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); }
