@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Pixelify+Sans:wght@400;600;700&family=Space+Mono:wght@400;700&display=swap');
:root {
  --bg:#f6f7ef;
  --paper:#fffef8;
  --forest:#284d3b;
  --ink:#304436;
  --muted:#84907e;
  --line:#dfe4d5;
  --green:#6e8e58;
  --pale:#edf1e5;
  --yellow:#edc85d;
  --orange:#dba16e;
  --mono:'Space Mono',monospace;
  --sans:'DM Sans',system-ui,sans-serif
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:14px;
  -webkit-font-smoothing:antialiased
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit;
  color:inherit;
  cursor:pointer
}

button:disabled {
  cursor:not-allowed
}

button,a {
  touch-action:manipulation
}

button:focus-visible,a:focus-visible {
  outline:3px solid #bf8c34;
  outline-offset:4px
}

button {
  transition:background .16s,transform .16s,border-color .16s
}

button:active:not(:disabled) {
  transform:translateY(2px)
}

a {
  color:inherit;
  text-decoration:none
}

svg {
  width:20px;
  height:20px;
  display:block;
  flex-shrink:0
}

h1,h2,h3,p {
  margin:0
}

h2 {
  font-size:16px;
  font-weight:700
}

button svg {
  pointer-events:none
}

.site-header {
  height:94px;
  background:var(--paper);
  border-bottom:1px solid var(--line)
}

.header-inner {
  max-width:1280px;
  height:100%;
  padding:0 40px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:45px
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap
}

.brand canvas {
  width:43px;
  height:43px;
  image-rendering:pixelated
}

.brand>span {
  font-family:var(--mono);
  font-size:22px;
  letter-spacing:-1.3px;
  font-weight:700;
  color:var(--forest)
}

.brand-amp {
  color:#a0ae87;
  font-size:18px
}

.brand small {
  display:block;
  font-size:7.5px;
  letter-spacing:1.75px;
  margin-top:3px;
  color:var(--muted);
  font-weight:400
}

.main-nav {
  display:flex;
  align-self:stretch;
  gap:8px;
  align-items:center;
  flex:1;
  justify-content:center
}

.nav-link {
  background:none;
  border:0;
  display:flex;
  align-items:center;
  gap:8px;
  height:42px;
  padding:0 13px;
  font-weight:600;
  white-space:nowrap;
  color:#7c8977;
  font-size:12px;
  border-radius:6px
}

.nav-link svg {
  width:17px;
  height:17px
}

.nav-link.active {
  background:#e9efdf;
  color:var(--forest)
}

.nav-link:hover {
  background:var(--pale);
  color:var(--forest)
}

.nav-count {
  background:#dce7cd;
  font-family:var(--mono);
  font-size:9px;
  padding:2px 5px;
  border-radius:3px
}

.header-tools {
  display:flex;
  gap:10px
}

.icon-button {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  background:transparent;
  border:1px solid var(--line);
  border-radius:6px;
  color:#7b8974
}

.icon-button:hover {
  background:var(--pale)
}

.icon-button svg {
  width:16px;
  height:16px
}

.icon-button.enabled {
  background:#e9efdf;
  color:var(--forest)
}

.app-shell {
  max-width:1280px;
  margin:auto;
  padding:36px 40px 0
}

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

.eyebrow {
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:1.6px;
  color:#839274;
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:400
}

.live-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#839a62;
  flex-shrink:0
}

.welcome-bar h1 {
  font-size:32px;
  letter-spacing:-1.2px;
  font-weight:650;
  line-height:1.35;
  margin:9px 0 7px
}

.welcome-bar h1>span {
  color:#7d965f
}

.welcome-bar p {
  font-size:12px;
  color:#8b9483
}

.wallet {
  background:#fffdf2;
  border:1px solid #e9e1c6;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:15px 20px;
  box-shadow:0 3px 0 #ecebdf;
  min-width:275px
}

.seed-symbol {
  color:#9a7433;
  background:#f1d67a;
  border:2px solid #c49d49;
  width:30px;
  height:34px;
  display:grid;
  place-items:center;
  font-size:21px;
  transform:rotate(12deg);
  box-shadow:inset 3px 0 #ffe59b;
  clip-path:polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%)
}

.wallet strong {
  font-family:var(--mono);
  font-size:25px;
  font-weight:700;
  line-height:1.1;
  display:block;
  letter-spacing:-1px
}

.wallet div>span {
  display:block;
  font-size:10px;
  color:#9c957c;
  margin-top:5px
}

.wallet-divider {
  width:1px;
  height:30px;
  background:#e5dfcc;
  margin:0 2px 0 7px
}

.wallet .income strong {
  color:#799659;
  font-size:15px;
  letter-spacing:-.5px
}

.level-strip {
  display:flex;
  align-items:center;
  gap:13px;
  background:#edf0e4;
  border:1px solid #dce3cf;
  border-radius:7px;
  padding:10px 15px;
  margin-bottom:24px;
  height:64px
}

.level-strip canvas {
  height:43px;
  width:43px;
  image-rendering:pixelated;
  background:#dce3cb;
  border-radius:4px
}

.level-info {
  width:32%;
  min-width:230px
}

.level-info strong {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:14px
}

.level-info strong>span {
  font-size:10px;
  font-weight:400;
  color:#87917d
}

.xp-track {
  height:5px;
  background:#d9e0cb;
  margin-top:9px;
  border-radius:2px;
  overflow:hidden
}

.xp-track>span {
  display:block;
  height:100%;
  background:#839c61;
  width:0;
  transition:width .6s
}

.xp-label {
  font-family:var(--mono);
  font-size:9px;
  color:#8c967d;
  margin-top:20px;
  white-space:nowrap
}

.level-badge {
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.7px;
  background:var(--forest);
  color:#f5f3df;
  border-radius:3px;
  padding:7px 10px;
  margin-left:7px;
  white-space:nowrap
}

.level-tip {
  margin-left:auto;
  font-size:10px;
  color:#8c967f
}

.level-tip>span {
  font-size:17px;
  color:#9d775b;
  padding-left:7px
}

.page {
  display:none
}

.page.active {
  display:block
}

.home-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:20px;
  align-items:start
}

.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 3px 0 #e8ebdf70
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 19px;
  min-height:57px;
  gap:10px
}

.heading-with-icon {
  display:flex;
  align-items:center;
  gap:9px
}

.heading-with-icon svg {
  color:#83946d;
  width:17px;
  height:17px
}

.panel-heading h2 {
  font-size:13px;
  font-weight:650
}

.weather-button {
  display:flex;
  gap:6px;
  align-items:center;
  border:0;
  background:none;
  font-size:10px;
  color:#97987d;
  padding:0
}

.weather-button svg {
  width:15px;
  height:15px;
  color:#c8a34a
}

.tiny-chevron {
  margin-left:5px;
  color:#9da489
}

.scene-wrap {
  position:relative;
  overflow:hidden;
  background:#eee8cf
}

.scene-wrap>canvas {
  width:100%;
  height:auto;
  display:block;
  image-rendering:pixelated
}

.scene-location {
  position:absolute;
  left:16px;
  top:14px;
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:1px;
  color:#5f7556;
  display:flex;
  align-items:center;
  gap:6px;
  background:#ffffe8db;
  padding:7px 8px;
  border-radius:2px
}

.scene-location>span:last-child {
  border-left:1px solid #d5d8bd;
  margin-left:2px;
  padding-left:8px;
  font-size:8px;
  letter-spacing:0
}

.scene-location .live-dot {
  width:4px;
  height:4px
}

.speech-bubble {
  position:absolute;
  left:47%;
  top:6%;
  background:#fffef2;
  color:#506346;
  padding:10px 13px;
  border:2px solid #6d805b;
  box-shadow:3px 3px 0 #606a3b25;
  font-family:var(--mono);
  font-size:9px;
  max-width:42%;
  line-height:1.6
}

.speech-bubble:after {
  content:'';
  width:9px;
  height:9px;
  position:absolute;
  bottom:-7px;
  left:21px;
  background:#fffef2;
  border-right:2px solid #6d805b;
  border-bottom:2px solid #6d805b;
  transform:rotate(45deg)
}

.speech-bubble>span {
  color:#a8a052;
  margin-left:5px
}

.character-tag {
  position:absolute;
  bottom:12%;
  font-family:var(--mono);
  font-size:7px;
  color:#f6f4db;
  background:#4f6043c9;
  padding:4px 8px;
  letter-spacing:1px;
  border-radius:2px
}

.luiz-tag {
  left:29%;
  bottom:12%
}

.kiki-tag {
  left:61%;
  bottom:28%
}

.kiki-tag>span {
  color:#e7bb8a;
  margin-left:4px
}

.room-caption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 17px;
  font-size:10px;
  color:#8c967f;
  gap:10px;
  min-height:39px
}

.room-caption>span:first-child {
  display:flex;
  align-items:center;
  gap:6px;
  color:#718465
}

.room-caption .live-dot {
  width:5px;
  height:5px
}

.passive-note {
  font-size:9px
}

.sidebar {
  display:flex;
  flex-direction:column;
  gap:18px;
  grid-column:2;
  grid-row:1 / 3
}

.needs-panel .panel-heading {
  padding-bottom:10px
}

.small-chip {
  font-size:9px;
  background:#eaf0dd;
  padding:4px 8px;
  border-radius:4px;
  color:#809264
}

.needs-list {
  padding:0 19px 9px
}

.need {
  margin:11px 0 13px
}

.need-label {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  margin-bottom:7px
}

.need-label svg {
  width:13px;
  height:13px;
  color:var(--stat-color)
}

.need-label>span:last-child {
  margin-left:auto;
  font-family:var(--mono);
  font-size:9px;
  color:#979d8a
}

.stat-track {
  height:6px;
  background:#eeeede;
  border-radius:2px;
  overflow:hidden
}

.stat-track>span {
  display:block;
  height:100%;
  width:0;
  background:var(--stat-color);
  transition:width 1s;
  border-right:2px solid #ffffff70
}

.needs-footnote {
  padding:10px 16px 12px;
  background:#f7f8f0;
  color:#9c9f8a;
  font-size:9px;
  text-align:center;
  border-top:1px dashed #e6e8d9
}

.quest-panel .panel-heading {
  padding:15px 17px;
  border-bottom:1px solid #edf0e4
}

.quest-count {
  font-family:var(--mono);
  font-size:9px;
  color:#9ba48a
}

.quest-item {
  padding:13px 17px;
  border-bottom:1px solid #edefe4;
  display:flex;
  align-items:center;
  gap:10px
}

.quest-check {
  height:17px;
  width:17px;
  border:1px solid #d9dfc8;
  flex-shrink:0;
  border-radius:4px;
  background:#f7f8ee;
  display:grid;
  place-items:center;
  color:#6c8753;
  font-size:12px
}

.quest-item.complete .quest-check {
  background:#e3eccf
}

.quest-content {
  min-width:0;
  flex:1
}

.quest-content strong {
  font-size:11px;
  font-weight:550;
  display:block
}

.quest-content small {
  font-size:10px;
  color:#77836c;
  display:block;
  margin-top:4px
}

.quest-reward {
  font-size:9px;
  color:#b0974d;
  white-space:nowrap;
  font-family:var(--mono)
}

.quest-claim {
  font-size:9px;
  border:1px solid #cedab9;
  background:#e8eedc;
  padding:5px 8px;
  border-radius:4px
}

.quest-bottom {
  font-size:8.5px;
  color:#a0a78e;
  text-align:center;
  padding:12px 8px;
  background:#fbfbf3
}

.care-panel {
  grid-column:1
}

.care-panel .panel-heading {
  padding:16px 18px 12px;
  min-height:48px
}

.muted-label {
  font-size:9px;
  color:#a0a48d
}

.care-actions {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:9px;
  padding:0 17px 17px
}

.care-button {
  border:1px solid #e2e5d4;
  border-radius:6px;
  background:#f9faf2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:14px 4px 10px;
  min-width:0;
  position:relative;
  overflow:hidden
}

.care-button:hover:not(:disabled) {
  border-color:#9cab80;
  background:#eef3e3;
  transform:translateY(-3px);
  box-shadow:0 3px 0 #dce2cf
}

.care-icon {
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  color:#819461;
  background:#edf0de;
  border-radius:5px
}

.care-icon svg {
  width:22px;
  height:22px
}

.care-button:nth-child(2) .care-icon {
  background:#f5edce;
  color:#b59a52
}

.care-button:nth-child(3) .care-icon {
  background:#f4e8df;
  color:#bf9277
}

.care-button:nth-child(4) .care-icon {
  background:#e9efea;
  color:#82a392
}

.care-button:nth-child(5) .care-icon {
  background:#eae9ed;
  color:#9792b0
}

.care-button strong {
  font-size:10px;
  font-weight:550
}

.action-cost {
  font-size:8px;
  color:#9eaa8e;
  font-family:var(--mono)
}

.care-button:disabled {
  opacity:.55
}

.cooldown-bar {
  position:absolute;
  bottom:0;
  left:0;
  height:3px;
  background:#a5b987;
  width:0
}

.shop-preview {
  margin-top:30px
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:17px
}

.section-heading .eyebrow {
  font-size:8px;
  letter-spacing:1.5px;
  margin-bottom:7px
}

.section-heading h2 {
  font-size:20px;
  font-weight:600;
  letter-spacing:-.5px
}

.text-button {
  display:flex;
  align-items:center;
  gap:9px;
  border:0;
  background:none;
  font-size:10px;
  color:#6d825b;
  padding:5px 0
}

.text-button>span {
  font-size:16px
}

.text-button:hover {
  color:var(--forest);
  text-decoration:underline
}

.preview-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px
}

.upgrade-mini {
  display:flex;
  align-items:center;
  gap:13px;
  background:var(--paper);
  border:1px solid var(--line);
  padding:15px;
  border-radius:6px;
  min-width:0;
  position:relative
}

.item-art {
  height:51px;
  width:51px;
  display:grid;
  place-items:center;
  background:#eef0e2;
  border-radius:5px;
  flex-shrink:0;
  color:#8d9f6c
}

.item-art svg {
  width:29px;
  height:29px;
  stroke-width:1.6
}

.upgrade-mini:nth-child(2) .item-art {
  background:#f0e8d9;
  color:#bb9467
}

.upgrade-mini:nth-child(3) .item-art {
  background:#e7eddf;
  color:#88a674
}

.mini-info {
  flex:1;
  min-width:0
}

.mini-info h3 {
  font-size:12px;
  font-weight:600;
  margin-bottom:4px
}

.mini-info p {
  font-size:9px;
  color:#9a9f89;
  line-height:1.5
}

.mini-buy {
  display:flex;
  align-items:center;
  gap:4px;
  margin-top:7px;
  color:#9c8545;
  background:none;
  border:0;
  padding:0;
  font-size:9px;
  font-family:var(--mono)
}

.mini-buy:disabled {
  color:#a8ae9b
}

.mini-buy:not(:disabled):hover {
  text-decoration:underline
}

.mini-buy svg {
  width:12px;
  height:12px
}

.home-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:23px 1px 27px;
  font-size:10px;
  color:#9aa38c
}

.home-bottom>span {
  display:flex;
  gap:7px;
  align-items:center
}

.home-bottom svg {
  height:13px;
  width:13px;
  color:#a5b08f
}

.subtle {
  color:#99a18b;
  font-size:9px
}

.site-footer {
  display:flex;
  align-items:center;
  gap:21px;
  border-top:1px solid var(--line);
  min-height:68px;
  font-size:9px;
  color:#a2a892
}

.footer-brand {
  font-size:8px;
  font-family:var(--mono);
  letter-spacing:.3px;
  margin-right:auto
}

.footer-brand>span {
  padding:0 7px
}

.site-footer>span:nth-child(2) {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:8px
}

.site-footer .live-dot {
  height:4px;
  width:4px
}

.site-footer svg {
  width:12px;
  height:12px
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 0 26px
}

.page-heading h2 {
  font-size:29px;
  letter-spacing:-1px;
  margin:8px 0 10px
}

.page-heading p {
  font-size:12px;
  color:#8b967e;
  line-height:1.7
}

.outline-tag {
  font-family:var(--mono);
  font-size:9px;
  color:#81966d;
  border:1px solid #d5dec5;
  padding:9px 12px;
  border-radius:4px;
  white-space:nowrap
}

.catalog-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:19px;
  margin-bottom:30px
}

.catalog-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  padding:22px;
  display:flex;
  flex-direction:column;
  position:relative;
  min-height:245px;
  gap:13px
}

.catalog-card .item-art {
  height:62px;
  width:62px
}

.card-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start
}

.card-tag {
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.3px;
  color:#94a080;
  background:#eff2e5;
  padding:5px 7px;
  border-radius:3px
}

.catalog-card h3 {
  font-size:15px;
  line-height:1.4
}

.catalog-card p {
  font-size:11px;
  color:#8e9981;
  line-height:1.7;
  flex:1
}

.card-action {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:4px
}

.card-price {
  color:#a28b47;
  font-family:var(--mono);
  font-size:12px
}

.buy-button,.primary-button {
  border:1px solid var(--forest);
  border-bottom-width:3px;
  background:var(--forest);
  color:#fffce7;
  border-radius:5px;
  font-size:11px;
  padding:9px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  font-weight:550
}

.buy-button:hover:not(:disabled),.primary-button:hover {
  background:#3f6247
}

.buy-button:disabled {
  background:#eff1e6;
  color:#9ba58c;
  border-color:#dce2d0
}

.catalog-card.locked {
  background:#f0f2e8
}

.catalog-card.locked .item-art {
  filter:grayscale(.8);
  opacity:.55
}

.catalog-card.claimed {
  border-color:#cbd9b9;
  background:#f3f6e9
}

.trip-grid {
  grid-template-columns:repeat(2,1fr)
}

.trip-card .trip-banner {
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  background:repeating-linear-gradient(0deg,#e6ecd7 0 10px,#eaf0dd 10px 20px);
  color:#8caa71
}

.trip-card .trip-banner svg {
  height:60px;
  width:60px;
  stroke-width:1
}

.trip-card:nth-child(2) .trip-banner {
  background:repeating-linear-gradient(0deg,#e3ecd9 0 10px,#e7f0dd 10px 20px);
  color:#83a075
}

.trip-card:nth-child(3) .trip-banner {
  background:repeating-linear-gradient(0deg,#e1ece7 0 10px,#e6f0eb 10px 20px);
  color:#79a494
}

.trip-card:nth-child(4) .trip-banner {
  background:repeating-linear-gradient(0deg,#eee7d4 0 10px,#f3ecd9 10px 20px);
  color:#b6a168
}

.trip-details {
  display:flex;
  gap:18px;
  font-family:var(--mono);
  font-size:9px;
  color:#8a987a
}

.active-trip {
  padding:22px;
  background:#eaf0df;
  border:1px solid #cfdcbc;
  border-radius:8px;
  margin-bottom:22px;
  display:flex;
  align-items:center;
  gap:20px
}

.active-trip>svg {
  width:40px;
  height:40px;
  color:#809b63
}

.active-trip>div {
  flex:1
}

.active-trip h3 {
  font-size:15px;
  margin-bottom:5px
}

.active-trip p {
  font-size:11px;
  color:#8b987b
}

.active-trip strong {
  font-family:var(--mono);
  font-size:20px;
  color:#749155
}

.trip-progress {
  height:5px;
  background:#d8e2c7;
  margin-top:12px;
  border-radius:3px;
  overflow:hidden
}

.trip-progress>span {
  height:100%;
  display:block;
  background:#93ab72
}

.gentle-notice {
  display:flex;
  gap:10px;
  align-items:center;
  color:#98a18a;
  font-size:10px;
  margin-bottom:30px;
  line-height:1.7
}

.gentle-notice svg {
  width:17px;
  height:17px
}

.game-dialog {
  border:1px solid #ccd5bc;
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  width:min(540px,calc(100% - 32px));
  padding:28px;
  box-shadow:0 25px 90px #233d3540;
  max-height:85vh;
  overflow:auto
}

.game-dialog::backdrop {
  background:#23352bd0;
  backdrop-filter:blur(4px)
}

.dialog-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:17px
}

.game-dialog h2 {
  font-size:26px;
  letter-spacing:-.7px;
  margin-bottom:12px
}

.game-dialog>p {
  font-size:12px;
  color:#8b967d;
  line-height:1.8
}

.help-steps {
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:25px 0
}

.help-steps>div {
  display:flex;
  gap:14px;
  font-size:11px;
  line-height:1.7;
  color:#8f997f
}

.help-steps b {
  font-family:var(--mono);
  font-size:16px;
  color:#a3b288
}

.help-steps strong {
  display:block;
  font-size:12px;
  color:var(--ink);
  margin-bottom:3px
}

.game-dialog .dialog-note {
  font-size:10px;
  padding:13px;
  background:#f0f3e7;
  border-radius:4px
}

.game-dialog>.primary-button {
  width:100%;
  margin-top:23px;
  padding:12px
}

.journal-entry {
  border-left:2px solid #d5dfc4;
  margin:18px 0;
  padding-left:15px
}

.journal-entry time {
  font-family:var(--mono);
  font-size:9px;
  color:#99a788
}

.journal-entry p {
  font-size:12px;
  line-height:1.7;
  color:#667b58;
  margin-top:5px
}

.toast-stack {
  position:fixed;
  bottom:25px;
  right:25px;
  z-index:10;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-width:min(350px,calc(100vw - 40px));
  pointer-events:none
}

.toast {
  background:var(--forest);
  color:#fcfae9;
  padding:14px 18px;
  border:1px solid #66805a;
  border-radius:6px;
  box-shadow:0 5px 20px #23432e25;
  font-size:12px;
  line-height:1.6;
  animation:toast-in .25s ease
}

.toast.error {
  background:#8b6749;
  border-color:#ab885f
}

.scene-event {
  position:absolute;
  font-size:22px;
  font-family:var(--mono);
  color:#fff8db;
  left:61%;
  top:40%;
  opacity:0;
  text-shadow:2px 2px #657644;
  pointer-events:none
}

.scene-event.pop {
  animation:reward-pop 1.3s ease-out
}

.scene-wrap.night .scene-location {
  background:#e7ebdcdb
}

.scene-wrap.night .character-tag {
  background:#30493ce0
}

@keyframes toast-in {
  from {
    opacity:0;
    transform:translateY(10px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}

@keyframes reward-pop {
  0% {
    opacity:0;
    transform:translateY(15px)
  }
  20% {
    opacity:1
  }
  80% {
    opacity:1
  }
  100% {
    opacity:0;
    transform:translateY(-40px)
  }
}

.brand>span {
  font-family:'Pixelify Sans',var(--mono);
  font-size:27px;
  letter-spacing:1px
}

.brand small {
  font-family:var(--mono);
  letter-spacing:1.75px
}

@media(min-width:1400px) {
  .header-inner,.app-shell {
    max-width:1360px;
    padding-left:50px;
    padding-right:50px
  }
  .home-grid {
    grid-template-columns:minmax(0,1fr) 320px
  }
  .panel-heading {
    padding-top:18px;
    padding-bottom:18px
  }
  .needs-list {
    padding-top:2px;
    padding-bottom:12px
  }
  .need {
    margin:14px 0 16px
  }
  .quest-item {
    padding-top:16px;
    padding-bottom:16px
  }
}

@media(max-width:1100px) {
  .header-inner {
    gap:20px;
    padding:0 25px
  }
  .app-shell {
    padding:28px 25px 0
  }
  .main-nav {
    gap:2px
  }
  .nav-link {
    padding:0 9px;
    font-size:10px;
    gap:6px
  }
  .brand>span {
    font-size:19px
  }
  .brand small {
    font-size:6.5px;
    letter-spacing:1.4px
  }
  .header-tools {
    gap:5px
  }
  .home-grid {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:15px
  }
  .level-tip {
    display:none
  }
  .level-badge {
    margin-left:auto
  }
  .care-actions {
    gap:5px;
    padding-left:10px;
    padding-right:10px
  }
  .care-button strong {
    font-size:9px
  }
  .passive-note {
    display:none
  }
  .speech-bubble {
    font-size:7px;
    padding:8px 9px
  }
  .character-tag {
    font-size:6px
  }
  .upgrade-mini {
    padding:12px;
    gap:10px
  }
  .upgrade-mini .item-art {
    width:42px;
    height:45px
  }
  .mini-info h3 {
    font-size:10px
  }
  .mini-info p {
    font-size:8px
  }
  .care-panel .muted-label {
    font-size:8px
  }
  .catalog-grid {
    gap:14px
  }
  .catalog-card {
    padding:18px
  }
}

@media(max-width:800px) {
  .site-header {
    height:auto
  }
  .header-inner {
    flex-wrap:wrap;
    gap:0;
    justify-content:space-between;
    padding-top:15px
  }
  .brand {
    order:0
  }
  .header-tools {
    order:1
  }
  .main-nav {
    order:2;
    width:100%;
    flex-basis:100%;
    height:58px;
    justify-content:space-between;
    gap:5px;
    margin-top:9px
  }
  .nav-link {
    flex:1;
    justify-content:center;
    font-size:10px;
    padding:0 6px
  }
  .welcome-bar h1 {
    font-size:27px
  }
  .welcome-bar p {
    font-size:11px;
    max-width:260px;
    line-height:1.6
  }
  .wallet {
    min-width:225px;
    gap:10px;
    padding:13px 15px
  }
  .wallet strong {
    font-size:22px
  }
  .wallet .income strong {
    font-size:13px
  }
  .wallet div>span {
    font-size:9px
  }
  .home-grid {
    grid-template-columns:minmax(0,1fr) 240px;
    gap:14px
  }
  .panel-heading {
    padding:14px;
    min-height:49px
  }
  .panel-heading h2 {
    font-size:11px
  }
  .weather-button {
    font-size:8px
  }
  .weather-button svg {
    width:12px;
    height:12px
  }
  .scene-location {
    font-size:6px;
    left:10px;
    top:10px;
    padding:5px
  }
  .scene-location>span:last-child {
    font-size:6px
  }
  .speech-bubble {
    top:3%;
    font-size:6px;
    max-width:49%;
    left:43%;
    padding:6px
  }
  .care-actions {
    grid-template-columns:repeat(3,1fr)
  }
  .care-button {
    padding:10px 3px;
    gap:5px
  }
  .care-actions>.care-button:nth-last-child(-n+2) {
    grid-column:auto
  }
  .need {
    margin:10px 0 12px
  }
  .need-label {
    font-size:10px
  }
  .needs-footnote {
    font-size:8px
  }
  .quest-item {
    padding:12px
  }
  .quest-content strong {
    font-size:9px
  }
  .quest-content small {
    font-size:8px
  }
  .quest-reward {
    font-size:8px
  }
  .quest-bottom {
    font-size:7px
  }
  .care-panel .panel-heading {
    flex-wrap:wrap
  }
  .care-panel .muted-label {
    display:none
  }
  .preview-grid {
    gap:10px
  }
  .upgrade-mini {
    flex-wrap:wrap;
    gap:8px
  }
  .upgrade-mini .item-art {
    width:35px;
    height:35px
  }
  .upgrade-mini .item-art svg {
    width:23px;
    height:23px
  }
  .mini-info {
    min-width:90px
  }
  .section-heading h2 {
    font-size:18px
  }
  .section-heading .eyebrow {
    font-size:7px
  }
  .level-info {
    min-width:0;
    width:auto;
    flex:1
  }
  .level-info strong>span {
    display:none
  }
  .level-info strong {
    font-size:11px
  }
  .xp-label {
    font-size:8px
  }
  .level-strip {
    gap:10px;
    padding:8px 12px
  }
  .level-badge {
    font-size:8px
  }
  .catalog-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .page-heading {
    align-items:flex-start
  }
  .outline-tag {
    font-size:7px;
    padding:7px
  }
  .page-heading h2 {
    font-size:25px
  }
  .footer-brand {
    font-size:7px
  }
  .site-footer {
    gap:12px
  }
  .site-footer>span:nth-child(2) {
    font-size:7px
  }
  .site-footer .text-button {
    font-size:8px
  }
}

@media(max-width:600px) {
  .header-inner {
    padding-left:18px;
    padding-right:18px
  }
  .app-shell {
    padding:25px 16px 0
  }
  .brand>span {
    font-size:20px
  }
  .nav-link {
    font-size:9px;
    gap:5px
  }
  .nav-link svg {
    height:14px;
    width:14px
  }
  .nav-count {
    font-size:7px;
    padding:2px 3px
  }
  .welcome-bar {
    flex-wrap:wrap;
    gap:18px;
    margin-bottom:20px
  }
  .welcome-bar>div:first-child {
    width:100%
  }
  .welcome-bar h1 {
    font-size:29px
  }
  .welcome-bar p {
    max-width:none;
    font-size:11px
  }
  .eyebrow {
    font-size:8px
  }
  .wallet {
    width:100%;
    padding:12px 17px;
    min-width:0
  }
  .wallet .income {
    margin-left:auto
  }
  .wallet-divider {
    margin-left:auto;
    margin-right:15px
  }
  .wallet strong {
    font-size:22px
  }
  .wallet .income strong {
    font-size:15px
  }
  .wallet div>span {
    font-size:9px
  }
  .level-strip {
    margin-bottom:19px;
    height:61px
  }
  .level-strip canvas {
    width:35px;
    height:35px
  }
  .xp-label {
    font-size:7px
  }
  .level-badge {
    font-size:7px;
    padding:7px
  }
  .level-info strong {
    font-size:10px
  }
  .home-grid {
    grid-template-columns:1fr;
    gap:17px
  }
  .sidebar {
    grid-column:1;
    grid-row:3;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    align-items:start
  }
  .room-panel {
    grid-row:1
  }
  .care-panel {
    grid-row:2
  }
  .panel-heading h2 {
    font-size:12px
  }
  .panel-heading {
    padding:14px 15px
  }
  .weather-button {
    font-size:9px
  }
  .scene-location {
    font-size:6px;
    top:11px;
    left:11px
  }
  .scene-location>span:last-child {
    font-size:7px
  }
  .speech-bubble {
    font-size:7px;
    left:45%;
    top:3%;
    max-width:46%;
    padding:7px
  }
  .character-tag {
    font-size:6px
  }
  .room-caption {
    padding:11px 13px;
    font-size:9px
  }
  .care-panel .panel-heading {
    padding-bottom:10px
  }
  .care-actions {
    grid-template-columns:repeat(5,1fr);
    padding:0 10px 13px;
    gap:5px
  }
  .care-button {
    padding:11px 2px 9px;
    gap:6px
  }
  .care-button strong {
    font-size:10px
  }
  .care-icon {
    height:27px;
    width:27px
  }
  .care-icon svg {
    height:19px;
    width:19px
  }
  .action-cost {
    font-size:8px
  }
  .sidebar .panel-heading {
    padding:13px 11px;
    gap:5px
  }
  .sidebar .heading-with-icon {
    gap:5px
  }
  .sidebar .heading-with-icon svg {
    width:13px;
    height:13px
  }
  .sidebar .panel-heading h2 {
    font-size:12px
  }
  .small-chip {
    font-size:8px;
    padding:3px 5px
  }
  .needs-list {
    padding:0 12px 7px
  }
  .need {
    margin:12px 0 14px
  }
  .need-label {
    font-size:11px;
    gap:5px
  }
  .need-label>span:last-child {
    font-size:10px
  }
  .need-label svg {
    width:12px;
    height:12px
  }
  .needs-footnote {
    font-size:9px;
    padding:9px;
    line-height:1.6
  }
  .quest-item {
    padding:12px 10px;
    gap:6px;
    flex-wrap:wrap
  }
  .quest-check {
    width:13px;
    height:13px;
    border-radius:2px
  }
  .quest-content strong {
    font-size:11px
  }
  .quest-content small {
    font-size:10px
  }
  .quest-reward {
    font-size:9px;
    margin-left:0;
    margin-top:0
  }
  .quest-claim {
    font-size:10px;
    padding:7px 10px;
    margin-left:0;
    min-height:32px
  }
  .quest-count {
    font-size:8px
  }
  .quest-bottom {
    padding:10px 7px;
    line-height:1.6
  }
  .preview-grid {
    grid-template-columns:1fr;
    gap:10px
  }
  .upgrade-mini {
    padding:13px;
    flex-wrap:nowrap;
    gap:13px
  }
  .upgrade-mini .item-art {
    width:44px;
    height:44px
  }
  .mini-info h3 {
    font-size:12px
  }
  .mini-info p {
    font-size:10px
  }
  .mini-buy {
    font-size:9px
  }
  .section-heading h2 {
    font-size:18px
  }
  .section-heading .text-button {
    font-size:9px;
    max-width:110px;
    text-align:left
  }
  .section-heading .eyebrow {
    font-size:6px;
    letter-spacing:1.4px
  }
  .shop-preview {
    margin-top:26px
  }
  .home-bottom {
    font-size:8px;
    padding:19px 0;
    gap:10px
  }
  .home-bottom .text-button {
    font-size:8px;
    white-space:nowrap
  }
  .home-bottom>span {
    gap:4px;
    max-width:210px;
    line-height:1.7
  }
  .site-footer {
    flex-wrap:wrap;
    gap:10px;
    justify-content:space-between;
    padding:17px 0
  }
  .footer-brand {
    flex-basis:100%;
    font-size:7px
  }
  .site-footer>span:nth-child(2) {
    font-size:7px
  }
  .page-heading {
    padding:4px 0 22px;
    flex-wrap:wrap;
    gap:10px
  }
  .page-heading h2 {
    font-size:26px
  }
  .page-heading p {
    font-size:11px
  }
  .catalog-grid {
    grid-template-columns:1fr;
    gap:14px
  }
  .catalog-card {
    padding:20px;
    min-height:220px
  }
  .catalog-card p {
    font-size:12px
  }
  .catalog-card h3 {
    font-size:16px
  }
  .catalog-card .item-art {
    width:56px;
    height:56px
  }
  .card-tag {
    font-size:8px
  }
  .card-action {
    margin-top:2px
  }
  .trip-grid {
    grid-template-columns:1fr
  }
  .active-trip {
    padding:17px;
    gap:12px
  }
  .active-trip>svg {
    width:30px;
    height:30px
  }
  .active-trip h3 {
    font-size:13px
  }
  .active-trip p {
    font-size:9px
  }
  .active-trip strong {
    font-size:15px
  }
  .game-dialog {
    padding:23px
  }
  .game-dialog h2 {
    font-size:23px
  }
  .dialog-header .eyebrow {
    font-size:7px
  }
  .toast-stack {
    bottom:18px;
    right:18px
  }
  .toast {
    font-size:11px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
  .scene-event.pop {
    opacity:1
  }
}
