.daily-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.daily-hero,
.daily-board-panel,
.daily-panel {
  border: 3px solid #ffffff;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 5px #6f86c8, 7px 7px 0 rgba(111, 134, 200, 0.25);
}

.daily-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 244, 189, 0.85) 0 28px, transparent 29px),
    linear-gradient(135deg, #fffefe, #f1e8ff 76%);
}

.daily-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.7rem);
}

.daily-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 18px;
  align-items: start;
}

.daily-board-panel,
.daily-panel {
  padding: 16px;
}

.daily-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.daily-board-header h2 {
  margin: 0;
}

.daily-status {
  min-width: 190px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.guess-board {
  display: grid;
  gap: 10px;
}

.guess-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 2px solid rgba(111, 134, 200, 0.22);
  border-radius: var(--radius);
  background: rgba(216, 220, 255, 0.18);
}

.guess-marks,
.current-spell,
.sigil-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guess-cell,
.spell-slot,
.sigil-button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 44px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: #52649d;
  box-shadow: 0 0 0 3px rgba(111, 134, 200, 0.32);
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-weight: 900;
}

.spell-slot {
  background: rgba(255, 244, 189, 0.52);
}

.spell-slot.filled {
  background: #fff4bd;
}

.guess-hint {
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.daily-panel {
  display: grid;
  gap: 13px;
}

.daily-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: rgba(216, 220, 255, 0.28);
  color: var(--muted);
  font-weight: 900;
}

.daily-stat-row strong {
  color: var(--ink);
}

.sigil-palette {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sigil-button {
  min-height: 54px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.sigil-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff4bd;
}

.sigil-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.daily-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-actions .button {
  width: 100%;
}

#daily-guess,
#daily-share {
  grid-column: 1 / -1;
}

body[data-theme="dark"] .daily-hero,
body[data-theme="dark"] .daily-board-panel,
body[data-theme="dark"] .daily-panel {
  border-color: rgba(216, 220, 255, 0.36);
  background: rgba(31, 28, 45, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 6px 6px 0 rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .guess-row,
body[data-theme="dark"] .daily-stat-row {
  background: rgba(216, 220, 255, 0.13);
}

body[data-theme="dark"] .guess-cell,
body[data-theme="dark"] .spell-slot,
body[data-theme="dark"] .sigil-button {
  color: #fff8ff;
  border-color: rgba(216, 220, 255, 0.26);
  background: rgba(216, 220, 255, 0.14);
}

body[data-theme="dark"] .spell-slot.filled,
body[data-theme="dark"] .sigil-button:hover:not(:disabled) {
  color: #1b1728;
  background: #ffe49a;
}

body[data-theme="dark"] .daily-board-header h2,
body[data-theme="dark"] .daily-stat-row strong {
  color: #fff8ff;
}

@media (max-width: 840px) {
  .daily-layout,
  .daily-hero {
    grid-template-columns: 1fr;
  }

  .daily-hero,
  .daily-board-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-status {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .daily-shell {
    width: min(100% - 20px, 1120px);
  }

  .daily-hero,
  .daily-board-panel,
  .daily-panel {
    padding: 12px;
  }

  .guess-row {
    grid-template-columns: 1fr;
  }

  .guess-hint {
    text-align: left;
  }
}