.root {
  min-height: 100vh;
  background: #1f2433;
  color: #e3e8f0;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.loading, .denied {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1f2433;
  color: #e3e8f0;
  gap: 16px;
}

.backBtn {
  padding: 8px 18px;
  background: #228be6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.topbar {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2f3548;
}

.h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.subline {
  margin-top: 6px;
  color: #8a93a8;
  font-size: 13px;
}

.subline code {
  background: #2a3142;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.card {
  background: #2a3142;
  border: 1px solid #3a4156;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #232938;
  border-bottom: 1px solid #2f3548;
}

.levelBadge {
  background: linear-gradient(135deg, #3357ff, #b266ff);
  color: white;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  min-width: 42px;
  text-align: center;
}

.title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.canvasWrap {
  position: relative;
  aspect-ratio: 1;
  background: #1c2030;
}

.canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 32, 48, 0.85);
  color: #ff8a8a;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.description {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #cdd4e0;
}

.stats {
  padding: 8px 14px 12px;
  font-size: 12px;
  color: #8a93a8;
  border-top: 1px dashed #3a4156;
}

.stats a {
  color: #66b3ff;
  margin-left: 6px;
}

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #2f3548;
  color: #8a93a8;
  font-size: 13px;
}

.footer p {
  margin: 4px 0;
}
