:root {
  --brick: #b74a2f;
  --brick-dark: #7f2e23;
  --ink: #231b18;
  --cream: #fff4dc;
  --paper: #f6deb3;
  --teal: #0f766e;
  --teal-dark: #07534e;
  --gold: #f1b83b;
  --green: #5b8e3e;
  --blue: #2f6fa3;
  --shadow: 0 14px 0 rgba(35, 27, 24, .18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(127, 46, 35, .18) 1px, transparent 1px) 0 0 / 34px 22px,
    linear-gradient(rgba(127, 46, 35, .14) 1px, transparent 1px) 0 0 / 34px 22px,
    #d9794e;
  overflow-x: hidden;
}

button {
  font: inherit;
}

.game-shell {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 10px;
}

.screen {
  display: none;
  width: min(354px, calc(100vw - 20px));
}

.screen.active {
  display: block;
}

.hero-screen,
.final-screen,
.play-screen {
  position: relative;
  min-height: min(760px, calc(100svh - 36px));
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-screen,
.final-screen {
  padding: 28px 22px;
  display: none;
  align-content: end;
}

.hero-screen.active,
.final-screen.active {
  display: grid;
}

.hero-screen::before,
.final-screen::before,
.stage-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(35, 27, 24, .1) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 46%, rgba(241, 184, 59, .16) 46% 54%, transparent 54%);
  background-size: 11px 11px, 120px 120px;
  mix-blend-mode: multiply;
}

.skyline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 210px;
  height: 250px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.skyline span {
  flex: 1;
  border: 4px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 9px, transparent 9px 19px),
    var(--brick);
  box-shadow: 7px 7px 0 rgba(35, 27, 24, .2);
}

.skyline span:nth-child(1) { height: 45%; background-color: var(--teal); }
.skyline span:nth-child(2) { height: 74%; }
.skyline span:nth-child(3) { height: 58%; background-color: var(--gold); }
.skyline span:nth-child(4) { height: 86%; }
.skyline span:nth-child(5) { height: 52%; background-color: var(--blue); }

.badge-row {
  position: absolute;
  top: 22px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.badge-row span {
  border: 3px solid var(--ink);
  background: var(--paper);
  padding: 7px 0;
  text-align: center;
  font-weight: 900;
  font-size: .78rem;
  box-shadow: 4px 4px 0 rgba(35, 27, 24, .15);
}

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

h1 {
  position: relative;
  margin-bottom: 10px;
  max-width: 100%;
  font-size: clamp(2.7rem, 12vw, 3.7rem);
  line-height: .96;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 var(--gold);
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.13;
  letter-spacing: 0;
}

.lead {
  position: relative;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 800;
}

.primary,
.option,
.mini-action {
  min-height: 48px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.primary {
  position: relative;
  width: 100%;
  padding: 14px 18px;
  font-size: 1.12rem;
}

.primary:active,
.option:active,
.mini-action:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--ink);
}

.play-screen {
  padding: 14px;
}

.hud {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px 10px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: 0;
}

.hud h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.scorebox {
  min-width: 62px;
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--brick);
  color: #fff7e8;
  box-shadow: 5px 5px 0 rgba(35, 27, 24, .18);
  font-weight: 950;
  font-size: 1.35rem;
}

.scorebox small {
  font-size: .72rem;
  margin-left: 2px;
}

.progress-track {
  height: 12px;
  margin: 0 4px 12px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--paper);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--teal) 0 16px, var(--green) 16px 32px);
  transition: width .35s ease;
}

.stage-panel {
  position: relative;
  min-height: 540px;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff7e8;
  overflow: hidden;
}

.stage-panel > * {
  position: relative;
}

.story {
  border-left: 8px solid var(--brick);
  padding: 8px 0 8px 12px;
  font-weight: 750;
  line-height: 1.55;
}

.question-card h3 {
  margin: 14px 0 0;
  font-size: 1.24rem;
  line-height: 1.28;
}

.theme-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--teal);
  color: #fff7e8;
  font-size: .82rem;
  font-weight: 950;
}

.visual {
  display: grid;
  place-items: center;
  min-height: 134px;
  margin: 12px 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.coin-stack {
  width: 220px;
  height: 96px;
  position: relative;
}

.coin-stack i {
  position: absolute;
  width: 66px;
  height: 66px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(35, 27, 24, .2);
}

.coin-stack i:nth-child(1) { left: 18px; top: 18px; }
.coin-stack i:nth-child(2) { left: 78px; top: 4px; background: #ffd66b; }
.coin-stack i:nth-child(3) { left: 138px; top: 24px; background: #d7a326; }

.answers,
.choice-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.option {
  width: 100%;
  padding: 11px 12px;
  background: #ffffff;
  text-align: left;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
}

.option:disabled {
  cursor: default;
}

.option b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: .9rem;
}

.option span {
  min-width: 0;
}

.option.correct {
  background: #b9e786;
}

.option.wrong {
  background: #ffb199;
}

.mini-visual {
  min-height: 128px;
  margin: 12px 0 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 -7px 0 rgba(35, 27, 24, .08);
  overflow: hidden;
}

.mini-visual.is-correct {
  outline: 5px solid rgba(91, 142, 62, .38);
}

.mini-visual.is-wrong {
  outline: 5px solid rgba(183, 74, 47, .35);
}

.chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 9px;
  padding: 12px;
}

.chart div {
  height: 104px;
  display: grid;
  align-items: end;
  gap: 4px;
}

.chart span {
  display: block;
  border: 3px solid var(--ink);
  border-bottom-width: 5px;
  border-radius: 8px 8px 3px 3px;
  background: var(--gold);
}

.chart div:nth-child(2) span {
  background: var(--teal);
}

.chart div:nth-child(3) span {
  background: var(--brick);
}

.chart b {
  min-height: 34px;
  text-align: center;
  font-size: .72rem;
  line-height: 1.1;
}

.goal-chart {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px;
}

.goal-chart p {
  margin: 0;
  font-weight: 950;
  font-size: .82rem;
}

.goal-chart span {
  height: 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff7e8;
  overflow: hidden;
}

.goal-chart i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--teal) 0 18px, var(--green) 18px 36px);
}

.donation-visual,
.meeting-visual,
.memory-visual,
.heritage-visual,
.choice-visual,
.tablet-visual {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 14px;
}

.donation-visual {
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
}

.donation-visual span,
.meeting-visual span,
.memory-visual span,
.heritage-visual span,
.choice-visual span,
.tablet-visual span,
.fork-visual span,
.fork-visual b {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff7e8;
  font-weight: 950;
  text-align: center;
  font-size: .82rem;
}

.donation-visual i {
  height: 10px;
  border-top: 4px solid var(--ink);
  position: relative;
}

.donation-visual i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -9px;
  border-left: 11px solid var(--ink);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.road-visual,
.map-visual,
.hall-visual,
.balance-visual {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: stretch;
}

.road-visual span,
.map-visual span,
.hall-visual span,
.balance-visual span {
  display: grid;
  place-items: center;
  padding: 8px;
  font-weight: 950;
  text-align: center;
}

.road-visual b,
.map-visual b {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(0deg, #36302d 0 20px, #514844 20px 40px);
  color: #fff;
  writing-mode: vertical-rl;
  font-size: .72rem;
}

.map-visual b::before {
  content: "道路";
}

.hall-visual b {
  display: grid;
  place-items: center;
  background: var(--brick);
  color: #fff7e8;
  writing-mode: vertical-rl;
  font-size: .8rem;
}

.balance-visual {
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  padding: 12px;
  background: #d7efe5;
}

.balance-visual b {
  height: 86px;
  position: relative;
  border-left: 5px solid var(--ink);
}

.balance-visual b::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 34px;
  width: 78px;
  border-top: 5px solid var(--ink);
}

.fork-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 13px;
}

.fork-visual b {
  grid-column: 1 / -1;
  background: var(--gold);
}

.timetable-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}

.timetable-visual span {
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff7e8;
  font-weight: 950;
}

.tablet-visual,
.choice-visual,
.meeting-visual,
.memory-visual,
.heritage-visual {
  grid-template-columns: repeat(2, 1fr);
}

.brick-visual,
.final-mosaic-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 12px;
  background: #fff7e8;
}

.brick-visual span,
.final-mosaic-visual span {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.2) 0 8px, transparent 8px 16px), var(--brick);
}

.final-mosaic-visual span:nth-child(2),
.brick-visual span:nth-child(2) {
  background-color: var(--teal);
}

.final-mosaic-visual span:nth-child(3),
.brick-visual span:nth-child(3) {
  background-color: var(--gold);
}

.final-mosaic-visual span:nth-child(4),
.brick-visual span:nth-child(4) {
  background-color: var(--blue);
}

.final-mosaic-visual span:nth-child(5),
.brick-visual span:nth-child(5) {
  background-color: var(--green);
}

.magnify-visual {
  display: grid;
  place-items: center;
  position: relative;
}

.magnify-visual span {
  width: 76px;
  height: 76px;
  border: 8px solid var(--ink);
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  position: relative;
}

.magnify-visual span::after {
  content: "";
  position: absolute;
  width: 56px;
  border-top: 9px solid var(--ink);
  right: -43px;
  bottom: -20px;
  transform: rotate(45deg);
}

.magnify-visual b {
  position: absolute;
  font-size: .9rem;
}

.timeline-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 7px;
  padding: 12px;
  position: relative;
}

.timeline-visual::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  border-top: 5px solid var(--ink);
}

.timeline-visual span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--gold);
  font-weight: 950;
  font-size: .82rem;
}

.map-game {
  display: grid;
  gap: 10px;
}

.map-strip {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  min-height: 170px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.zone {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-weight: 950;
}

.road {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(0deg, #36302d 0 24px, #514844 24px 48px);
  color: #fff;
  font-size: .78rem;
  writing-mode: vertical-rl;
  font-weight: 950;
}

.token-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.token {
  min-height: 58px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.token.selected {
  outline: 5px solid var(--gold);
}

.bucket-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 10px 0;
}

.bucket {
  min-height: 90px;
  padding: 10px;
  border: 3px dashed var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 950;
}

.course-card {
  min-height: 54px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.course-card.selected {
  outline: 5px solid var(--gold);
}

.course-card.done {
  opacity: .45;
}

.dilemma {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.side {
  min-height: 118px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 950;
}

.side:nth-child(2) {
  background: #d7efe5;
}

.feedback {
  min-height: 48px;
  padding: 9px 4px 0;
  font-weight: 950;
  line-height: 1.35;
}

.mosaic {
  position: relative;
  width: min(100%, 310px);
  min-height: 250px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.mosaic > span {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--brick);
  color: #fff7e8;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  font-size: .82rem;
  font-weight: 950;
  box-shadow: 5px 5px 0 rgba(35, 27, 24, .16);
}

.mosaic > span:nth-child(2) { background: var(--teal); }
.mosaic > span:nth-child(3) { background: var(--gold); color: var(--ink); }
.mosaic > span:nth-child(4) { background: var(--blue); }
.mosaic > span:nth-child(5) { background: var(--green); }

.school-scoreboard {
  width: min(100%, 318px);
  min-height: 390px;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: 0 8px 8px;
}

.school-roof {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: end center;
}

.school-roof::before {
  content: "";
  width: 92%;
  height: 52px;
  display: block;
  border: 4px solid var(--ink);
  border-bottom: 0;
  background: var(--brick-dark);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.school-roof span {
  position: absolute;
  bottom: 7px;
  padding: 4px 9px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--gold);
  font-size: .78rem;
  font-weight: 950;
}

.school-body {
  display: grid;
  grid-template-rows: repeat(20, 1fr);
  border: 4px solid var(--ink);
  border-bottom: 0;
  background: #8d8d8d;
  box-shadow: 7px 7px 0 rgba(35, 27, 24, .16);
}

.school-layer {
  min-height: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 34px;
  align-items: center;
  gap: 5px;
  padding: 1px 5px;
  border-bottom: 2px solid rgba(35, 27, 24, .55);
  background:
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px) 0 0 / 31px 100%,
    var(--brick);
}

.school-layer:nth-child(even).earned {
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 14px 0 / 31px 100%,
    #c85838;
}

.school-layer.missing {
  background:
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px) 0 0 / 31px 100%,
    #b9b5ad;
  filter: grayscale(1);
  opacity: .86;
}

.school-layer i {
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 3px 3px 0 0;
  background: #fff4dc;
}

.school-layer.missing i {
  background: #dedbd3;
}

.school-layer b {
  color: #fff7e8;
  text-align: right;
  font-size: .66rem;
  line-height: 1;
}

.school-layer.missing b {
  color: #514844;
}

.school-base {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: end;
  gap: 6px;
  padding: 0 6px;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(35, 27, 24, .16);
}

.school-base span {
  align-self: center;
  font-size: .78rem;
  font-weight: 950;
  text-align: center;
}

.school-base b {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--teal);
  color: #fff7e8;
  font-size: .95rem;
}

.school-scoreboard.complete .school-roof::before {
  background: var(--brick);
}

.school-scoreboard.complete .school-body {
  background: var(--brick);
}

.passcode {
  position: relative;
  margin: 12px 0 18px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 950;
}

.mini-action {
  width: 100%;
  padding: 9px 10px;
  background: var(--teal);
  color: #fff;
}

@media (max-width: 380px) {
  .game-shell {
    padding: 10px;
  }

  .hero-screen,
  .final-screen,
  .play-screen {
    min-height: calc(100svh - 20px);
  }

  .stage-panel {
    padding: 12px;
    min-height: 500px;
  }

  .hud h2 {
    font-size: 1.15rem;
  }
}

/* Reference style refresh: Google Drive PDF "永樂國小歷史建築文資教案成果說明" */
:root {
  --brick: #a83f2f;
  --brick-dark: #6f2b24;
  --ink: #1f1f1f;
  --muted-ink: #57524b;
  --cream: #fbfaf5;
  --paper: #ffffff;
  --sheet: #f3f0e8;
  --teal: #315f72;
  --teal-dark: #223f4c;
  --gold: #d2aa55;
  --green: #637b48;
  --blue: #365f87;
  --shadow: 0 18px 34px rgba(31, 31, 31, .14);
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(31, 31, 31, .035) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(168, 63, 47, .12) 0 4px, transparent 4px 100%),
    var(--sheet);
}

.game-shell {
  padding: 18px 10px;
  max-width: 100vw;
  overflow-x: hidden;
}

.screen {
  width: 100%;
  max-width: 390px;
  min-width: 0;
}

.hero-screen,
.final-screen,
.play-screen {
  min-height: min(760px, calc(100svh - 36px));
  border: 1px solid #d8d1c4;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-screen::before,
.final-screen::before,
.stage-panel::before {
  background:
    linear-gradient(90deg, transparent 0 54px, rgba(168, 63, 47, .55) 54px 56px, transparent 56px),
    linear-gradient(rgba(31, 31, 31, .075) 1px, transparent 1px) 0 0 / 100% 28px;
  mix-blend-mode: normal;
}

.hero-screen::after,
.play-screen::after,
.final-screen::after {
  content: "永樂國小歷史建築｜青年校園文資參與保存行動";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  color: var(--muted-ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

.hero-screen,
.final-screen {
  padding: 86px 26px 28px;
  align-content: start;
}

.skyline {
  display: none;
}

.badge-row {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 8px 0 30px 34px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.badge-row span {
  border: 1px solid #b8afa1;
  border-radius: 0;
  background: #f6f3eb;
  box-shadow: none;
  color: var(--muted-ink);
  font-size: .76rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 16px 34px;
  font-size: 2.18rem;
  line-height: 1.16;
  text-shadow: none;
  max-width: calc(100% - 34px);
  overflow-wrap: anywhere;
}

h1::before {
  content: "個人教案成果呈現說明任務單";
  display: block;
  margin-bottom: 10px;
  color: var(--brick-dark);
  font-size: .88rem;
  font-weight: 900;
}

h1 span:nth-child(n + 2) {
  font-size: .82em;
}

h2 {
  line-height: 1.2;
}

.lead {
  margin-left: 34px;
  color: var(--muted-ink);
  font-size: 1rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.primary,
.option,
.mini-action,
.token,
.course-card {
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: none;
}

.primary,
.mini-action {
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.primary {
  margin-left: 34px;
  width: calc(100% - 34px);
  max-width: calc(100% - 34px);
}

.primary:active,
.option:active,
.mini-action:active {
  transform: translateY(1px);
  box-shadow: none;
}

.play-screen {
  padding: 58px 18px 14px;
}

.hud {
  border-bottom: 2px solid var(--ink);
  padding: 0 0 12px 34px;
  min-width: 0;
}

.eyebrow {
  color: var(--brick-dark);
  font-size: .78rem;
  font-weight: 900;
}

.hud h2 {
  font-size: 1.28rem;
  overflow-wrap: anywhere;
}

.scorebox {
  min-width: 66px;
  min-height: 58px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #f6f3eb;
  box-shadow: none;
  color: var(--ink);
}

.scorebox::before {
  content: "完成";
  font-size: .66rem;
  color: var(--muted-ink);
}

.progress-track {
  height: 7px;
  margin: 12px 0 14px 34px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #ece7dc;
}

.progress-track span {
  background: var(--brick);
}

.stage-panel {
  min-height: 520px;
  padding: 18px 16px 18px 50px;
  border: 1px solid #d8d1c4;
  border-radius: 0;
  background: var(--paper);
}

.question-card h3 {
  margin-top: 12px;
  font-size: 1.16rem;
}

.theme-pill {
  border: 1px solid var(--brick-dark);
  border-radius: 0;
  background: #fff;
  color: var(--brick-dark);
  font-size: .78rem;
}

.story {
  border-left: 4px solid var(--brick);
  color: var(--muted-ink);
  font-weight: 650;
}

.mini-visual,
.visual,
.map-strip,
.side,
.bucket,
.passcode {
  border: 1px solid #b8afa1;
  border-radius: 0;
  background: #f8f6f0;
  box-shadow: none;
}

.mini-visual {
  min-height: 108px;
}

.option {
  min-height: 44px;
  background: #fff;
  font-weight: 700;
}

.option b {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #f6f3eb;
}

.option.correct {
  background: #eef5e8;
  border-color: var(--green);
}

.option.wrong {
  background: #fbebe7;
  border-color: var(--brick);
}

.feedback {
  padding-left: 34px;
  color: var(--muted-ink);
  font-weight: 800;
}

.donation-visual span,
.meeting-visual span,
.memory-visual span,
.heritage-visual span,
.choice-visual span,
.tablet-visual span,
.fork-visual span,
.fork-visual b,
.timetable-visual span,
.chart span,
.timeline-visual span,
.brick-visual span,
.final-mosaic-visual span,
.mosaic > span,
.school-roof span,
.school-body,
.school-base,
.school-base b {
  border-radius: 0;
  box-shadow: none;
}

.mosaic {
  margin-top: 28px;
}

.mosaic > span {
  border-width: 1px;
}

.passcode {
  font-size: 1.08rem;
}

@media (max-width: 380px) {
  .hero-screen,
  .final-screen {
    padding-left: 18px;
    padding-right: 18px;
  }

  .play-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1,
  .lead,
  .primary,
  .hud,
  .progress-track,
  .feedback,
  .badge-row {
    margin-left: 24px;
  }

  .primary {
    width: calc(100% - 24px);
  }

  .stage-panel {
    padding-left: 38px;
  }

  h1 {
    font-size: 1.92rem;
  }
}
