.badger-app {
  margin: 2rem auto;
  max-width: 404px;
  min-height: 666px;
  background-color: #F0DA60;
  border-radius: 32px;
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}

.badger-header {
  width: fit-content;
  padding: 8px 30px;
  align-items: center;
  gap: 4px;
  border-radius: 101px;
  background: #F2C330;
  margin: 0 auto 1.5rem auto;
}

.badger-brand {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  justify-content: center;
}

.badger-logo {
  width: 32px;
  height: 32px;
}

.badger-title {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 400;
  text-align: center;
  margin: 0 auto;
  font-size: 24px;
  color: #000;
}

.badger-titles {
  text-align: center;
}

.badger-subtitle {
  margin: .25rem 0 0 0;
  color: var(--text-muted, #666);
}

.badger-intro {
  margin-top: .5rem;
  color: var(--text-muted, #666);
}

.badger-donut {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.25rem 0;
}

.donut {
  position: relative;
  width: 288px;
  height: 288px;
}

.donut-bg {
  fill: none;
  stroke: #f2c330; /* light yellow */
  stroke-width: 22;
  opacity: .6;
}

.donut-fg {
  fill: none;
  stroke: #000;
  stroke-width: 22;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 0 999;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
}

.badger-controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1rem 0 1.5rem 0;
}

.week-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.week-label {
  font-weight: 600;
}

.goal-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.goal-input {
  width: 80px;
}

.goal-status {
  color: var(--text-muted, #666);
}

.badger-week { margin-top: .5rem; }

.calendar-strip { text-align: center; }
.month-label { font-weight: 700; margin-bottom: .5rem; }
.date-chips { display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: nowrap; overflow: hidden; }
.chip {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: #f4f4f4; border: 2px solid transparent; font-weight: 700;
  font-size: 1.2rem;
  flex: 0 0 auto;
  position: relative;
}
.chip--active { background: #F2C330; border: none; color: transparent; }
.chip--active::before {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
}
.chip--today { border-color: #000; border-width: 2pt; width: 58px; height: 58px; }
.chip--disabled { opacity: .35; pointer-events: none; }

/* (Removed badge) When active, the number is replaced by the centered check */


.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .5rem;
}

.day {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: center;
}

.day-label {
  font-size: .8rem;
  color: var(--text-muted, #666);
}

.day button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border, #ddd);
  background: var(--surface, #fff);
  border-radius: 8px;
}

.day button.is-active {
  border-color: #eab308; /* primary yellow */
  background: #fef9c3;
}

.progress-wrap {
  margin-top: 1rem;
}

.progress-text {
  font-size: .9rem;
  color: #000;
  margin-bottom: .25rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--border, #eee);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #F2C330; /* primary yellow */
  width: 0%;
}

.badger-actions {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.badger-stats { display: flex; gap: 1rem; margin-top: 1rem; justify-content: center; }
.stat-card { background: #F2C330; border-radius: 12px; padding: 1rem 1.25rem; min-width: 160px; text-align: center; border: none; box-shadow: none; }
.stat-card--secondary { background: #F2C330; }
.stat-card--clickable { cursor: pointer; position: relative; z-index: 12; border: 2px solid transparent; }
.stat-card--clickable.is-active { border-color: #fff; }
.stat-value { font-size: 32px; font-weight: 800; }
.stat-label { color: #5a4a00; font-weight: 600; }

/* Remove any default hover shadows */
.stat-card:hover { box-shadow: none; }

#stat-quarter {
  color: #E08D34;
}

@media (max-width: 700px) {
  .days-grid { grid-template-columns: repeat(7, minmax(36px, 1fr)); }
}

/* Mobile: match page background to app container */
@media (max-width: 700px) {
  body { background-color: #F0DA60; }
}


/* Calendar Modal */
.calendar-modal { max-width: 420px; }
.modal { position: absolute; inset: 0; display: none; }
.modal.is-open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(240,218,96,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 32px; z-index: 10; display: flex; align-items: center; justify-content: center; }
.modal-content { position: relative; max-width: 340px; background: #fff; border-radius: 32px; padding: 2rem; z-index: 11; }

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.calendar-title { font-weight: 700; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 30px); gap: 4px; justify-content: center; }
.calendar-cell { width: 30px; height: 30px; box-sizing: border-box; display: grid; place-items: center; border-radius: 9999px; border: 1px solid #eee; }
.calendar-cell--muted { opacity: .4; }
.calendar-cell--disabled { opacity: .35; pointer-events: none; }
.calendar-cell--active { background: #F2C330; border-color: transparent; font-weight: 700; }
.calendar-hint { color: #666; font-size: .85rem; margin-top: .5rem; }
.calendar-actions { display: flex; justify-content: flex-end; margin-top: .75rem; }

/* Disable state for month nav */
.calendar-header .btn[disabled] { opacity: .4; pointer-events: none; }

/* Donut overall text */
.donut-overall { display: block; margin-top: .25rem; color: var(--text-muted, #666); font-size: .95rem; }

