:root {
  color-scheme: light;
  --bg: #edf2f7;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --text: #142033;
  --muted: #5c6b80;
  --line: #d9e1ec;
  --blue: #0f766e;
  --green: #15803d;
  --red: #b91c1c;
  --amber: #b45309;
  --ink: #0f172a;
  --shadow: 0 24px 60px rgba(28, 45, 77, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(21, 128, 61, 0.14), transparent 30rem),
    linear-gradient(135deg, #edf2f7 0%, #f9fbfd 48%, #eef6f0 100%);
  color: var(--text);
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  max-width: 1240px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

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

.scoreboard > div {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(28, 45, 77, 0.08);
}

.score-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.scoreboard strong {
  font-size: 1.45rem;
}

.dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.side-panel,
.game-panel,
.tips-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.side-panel,
.tips-panel {
  padding: 20px;
}

.game-panel {
  padding: 20px;
}

.visual-badge {
  position: relative;
  display: grid;
  place-items: center;
  height: 170px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(20, 83, 45, 0.96), rgba(15, 118, 110, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.1) 18px 19px);
}

.leaf-mark {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 4px 72px 72px 72px;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  transform: rotate(-38deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.leaf-mark::before {
  content: "";
  position: absolute;
  left: 46px;
  top: 12px;
  width: 4px;
  height: 78px;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.72);
  transform: rotate(38deg);
}

.orbit {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.orbit-one {
  width: 140px;
  height: 140px;
}

.orbit-two {
  width: 110px;
  height: 110px;
  animation-duration: 5s;
  animation-direction: reverse;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.project-intro {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.4;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.mini-stat {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-2);
}

.mini-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-stat strong {
  display: block;
  line-height: 1.35;
}

.impact-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.impact-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.impact-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.impact-list strong {
  display: block;
  line-height: 1.35;
}

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

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
}

.icon-button:hover,
.tip:hover,
.action-button:hover,
.next-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.item-stage {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 520px;
  min-height: 300px;
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ecfdf5 0%, #ffffff 74%),
    var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.item-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dcfce7;
  border: 8px solid #bbf7d0;
  font-size: 4.8rem;
}

.item-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.item-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.item-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.item-card p {
  margin-bottom: 0;
  color: #263449;
  font-size: 1.05rem;
  line-height: 1.5;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 14px;
}

.action-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease;
}

.action-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6) opacity(0.72);
}

.recycle {
  background: #15803d;
}

.organic {
  background: #a16207;
}

.reject {
  background: #475569;
}

.ecopoint {
  background: #0f766e;
}

.feedback {
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  line-height: 1.45;
}

.next-row {
  display: flex;
  justify-content: flex-end;
  max-width: 620px;
  margin: 12px auto 0;
}

.next-button {
  min-width: 132px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.next-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.feedback.good {
  border-color: rgba(21, 128, 61, 0.35);
  background: #eefbf2;
  color: #14532d;
}

.feedback.warn {
  border-color: rgba(180, 83, 9, 0.35);
  background: #fff7ed;
  color: #7c2d12;
}

.feedback.bad {
  border-color: rgba(194, 65, 12, 0.35);
  background: #fff1ed;
  color: #7c2d12;
}

.tip-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.tip {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.tip.active {
  border-color: rgba(37, 99, 235, 0.55);
  background: #eff6ff;
}

.tip span {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

.tip small {
  color: var(--muted);
  line-height: 1.35;
}

.tip-detail {
  min-height: 160px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  line-height: 1.45;
}

.tip-detail strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.eco-meters {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.eco-meters label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.eco-meters meter {
  width: 100%;
  height: 16px;
}

@media (max-width: 980px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 18px;
    align-items: start;
  }

  .visual-badge {
    margin-bottom: 0;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .side-panel {
    display: block;
  }

  .scoreboard {
    margin-top: 14px;
  }

  .visual-badge {
    margin-bottom: 18px;
  }

  .item-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .item-icon {
    max-width: 180px;
    margin: 0 auto;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
