.maze-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: start;
}

.maze-bottom-layout {
  grid-template-columns: 1fr;
}

.maze-board-card,
.maze-side-card {
  position: relative;
}

.maze-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.maze-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(138, 180, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 109, 0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 126, 207, 0.18), transparent 22%),
    linear-gradient(180deg, #132038 0%, #0f1930 100%);
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.28);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.maze-canvas,
.maze-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.maze-canvas {
  z-index: 1;
}

.maze-overlay {
  z-index: 2;
  touch-action: none;
  cursor: crosshair;
}

.maze-side-card {
    display: grid;
    gap: 14px;
}

.page-maze-hard .app {
  max-width: 1060px;
}

.maze-hard-layout {
  grid-template-columns: 1fr;
}

.maze-hard-board-card,
.maze-hard-side-card {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.maze-hard-stage {
  min-height: 620px;
}

@media (max-width: 1100px) and (orientation: landscape) {
  .page-maze-hard .app {
    max-width: 940px;
  }

  .maze-hard-stage {
    min-height: 480px;
  }
}
