/* The approved portrait stays whole; the surrounding landscape fills wide screens. */
#game-screen[hidden], .cover-screen[hidden] { display: none; }
body.cover-open { background: #071421; }
body.cover-open > .topo, body.cover-open::before, body.cover-open::after { display: none; }
.cover-screen {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #071421;
}
.cover-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#071421aa, #071421e8),
    url("assets/river-puzzle-cover-606-interactive.png") center 48% / cover no-repeat;
}
.cover-art { display: flex; align-items: center; justify-content: center; width: 100%; }
.cover-art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 126px);
  max-height: max(220px, calc(100svh - 126px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  object-fit: contain;
  box-shadow: 0 16px 70px #0008;
}
.cover-actions { display: grid; justify-items: center; gap: 9px; padding-top: 14px; width: 100%; }
.cover-enter {
  min-height: 48px;
  width: min(100%, 300px);
  border: 1px solid #eedfb9;
  border-radius: 9px;
  background: linear-gradient(115deg, #ffe4b0, #b2e5dd);
  color: #102d35;
  font: 700 1rem/1.3 system-ui, sans-serif;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 4px 24px #0005;
}
.cover-enter:hover { background: #edfaf0; }
.cover-enter:focus-visible { outline: 3px solid #f9db91; outline-offset: 4px; }
.cover-enter:disabled { opacity: .6; cursor: wait; }
.cover-actions p { margin: 0; color: #c6d3db; font: .78rem/1.4 system-ui, sans-serif; text-align: center; }
@media (max-height: 380px) { .cover-screen { justify-content: flex-start; } }
