:root {
  --paper: #fff9ec;
  --paper-2: #fff3d8;
  --ink: #29333a;
  --muted: #68747a;
  --river: #6bbfd1;
  --river-dark: #277d8e;
  --leaf: #5f9d67;
  --mango: #f5b54b;
  --coral: #ee765f;
  --plum: #6f5a8e;
  --shadow: 0 18px 46px rgba(41, 51, 58, 0.14);
  --line: rgba(41, 51, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-rounded, "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(107, 191, 209, 0.2), transparent 25rem),
    linear-gradient(135deg, #f7f1dd 0%, #ecf5e8 42%, #f8efe4 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.quest-board,
.side-panel {
  min-width: 0;
}

.hero-panel {
  min-height: 250px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  border: 2px solid rgba(39, 125, 142, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 249, 236, 0.98), rgba(230, 247, 238, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(39, 125, 142, 0.06) 39px 40px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow,
.panel-kicker,
.island-type {
  margin: 0 0 8px;
  color: var(--river-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8em;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5.4vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.day-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.mascot-stage {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.capy-hero-image {
  position: relative;
  z-index: 1;
  width: 112%;
  max-width: 310px;
  filter: none;
  transform: translate(2px, 8px);
}

.status-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 10px;
}

.app-tools {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.version-pill,
.tool-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.92);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(41, 51, 58, 0.06);
  font-size: 0.82rem;
  font-weight: 900;
}

.tool-button {
  color: #fffef8;
  background: var(--river-dark);
}

.status-item,
.quiet-button,
.planner-panel,
.route-panel,
.island,
.word-panel,
.bonus-panel,
.shop-panel,
.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.9);
  box-shadow: 0 10px 26px rgba(41, 51, 58, 0.08);
}

.status-item {
  min-height: 76px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.status-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-item strong {
  font-size: 1.8rem;
  line-height: 1;
}

.quiet-button {
  min-width: 86px;
  padding: 12px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fffef8;
  border-color: rgba(111, 90, 142, 0.18);
  font-weight: 900;
}

.quiet-button span {
  font-size: 0.78rem;
}

.planner-panel {
  margin-top: 16px;
  padding: 18px;
}

.planner-controls {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.period-tabs,
.minute-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.period-tab,
.minute-chip,
.mini-minute {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(41, 51, 58, 0.14);
  border-radius: 8px;
  background: #fffef8;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.period-tab.active,
.minute-chip.active,
.mini-minute.active {
  color: #fffef8;
  background: var(--river-dark);
  border-color: var(--river-dark);
}

.plan-total {
  min-width: 76px;
  padding: 9px 10px;
  border-radius: 999px;
  color: #fffef8;
  background: var(--plum);
  font-weight: 950;
  text-align: center;
}

.planner-body {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

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

.time-lane {
  min-height: 148px;
  padding: 10px;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.74);
}

.time-lane.active {
  border-color: rgba(39, 125, 142, 0.42);
  box-shadow: 0 0 0 3px rgba(107, 191, 209, 0.16);
}

.lane-heading {
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.lane-heading span {
  font-size: 1rem;
  font-weight: 950;
}

.lane-heading small {
  color: var(--muted);
  font-weight: 850;
}

.lane-empty {
  margin: 0;
  padding: 22px 10px;
  border: 1px dashed rgba(41, 51, 58, 0.18);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.plan-card {
  margin-top: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background: #fffef8;
}

.plan-card.done {
  background: rgba(225, 244, 232, 0.9);
  border-color: rgba(95, 157, 103, 0.36);
}

.plan-card-top,
.plan-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.plan-card-top strong {
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.remove-plan {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 50%;
  background: rgba(238, 118, 95, 0.12);
  color: var(--coral);
  font-weight: 950;
}

.plan-meta span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(107, 191, 209, 0.14);
  color: var(--river-dark);
  font-size: 0.72rem;
  font-weight: 950;
}

.plan-minute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-minute {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 0.72rem;
}

.activity-deck {
  max-height: 520px;
  padding-right: 2px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.activity-card {
  width: 100%;
  min-height: 66px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background: #fffef8;
  color: var(--ink);
  text-align: left;
}

.activity-card.planned {
  border-color: rgba(95, 157, 103, 0.36);
  background: rgba(225, 244, 232, 0.76);
}

.activity-card strong,
.activity-card span,
.activity-card em {
  display: block;
}

.activity-card strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.activity-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.activity-card em {
  color: var(--coral);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
}

.route-panel {
  position: relative;
  margin-top: 16px;
  padding: 18px;
  overflow: hidden;
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.completion-badge {
  min-width: 62px;
  padding: 9px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--river-dark);
  font-weight: 950;
  text-align: center;
}

.quest-map {
  position: relative;
  min-height: 286px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(107, 191, 209, 0.18), transparent 130px),
    radial-gradient(circle at 80% 68%, rgba(245, 181, 75, 0.18), transparent 150px),
    linear-gradient(135deg, rgba(255, 254, 248, 0.82), rgba(225, 244, 232, 0.74));
}

.work-map {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.map-place,
.hot-spring-hall {
  position: relative;
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 254, 248, 0.9);
  border-radius: 50%;
  background: #fffef8;
  box-shadow: 0 10px 22px rgba(41, 51, 58, 0.1);
  text-align: center;
}

.map-place strong,
.hot-spring-hall strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.map-place.blue {
  background: linear-gradient(180deg, rgba(93, 165, 224, 0.24), #fffef8);
  border-color: rgba(93, 165, 224, 0.5);
}

.map-place.green {
  background: linear-gradient(180deg, rgba(95, 157, 103, 0.24), #fffef8);
  border-color: rgba(95, 157, 103, 0.52);
}

.map-place.orange {
  background: linear-gradient(180deg, rgba(245, 181, 75, 0.28), #fffef8);
  border-color: rgba(245, 181, 75, 0.58);
}

.map-place.red {
  background: linear-gradient(180deg, rgba(238, 118, 95, 0.24), #fffef8);
  border-color: rgba(238, 118, 95, 0.52);
}

.map-check {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(41, 51, 58, 0.22);
  border-radius: 50%;
  background: #fffef8;
}

.map-place.done .map-check,
.map-check.done {
  border-color: var(--leaf);
  background: var(--leaf);
}

.map-place.done .map-check::after,
.map-check.done::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(42deg);
}

.exchange-map-zone {
  min-height: 260px;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: center;
  border: 1px solid rgba(41, 51, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.72);
}

.exchange-zone-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--river-dark);
  font-weight: 950;
}

.exchange-zone-heading .map-check {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
}

.hot-spring-hall {
  min-height: 166px;
  padding: 24px 14px 16px;
  border-radius: 50% 50% 34% 34%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 254, 248, 0.92) 0 28px, transparent 29px),
    linear-gradient(180deg, rgba(107, 191, 209, 0.24), rgba(255, 254, 248, 0.94));
  border-color: rgba(107, 191, 209, 0.44);
}

.hall-rooms {
  width: 100%;
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.hall-rooms span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 254, 248, 0.8);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.capy-runner {
  display: none;
}

.island-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.island {
  overflow: hidden;
}

.island-header {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.island-score {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245, 181, 75, 0.22);
  color: #81551a;
  font-size: 0.8rem;
  font-weight: 950;
}

.tasks {
  display: grid;
}

.task-row {
  position: relative;
  min-height: 62px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 248, 0.74);
}

.task-row:last-child {
  border-bottom: 0;
}

.island-stamp-pool {
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.island-stamp-pool.blue {
  background: linear-gradient(180deg, rgba(93, 165, 224, 0.12), rgba(93, 165, 224, 0.22));
}

.island-stamp-pool.green {
  background: linear-gradient(180deg, rgba(95, 157, 103, 0.12), rgba(95, 157, 103, 0.22));
}

.island-stamp-pool.orange {
  background: linear-gradient(180deg, rgba(245, 181, 75, 0.14), rgba(245, 181, 75, 0.24));
}

.island-stamp-pool.red {
  background: linear-gradient(180deg, rgba(238, 118, 95, 0.12), rgba(238, 118, 95, 0.22));
}

.island-stamp-pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.island-stamp-pool-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.island-stamp-pool-head strong {
  min-width: 46px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(41, 51, 58, 0.86);
  color: #fffef8;
  font-size: 0.82rem;
  line-height: 1;
  text-align: center;
}

.stamp-pile-area {
  position: relative;
  height: 92px;
  overflow: hidden;
  border: 2px dashed rgba(41, 51, 58, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 74%, rgba(255, 254, 248, 0.58), transparent 64%),
    rgba(255, 254, 248, 0.3);
}

.stamp-pile-area.has-stamps {
  border-color: rgba(41, 51, 58, 0.24);
}

.pile-stamp {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s));
  transform-origin: center;
}

.empty-stamp-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.task-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.task-mark {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(41, 51, 58, 0.28);
  border-radius: 8px;
  background: #fffef8;
}

.task-row:has(input:focus-visible) .task-mark,
.reward-row:focus-visible,
.quiet-button:focus-visible {
  outline: 3px solid rgba(238, 118, 95, 0.36);
  outline-offset: 2px;
}

.task-row:has(input:checked) {
  background: rgba(225, 244, 232, 0.88);
}

.task-row:has(input:checked) .task-mark {
  border-color: var(--leaf);
  background: var(--leaf);
}

.task-row:has(input:checked) .task-mark::after {
  content: "";
  display: block;
  width: 7px;
  height: 13px;
  margin: 2px 0 0 8px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(42deg);
}

.task-name,
.task-note {
  display: block;
}

.task-name {
  font-weight: 950;
  line-height: 1.25;
}

.task-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.task-points {
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 0.78rem;
  font-weight: 950;
}

.capy-stamp-image {
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 3px 5px rgba(41, 51, 58, 0.14));
}

.capy-stamp-image.mini {
  width: 26px;
  height: 26px;
}

.capy-stamp-image.preview {
  width: 54px;
  height: 54px;
}

.capy-stamp-image.settled {
  width: 30px;
  height: 30px;
}

.capy-stamp-image.pile {
  width: 31px;
  height: 31px;
}

.side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.word-panel,
.bonus-panel,
.shop-panel,
.history-panel {
  padding: 16px;
}

.panel-heading {
  margin-bottom: 14px;
}

.word-intro {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.word-list,
.bonus-list,
.reward-list {
  display: grid;
  gap: 10px;
}

.word-card {
  padding: 12px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef8;
}

.word-card.used {
  background: rgba(225, 244, 232, 0.9);
  border-color: rgba(95, 157, 103, 0.35);
}

.word-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.word-card input,
.word-card select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(41, 51, 58, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.word-card textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid rgba(41, 51, 58, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.word-card input:focus,
.word-card select:focus,
.word-card textarea:focus {
  outline: 3px solid rgba(238, 118, 95, 0.26);
  border-color: rgba(238, 118, 95, 0.55);
}

.word-use-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.word-use-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--leaf);
}

.word-use-row em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--leaf);
  font-style: normal;
  font-weight: 950;
}

.bonus-row {
  min-height: 58px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef8;
}

.bonus-row .task-mark {
  width: 24px;
  height: 24px;
}

.bank-row {
  margin-bottom: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: #29333a;
  color: #fffef8;
  font-weight: 900;
}

.bank-row strong {
  font-size: 1.7rem;
}

.exchange-pool {
  display: grid;
  gap: 12px;
}

.counter-scene {
  min-height: 206px;
  padding: 14px;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(223, 244, 232, 0.86), rgba(255, 249, 236, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(39, 125, 142, 0.05) 49px 50px);
}

.counter-capy {
  min-height: 178px;
  padding-top: 160px;
  border-radius: 0;
  background: url("./assets/capybara-captain-tight.png") center 4px / 106px auto no-repeat;
  color: #5a351f;
  box-shadow: none;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.voucher-slot {
  min-height: 82px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(41, 51, 58, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.78);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  overflow: hidden;
}

.sliding-voucher {
  width: 100%;
  min-height: 64px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 9px;
  align-items: center;
  border: 1px solid rgba(238, 118, 95, 0.28);
  border-radius: 8px;
  background: #fffef8;
  color: var(--ink);
  box-shadow: 0 12px 22px rgba(41, 51, 58, 0.12);
  animation: voucherSlide 520ms ease both;
}

.sliding-voucher span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(238, 118, 95, 0.14);
  color: var(--coral);
  font-weight: 950;
}

.sliding-voucher strong,
.sliding-voucher small {
  min-width: 0;
}

.stamp-designer {
  padding: 10px;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background: #fffef8;
}

.stamp-designer > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.stamp-preview {
  min-height: 78px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.72);
}

.stamp-preview-strip {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stamp-preview strong {
  font-size: 0.92rem;
}

.stamp-preview small {
  align-self: start;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.3;
}

.reward-row {
  width: 100%;
  min-height: 64px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef8;
  color: var(--ink);
  text-align: left;
}

.reward-row strong,
.reward-row small {
  display: block;
}

.reward-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.reward-row em {
  flex: 0 0 auto;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--plum);
  font-style: normal;
  font-weight: 950;
}

.reward-row:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.reward-row[data-type="sticker"] em {
  background: var(--leaf);
}

.honor-wall,
.voucher-vault,
.settled-stamp-pool {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.capy-island-pool {
  display: grid;
  gap: 10px;
}

.settlement-island {
  min-height: 120px;
  padding: 14px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 254, 248, 0.8), transparent 34px),
    linear-gradient(180deg, rgba(223, 244, 232, 0.96), rgba(95, 157, 103, 0.28));
  box-shadow: inset 0 -10px 0 rgba(95, 157, 103, 0.12);
}

.settlement-capy {
  grid-row: span 2;
  min-height: 122px;
  padding-top: 104px;
  border-radius: 0;
  background: url("./assets/capybara-captain-tight.png") center 3px / 74px auto no-repeat;
  color: #5a351f;
  box-shadow: none;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.settlement-island strong {
  align-self: end;
  font-size: 2rem;
  line-height: 1;
}

.settlement-island > span {
  align-self: start;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.settled-stamp-bed {
  display: grid;
  gap: 8px;
}

.real-stamp-board {
  max-height: 360px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  overflow-y: auto;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.9), rgba(255, 249, 236, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(41, 51, 58, 0.04) 36px 37px);
}

.settled-batch {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.86);
}

.spent-stamp.real-stamp {
  display: inline-flex;
  opacity: 0.86;
  transform: rotate(-3deg);
}

.spent-stamp.real-stamp:nth-child(3n) {
  transform: rotate(4deg);
}

.spent-stamp.real-stamp:nth-child(5n) {
  opacity: 0.74;
}

.settled-stamps em {
  padding: 2px 6px;
  align-self: center;
  border-radius: 999px;
  background: rgba(41, 51, 58, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
}

.settled-batch strong {
  color: var(--river-dark);
  font-size: 0.82rem;
}

.settled-batch small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.honor-grid,
.voucher-list {
  display: grid;
  gap: 9px;
}

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

.honor-item,
.saved-voucher {
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(41, 51, 58, 0.12);
  border-radius: 8px;
  background: #fffef8;
}

.honor-item {
  min-height: 104px;
  place-items: center;
  text-align: center;
}

.honor-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(245, 181, 75, 0.28);
  color: #81551a;
  font-weight: 950;
}

.honor-item.voucher .honor-icon {
  background: rgba(111, 90, 142, 0.18);
  color: var(--plum);
}

.honor-item strong,
.saved-voucher strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.honor-item small,
.saved-voucher small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.saved-voucher {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 249, 236, 0.94), rgba(255, 254, 248, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(238, 118, 95, 0.08) 19px 20px);
}

.saved-voucher span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(111, 90, 142, 0.16);
  color: var(--plum);
  font-weight: 950;
}

@keyframes voucherSlide {
  from {
    opacity: 0;
    transform: translateY(-56px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-row {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef8;
}

.history-row strong {
  grid-row: span 2;
  color: var(--river-dark);
  font-size: 0.88rem;
}

.history-row span {
  font-weight: 950;
}

.history-row small {
  color: var(--muted);
  font-weight: 750;
}

.empty-history {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #29333a;
  color: #fffef8;
  box-shadow: var(--shadow);
  font-weight: 900;
  transform: translateY(24px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .planner-body {
    grid-template-columns: 1fr;
  }

  .activity-deck {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px;
  }

  .mascot-stage {
    width: min(260px, 86vw);
    margin: 0 auto;
  }

  .status-strip,
  .island-grid,
  .time-lanes,
  .side-panel {
    grid-template-columns: 1fr;
  }

  .activity-deck {
    grid-template-columns: 1fr;
  }

  .status-strip {
    gap: 8px;
  }

  .status-item {
    min-height: 66px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
