:root {
  --pine: #b5683a;
  --pine-dark: #8a4a24;
  --pine-ink: #3a1f10;
  --board: #1e463c;
  --chalk: #e8f0c8;
  --honey: #e8b84a;
  --ink: #2c2416;
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #6e3f22;
  min-height: 100dvh;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

.room {
  min-height: 100dvh;
  padding: calc(12px + var(--safe-t)) 12px calc(12px + var(--safe-b));
  display: flex;
  justify-content: center;
}

.desk {
  width: min(860px, 100%);
  min-height: calc(100dvh - 24px - var(--safe-t) - var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    repeating-linear-gradient(
      90deg,
      #c4844a 0 18px,
      #be7c42 18px 20px,
      #c98a50 20px 38px,
      #b5683a 38px 40px
    );
  border-radius: 22px;
  padding: 14px 14px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, .35),
    0 18px 0 var(--pine-dark),
    0 28px 40px rgba(30, 10, 0, .35);
}

.board {
  background: var(--board);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow:
    inset 0 0 0 3px #16352e,
    inset 0 0 40px rgba(0, 0, 0, .25);
}

.board-kicker {
  margin: 0 0 8px;
  font-family: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  font-size: clamp(36px, 8vw, 52px);
  letter-spacing: .12em;
  color: var(--chalk);
  font-weight: 400;
  line-height: 1.1;
}

.caption {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #c5d9b8;
}

.lessons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 8px;
}

.lesson-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 120px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--board);
  box-shadow:
    inset 0 0 0 3px #16352e,
    inset 0 0 40px rgba(0, 0, 0, .2),
    0 6px 0 #16352e;
  transition: transform .15s ease, box-shadow .15s ease;
}

.lesson-card:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 0 0 3px #16352e,
    inset 0 0 40px rgba(0, 0, 0, .2),
    0 3px 0 #16352e;
}

.lesson-grade {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #9bb89a;
}

.lesson-name {
  font-family: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 6vw, 36px);
  color: #fff6c2;
  letter-spacing: .08em;
  line-height: 1.15;
}

.lesson-desc {
  font-size: 17px;
  font-weight: 700;
  color: #c5d9b8;
}

@media (prefers-reduced-motion: reduce) {
  .lesson-card { transition: none; }
  .lesson-card:active { transform: none; }
}
