html,
body.redcap-page {
  height: 100%;
  overflow: hidden;
}

.redcap-page .app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-height: 100dvh;
  padding-bottom: 0.55rem;
}

.redcap-page main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.redcap-page .canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(92, 148, 252, 0.22), transparent 55%),
    rgba(12, 16, 32, 0.35);
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  padding: 0.45rem 0.5rem;
  overflow: hidden;
}

#game {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #5c94fc;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}

.redcap-help {
  flex: 0 0 auto;
  margin: 0.55rem auto 0;
  max-width: 720px;
  color: rgba(248, 236, 214, 0.82);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.03em;
}

@media (max-height: 820px) {
  .redcap-page .topbar {
    margin-bottom: 0.55rem;
  }

  .redcap-page .brand p {
    display: none;
  }

  .redcap-help {
    font-size: 0.78rem;
    margin-top: 0.4rem;
  }
}

@media (max-width: 700px) {
  .redcap-page .canvas-wrap {
    padding: 0.3rem 0.15rem;
    border-radius: 12px;
  }

  .redcap-help {
    font-size: 0.76rem;
  }
}
