.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: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2f3548;
}

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

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

.h2 {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #cdd4e0;
}

/* Палитра цветов */
.colorBar {
  background: #2a3142;
  border: 1px solid #3a4156;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.colorGroup {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.colorLabel {
  font-size: 13px;
  color: #cdd4e0;
  margin-right: 4px;
}

.colorBtn, .colorBtnActive {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s;
}

.colorBtn:hover {
  transform: scale(1.1);
}

.colorBtnActive {
  border: 2px solid #ffe44a;
  box-shadow: 0 0 8px rgba(255, 228, 74, 0.6);
  transform: scale(1.15);
}

.resetBtn {
  margin-left: auto;
  padding: 6px 12px;
  background: #3a4156;
  color: #e3e8f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.resetBtn:hover {
  background: #4a5169;
}

/* Сетка карточек */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

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

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

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

.category {
  font-size: 11px;
  color: #8a93a8;
  background: #1c2030;
  padding: 2px 7px;
  border-radius: 4px;
}

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

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

.meta {
  padding: 8px 14px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px dashed #3a4156;
}

.price {
  color: #ffe44a;
  font-weight: 600;
}

.animated {
  color: #66b3ff;
  font-size: 11px;
}

.skinId {
  margin-left: auto;
  color: #8a93a8;
  font-size: 11px;
  background: #1c2030;
  padding: 2px 6px;
  border-radius: 3px;
}

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

.footer p {
  margin: 4px 0;
}

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