/* ===== Daily Creative Arena Styles ===== */

.dc-hero {
  position: relative;
  padding: 64px 24px 48px;
  background: linear-gradient(160deg, #1a0b2e 0%, #2a1845 60%, #162038 100%);
  color: #f4e9ff;
  overflow: hidden;
}

.dc-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.dc-hero .badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.dc-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
}

.dc-hero h1 .hl {
  background: linear-gradient(120deg, #ff9ed8, #f6c177, #7bf1c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dc-hero .lede {
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 28px;
  color: rgba(244, 233, 255, 0.86);
}

.dc-toggle-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.dc-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 15px;
}

.dc-switch input { display: none; }

.dc-slider {
  position: relative;
  width: 56px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: background 0.2s;
}

.dc-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}

.dc-switch input:checked + .dc-slider {
  background: linear-gradient(120deg, #ff9ed8, #7bf1c4);
}

.dc-switch input:checked + .dc-slider::after {
  left: 29px;
}

.dc-toggle-hint {
  font-size: 12px;
  color: rgba(244, 233, 255, 0.55);
  letter-spacing: 0.4px;
}

/* Main layout */
.dc-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dc-card {
  background: var(--bg-card, #fff);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 6px 28px rgba(20, 16, 50, 0.08);
  border: 1px solid rgba(160, 140, 220, 0.16);
}

.dc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(160, 140, 220, 0.24);
}

.cat-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 158, 216, 0.16);
  color: #c44a8a;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

.dc-card-head h2 {
  font-size: 24px;
  margin: 4px 0 4px;
  color: #1a0b2e;
}

.cat-sub {
  font-size: 13px;
  color: rgba(40, 30, 70, 0.6);
  margin: 0;
}

/* Today's stats */
.dc-today-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.dc-stat {
  text-align: right;
  min-width: 90px;
}

.dc-stat-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(40, 30, 70, 0.5);
  margin-bottom: 4px;
}

.dc-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: #1a0b2e;
  font-variant-numeric: tabular-nums;
}

/* Today's grid: art + poem */
.dc-today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .dc-today-grid { grid-template-columns: 1fr; }
}

.dc-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1845, #162038);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-art svg { width: 100%; height: 100%; display: block; }

.dc-art-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  padding: 16px;
  text-align: center;
}

.dc-poem {
  background: linear-gradient(135deg, #fff8e7, #f4e9d0);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid #f6c177;
}

.dc-poem-meta {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(80, 60, 30, 0.55);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dc-poem-body {
  font-size: 18px;
  line-height: 1.7;
  color: #2a1c0a;
  font-style: italic;
  margin-bottom: 14px;
  white-space: pre-line;
}

.dc-poem-source {
  font-size: 12px;
  color: rgba(80, 60, 30, 0.55);
  font-family: ui-monospace, monospace;
}

/* Rating row */
.dc-rate-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px dashed rgba(160, 140, 220, 0.24);
  border-bottom: 1px dashed rgba(160, 140, 220, 0.24);
}

.dc-rate-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(40, 30, 70, 0.7);
}

.dc-stars {
  display: flex;
  gap: 4px;
}

.dc-star {
  background: transparent;
  border: none;
  font-size: 28px;
  color: rgba(40, 30, 70, 0.18);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  padding: 0 2px;
}

.dc-star:hover { transform: scale(1.15); }
.dc-star.active { color: #f6c177; }

.dc-rate-submit {
  background: linear-gradient(120deg, #ff9ed8, #7bf1c4);
  border: none;
  color: #1a0b2e;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dc-rate-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255, 158, 216, 0.4); }
.dc-rate-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.dc-rate-msg {
  font-size: 12px;
  color: #4a8a4a;
  font-weight: 600;
}

.dc-rate-msg.error { color: #c44a4a; }

/* Other ratings */
.dc-other-ratings {
  margin-top: 14px;
}

.dc-other-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(40, 30, 70, 0.5);
  margin-bottom: 8px;
}

.dc-other-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dc-other-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(160, 140, 220, 0.12);
  border-radius: 100px;
  font-size: 12px;
  color: #4a3a6a;
}

.dc-other-chip .who {
  font-weight: 600;
}

.dc-other-chip .stars {
  color: #f6c177;
}

.dc-other-empty {
  font-size: 12px;
  color: rgba(40, 30, 70, 0.4);
  font-style: italic;
}

/* Token dashboard */
.dc-tokens .dc-card-head { margin-bottom: 14px; }

.dc-total {
  text-align: right;
}

.dc-total-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(40, 30, 70, 0.5);
  margin-bottom: 4px;
}

.dc-total-val {
  font-size: 28px;
  font-weight: 700;
  color: #c44a8a;
  font-variant-numeric: tabular-nums;
}

.dc-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  margin: 18px 0 12px;
  padding: 0 4px;
}

.dc-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dc-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #ff9ed8, #c44a8a);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}

.dc-bar-fill.burned { background: linear-gradient(180deg, #ff9ed8, #c44a8a); }
.dc-bar-fill.skipped { background: rgba(160, 140, 220, 0.18); }

.dc-bar-label {
  font-size: 10px;
  color: rgba(40, 30, 70, 0.5);
}

.dc-bar-val {
  font-size: 11px;
  font-weight: 600;
  color: #1a0b2e;
  font-variant-numeric: tabular-nums;
}

.dc-note {
  font-size: 12px;
  color: rgba(40, 30, 70, 0.6);
  background: rgba(160, 140, 220, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.5;
}

/* Gallery */
.dc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.dc-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1845, #162038);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.dc-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 16, 50, 0.2);
}

.dc-gallery-art {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.dc-gallery-art svg { width: 100%; height: 100%; display: block; }

.dc-gallery-meta {
  padding: 10px 12px;
  background: #fff;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dc-gallery-date {
  color: rgba(40, 30, 70, 0.55);
  font-variant-numeric: tabular-nums;
}

.dc-gallery-score {
  font-weight: 700;
  color: #f6c177;
}

/* Board */
.dc-board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: dc-board;
}

.dc-board-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(160, 140, 220, 0.18);
  counter-increment: dc-board;
}

.dc-board-item:last-child { border-bottom: none; }

.dc-board-item::before {
  content: counter(dc-board);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(120deg, #ff9ed8, #7bf1c4);
  color: #1a0b2e;
  font-weight: 700;
  font-size: 14px;
}

.dc-board-name {
  flex: 1;
  font-weight: 600;
  color: #1a0b2e;
}

.dc-board-stats {
  font-size: 12px;
  color: rgba(40, 30, 70, 0.55);
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.dc-board-score {
  font-weight: 700;
  color: #c44a8a;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
}