:root {
  --bg: #07111f;
  --bg-secondary: #0c1830;
  --panel: rgba(14, 24, 48, 0.86);
  --panel-border: rgba(151, 188, 255, 0.14);
  --text: #f6f8ff;
  --muted: #9eb0d2;
  --accent: #5fd4ff;
  --accent-strong: #3da8ff;
  --health: linear-gradient(90deg, #ff7fa7, #ff5e8e);
  --energy: linear-gradient(90deg, #ffd45f, #ffb347);
  --fullness: linear-gradient(90deg, #78f29d, #4dcf79);
  --motivation: linear-gradient(90deg, #bc84ff, #8c6bff);
  --xp: linear-gradient(90deg, #55d9ff, #308dff);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 120, 255, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(95, 212, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #091326 55%, #070d18 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.app-shell {

}

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 18px;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  min-height: 56px;
}

.stats-bar__left,
.stats-bar__center,
.stats-bar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-item span:not(.stat-label) {
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-item h1 {
  font-size: 1.5rem;
  margin: 0;
}

.pet-summary,
.panel,
.center-stage,
.bottom-nav {
  position: relative;
  overflow: hidden;
}

.pet-summary::before,
.panel::before,
.center-stage::before,
.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%);
  pointer-events: none;
}



.eyebrow,
.panel__hint,
.progress-label,
.panel-copy {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.45rem;
}

.screen-grid,
.tasks-layout {
  display: grid;
  gap: 18px;
}

.screen-grid {
  align-items: start;
  grid-template-columns: minmax(300px, 0.95fr) minmax(380px, 1.15fr) minmax(280px, 0.8fr);
}

.screen-grid--two-col {
  grid-template-columns: minmax(300px, 1fr) minmax(500px, 2fr);
}

.tasks-column {
  display: grid;
  gap: 18px;
}

.column-stack {
  display: grid;
  gap: 18px;
}

.screen {
  display: none;
}

.screen--active {
  display: block;
}

.panel,
.center-stage {
  padding: 20px;
}

.panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.center-stage {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 10px;
  align-self: start;
  background:
    radial-gradient(circle at bottom center, rgba(88, 103, 255, 0.24), transparent 35%),
    linear-gradient(180deg, rgba(11, 22, 44, 0.8), rgba(10, 19, 37, 0.92));
}

.center-stage__header {
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}

.progress {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress--wide {
  margin-top: 12px;
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
}

.progress__fill--xp {
  background: var(--xp);
}

.progress__fill--health {
  background: var(--health);
}

.progress__fill--energy {
  background: var(--energy);
}

.progress__fill--fullness {
  background: var(--fullness);
}

.progress__fill--motivation {
  background: var(--motivation);
}

.progress-label {
  margin-top: 10px;
  font-size: 0.95rem;
}

.model-stage {
  min-height: 70vh;
  display: grid;
  place-items: end center;
  margin: 28px 0;
  border-radius: 18px;
  background-image: url("src/Backgrounds/Background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slime-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: end center;
}
.slime-character {
  position: relative;
  width: 100%;
  height: 100%;
}
.slime-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slime-background {
  z-index: 1;
}

.slime-base {
  z-index: 2;
}

.slime-expression {
  z-index: 3;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.slime-expression[src*="Surprised"] {
  transform: scale(1.03);
}

.stage-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.action-chip,
.primary-button,
.nav-button,
.task-button,
.shop-button {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(34, 54, 96, 0.95), rgba(18, 30, 56, 0.95));
  color: var(--text);
  border: 1px solid rgba(158, 194, 255, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-chip:hover,
.primary-button:hover,
.nav-button:hover,
.task-button:hover,
.shop-button:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 212, 255, 0.44);
  box-shadow: 0 10px 24px rgba(32, 92, 182, 0.22);
}

.action-chip,
.primary-button,
.nav-button {
  padding: 14px 16px;
  font-weight: 600;
}

.task-form {
  display: grid;
  gap: 14px;
}

.task-form input,
.task-form select {
  width: 100%;
  border: 1px solid rgba(158, 194, 255, 0.14);
  background: rgba(7, 14, 29, 0.7);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
}

.task-form label,
.task-form fieldset {
  display: grid;
  gap: 8px;
}

.task-form span,
.task-form legend {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.weekday-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.weekday-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 14, 29, 0.58);
}

.weekday-picker input {
  width: auto;
  margin: 0;
}

.task-list {
  display: grid;
  gap: 12px;
}
.tasks-column {
  overflow: visible;
  height: auto;
}


.task-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(8, 16, 30, 0.72);
  border: 1px solid rgba(158, 194, 255, 0.1);
}

.task-card__top,
.task-card__meta,
.task-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-card__top {
  justify-content: space-between;
}

.task-card__meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.task-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(39, 65, 114, 0.92), rgba(21, 36, 69, 0.92));
}

.task-card__actions {
  justify-content: flex-end;
}

.task-button {
  padding: 10px 14px;
  font-weight: 600;
}

.task-button--ghost {
  background: rgba(255, 255, 255, 0.06);
}

.status-list,
.reward-grid,
.shop-grid {
  display: grid;
  gap: 14px;
}

.status-row,
.reward-card,
.shop-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 16, 30, 0.68);
  border: 1px solid rgba(158, 194, 255, 0.1);
}

.status-row__top,
.shop-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.reward-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.reward-card strong,
.shop-card strong {
  font-size: 1.4rem;
}

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

.shop-card {
  display: grid;
  gap: 12px;
}

.shop-button {
  padding: 12px 14px;
  font-weight: 700;
}

.single-panel {
  display: grid;
}

.tasks-layout {
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1.15fr);
}

.task-list--full {
  min-height: 480px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
}

.nav-button {
  padding: 16px;
  font-weight: 700;
}

.nav-button--active {
  background: linear-gradient(180deg, rgba(53, 144, 255, 0.94), rgba(25, 92, 218, 0.9));
}

.empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(158, 194, 255, 0.14);
  border-radius: 22px;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .screen-grid,
  .tasks-layout,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .center-stage {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 12px;
  }

  .reward-grid,
  .form-row,
  .stage-actions,
  .bottom-nav {
    grid-template-columns: 1fr 1fr;
  }

  .weekday-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .reward-grid,
  .form-row,
  .stage-actions,
  .bottom-nav {
    grid-template-columns: 1fr;
  }

  .task-card__top,
  .task-card__meta,
  .task-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
