:root {
  --bg-top: #0d1427;
  --bg-bottom: #02050b;
  --text-main: #f3eee4;
  --text-muted: #91a0bd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(circle at top, rgba(67, 88, 144, 0.28), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text-main);
  font-family: "Work Sans", sans-serif;
}

.page-shell {
  width: min(820px, calc(100vw - 2rem));
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 0;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.page-title {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-family: "Newsreader", serif;
  font-size: clamp(1.6rem, 5vw, 3.55rem);
  font-weight: 600;
  line-height: 0.96;
}

#canvas-container {
  overflow: hidden;
  width: min(720px, calc(100vw - 2rem));
  margin: 0 auto;
  border-radius: 20px;
}

#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.title-footer,
.canvas-instruction {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.5;
}

.title-footer {
  font-size: 0.9rem;
}

.canvas-instruction {
  max-width: 42ch;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 1rem, 820px);
    gap: 0.85rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .page-title {
    font-size: clamp(1.28rem, 5.8vw, 2.1rem);
  }

  .title-footer,
  .canvas-instruction {
    font-size: 0.88rem;
  }
}
