@import url("/fonts.css");
:root {
  --bg: #fbf8f1;
  --paper: #fffdf8;
  --ink: #49382b;
  --muted: #938474;
  --line: #eae2d5;
  --accent: #c78b36;
  --accent-dark: #976023;
  --sage: #6e8467;
  --board: #e9dfca;
  --cell: #f9f3e7;
  --shadow: 0 8px 28px #65482207;
  --surface: #eee7d6;
  color-scheme: light;
  font-family: "Buddy Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #9f6d2a;
  outline-offset: 4px;
}
a {
  color: inherit;
}
img {
  object-fit: contain;
  max-width: 100%;
  user-select: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: "Buddy Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.15;
}
h1 {
  font-size: 44px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.2px;
}
p {
  color: var(--muted);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 32px 22px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  padding: 0;
  margin-bottom: 55px;
  white-space: nowrap;
}
.brand img {
  width: 48px;
  height: 52px;
}
.brand span {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2.3px;
  margin-top: 2px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: var(--muted);
  padding-left: 14px;
  margin-bottom: 13px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  transition: 0.18s;
}
.nav-item:hover {
  background: var(--surface);
  color: var(--ink);
}
.nav-item.active {
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -22px;
  width: 3px;
  height: 24px;
  background: #bd8942;
  border-radius: 0 3px 3px 0;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-item small {
  font-size: 7px;
  letter-spacing: 1px;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-left: auto;
}
.nav-dot {
  background: var(--sage);
  color: white;
  font-size: 9px;
  width: 17px;
  height: 17px;
  text-align: center;
  border-radius: 50%;
  margin-left: auto;
}
.community {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding-top: 22px;
}
.sidebar-note {
  margin-top: auto;
  padding-top: 45px;
  text-align: center;
}
.sidebar-note img {
  width: 100px;
  opacity: 0.85;
  margin-bottom: 10px;
}
.sidebar-note p {
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4;
}
.sidebar-note > span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
}
.sidebar-bottom {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.sidebar-bottom .icon-button {
  margin-left: auto;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a9c72;
  display: inline-block;
  flex-shrink: 0;
}
.main-wrap {
  margin-left: 220px;
  width: calc(100% - 220px);
  padding: 0 44px;
  max-width: 1480px;
}
.topbar {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 12px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 600;
  color: var(--ink);
}
.balances {
  display: flex;
  gap: 10px;
  align-items: center;
}
.balance {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.balance .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.balance span {
  font-size: 10px;
  color: var(--muted);
}
.balance.energy {
  background: var(--surface);
  border-color: var(--line);
}
.balance.energy .icon {
  color: var(--muted);
}
.balance.energy span {
  color: var(--muted);
}
.avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: var(--surface);
  margin-left: 6px;
  overflow: hidden;
  padding: 3px;
}
.avatar img {
  width: 30px;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
main {
  max-width: 1080px;
  margin: 30px auto 0;
  outline: none;
}
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--muted);
  line-height: 1.5;
}
.welcome-banner {
  background: var(--surface);
  min-height: 232px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 27px 34px;
  margin-bottom: 30px;
  position: relative;
}
.welcome-banner > div:first-child {
  position: relative;
  z-index: 2;
}
.welcome-banner .eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.small-sun {
  font-size: 18px;
  color: var(--muted);
}
.welcome-banner h1 {
  font-size: 40px;
  margin: 8px 0 11px;
  color: var(--ink);
  line-height: 1.08;
}
.welcome-banner p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 11px;
  padding: 0;
  color: var(--muted);
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.welcome-banner .text-link {
  margin-top: 15px;
}
.hero-art {
  position: absolute;
  width: 330px;
  height: 255px;
  right: 14px;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art > img {
  position: relative;
  height: 232px;
  width: 232px;
  z-index: 1;
  transform: rotate(-5deg);
  margin-bottom: 4px;
}
.hero-circle {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--surface);
  right: 45px;
  top: 30px;
}
.hero-circle:after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px dashed #d8c5a0;
  border-radius: 50%;
}
.hero-flower {
  position: absolute;
  font-size: 38px;
  color: var(--muted);
  z-index: 1;
}
.f1 {
  left: 22px;
  top: 60px;
  transform: rotate(20deg);
}
.f2 {
  right: 20px;
  bottom: 38px;
  font-size: 27px;
}
.hero-tag {
  position: absolute;
  bottom: 20px;
  right: 31px;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  transform: rotate(-6deg);
  box-shadow: 0 4px 12px #73552008;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(255px, 1fr);
  gap: 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.section-heading h2 {
  font-size: 25px;
  margin-top: 4px;
}
.section-heading h3 {
  font-size: 17px;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-weight: 500;
}
.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--surface);
  color: var(--ink);
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.board-wrapper {
  background: var(--board);
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  position: relative;
  box-shadow:
    inset 0 2px 2px #fff8,
    0 6px 0 #d9ccb64d;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  position: relative;
  z-index: 1;
  touch-action: none;
}
.cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--cell);
  border: 1px solid #fff7;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 2px 1px #a68c5a0a;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  min-width: 0;
}
.cell.occupied {
  background: color-mix(in srgb, var(--tile-color) 48%, #fffdf6);
  border: 1px solid var(--line);
}
.cell.occupied:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 9px #85622c15;
}
.tile-bear {
  width: 90%;
  height: 90%;
  pointer-events: none;
  filter: drop-shadow(0 3px 1px #72502d12);
}
.tile-level {
  position: absolute;
  bottom: 4px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #fff9;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.empty-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--surface);
}
.cell.selected {
  outline: 2px solid #a16c27;
  outline-offset: -1px;
  background: #f8e1ae;
}
.cell.match {
  box-shadow: inset 0 0 0 2px #b69250;
  animation: breathe 1.6s infinite;
}
.board-decoration {
  position: absolute;
  color: var(--muted);
  width: 40px;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}
.board-decoration .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.4;
}
.leaf-one {
  top: -17px;
  left: -16px;
  transform: rotate(-60deg);
}
.leaf-two {
  bottom: -19px;
  right: -12px;
  transform: rotate(120deg);
}
.board-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 49px;
  font-size: 10px;
  color: var(--muted);
  justify-content: center;
  padding: 8px 0;
}
.board-hint > .icon {
  width: 13px;
  height: 13px;
}
.board-hint .icon-button {
  width: 24px;
  height: 24px;
}
.create-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #bb8137;
  color: #fffaf1;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 0 #996324;
  transition: 0.2s;
}
.create-button:hover:not(:disabled) {
  background: #ab742e;
  transform: translateY(-1px);
}
.create-button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #996324;
}
.create-plus {
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}
.create-button > span:nth-child(2) {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.create-button small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
}
.create-button b {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 17px;
  border-left: 1px solid #eac59166;
  font-size: 13px;
}
.create-button b .icon {
  width: 15px;
  height: 15px;
}
.energy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  font-size: 9px;
  color: var(--muted);
}
.energy-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.energy-footer .icon {
  width: 12px;
  height: 12px;
}
.energy-footer button {
  font-size: 9px;
  color: var(--muted);
  padding: 0;
  white-space: nowrap;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.meadow-side {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.daily-gift {
  background: var(--surface);
  border-color: var(--line);
  padding: 22px;
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 13px;
}
.gift-icon {
  width: 43px;
  height: 43px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-icon .icon {
  width: 24px;
  height: 24px;
}
.daily-gift .eyebrow {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.4px;
}
.daily-gift h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin: 4px 0 7px;
}
.daily-gift p {
  font-size: 10px;
  color: var(--muted);
}
.daily-gift .button {
  grid-column: 1/-1;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  border-color: var(--line);
  padding: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid transparent;
  line-height: 1.4;
  transition: 0.18s;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--accent);
  border-color: var(--line);
  color: #fffaf1;
  box-shadow: 0 2px 0 #9e6c29;
}
.button.primary:hover:not(:disabled) {
  background: #b27b30;
}
.button.soft {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
.button.soft:hover:not(:disabled) {
  background: var(--surface);
}
.button.plain {
  color: var(--muted);
  font-weight: 500;
}
.button.danger {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}
.button.wide {
  width: 100%;
  margin-top: 16px;
}
.requests {
  padding: 20px 19px 6px;
}
.requests > .section-heading {
  margin-bottom: 8px;
}
.requests .section-heading > .icon {
  color: var(--muted);
  width: 20px;
}
.requests .eyebrow {
  font-size: 8px;
}
.small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.request {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 0 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.request:last-child {
  border-bottom: 0;
}
.request-art {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: var(--surface);
  padding: 3px;
  flex-shrink: 0;
}
.request-art img {
  width: 100%;
  height: 100%;
}
.request-description {
  flex: 1;
  min-width: 0;
}
.request-description strong {
  font-size: 10px;
  display: block;
  line-height: 1.5;
}
.request-description > span {
  font-size: 8px;
  color: var(--muted);
}
.progress {
  height: 6px;
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: #a6b08b;
  border-radius: 10px;
  transition: width 0.4s;
}
.progress.thin {
  height: 3px;
  margin-top: 6px;
}
.request-send {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  color: var(--muted);
  background: var(--surface);
  padding: 5px;
  flex-shrink: 0;
}
.request-send .icon {
  width: 15px;
  height: 15px;
}
.request-send.ready {
  background: var(--surface);
  color: var(--muted);
}
.request-refresh {
  position: absolute;
  bottom: 5px;
  right: 1px;
  color: var(--muted);
  padding: 0;
  height: 15px;
}
.request-refresh .icon {
  width: 11px;
  height: 11px;
}
.season-teaser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.season-medal {
  background: var(--surface);
  color: var(--muted);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.season-teaser > span {
  flex: 1;
}
.season-teaser small {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.season-teaser strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}
.season-teaser > span > span {
  display: block;
  font-size: 8px;
  color: var(--muted);
}
.season-teaser > .icon {
  width: 14px;
  color: var(--muted);
}
.season-teaser .progress {
  width: 100%;
  height: 4px;
  margin-top: 2px;
}
.season-teaser .progress i {
  background: #c0a36b;
}
.page-footer {
  max-width: 1080px;
  margin: 38px auto 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}
.page-footer button {
  font-size: 9px;
  color: var(--muted);
  padding: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 35px 0 28px;
}
.page-heading h1 {
  margin: 9px 0 11px;
  font-size: 40px;
}
.page-heading p {
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 99px;
  padding: 6px 11px;
  font-size: 10px;
  white-space: nowrap;
}
.pill .icon {
  width: 13px;
  height: 13px;
}
.collection-count {
  text-align: right;
}
.collection-count strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 36px;
  color: var(--muted);
}
.collection-count strong span {
  font-size: 24px;
  color: var(--muted);
}
.collection-count small {
  font-size: 7px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.collection-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.collection-progress .progress {
  flex: 1;
}
.collection-progress > span {
  font-size: 10px;
  color: var(--muted);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.collection-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: var(--paper);
  padding: 16px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px #6c4e1610;
}
.collection-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.collection-top .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.collection-art {
  height: 145px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    var(--tile-color),
    transparent 68%
  );
  margin: 8px 0;
}
.collection-art img {
  height: 140px;
  width: 140px;
  transition: transform 0.2s;
}
.collection-card:hover .collection-art img {
  transform: rotate(-4deg) scale(1.05);
}
.collection-card h3 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 8px;
}
.collection-card p {
  font-size: 10px;
  min-height: 33px;
}
.collection-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
}
.collection-bottom .icon {
  width: 13px;
  height: 13px;
}
.undiscovered .collection-art img,
.discovery-art.undiscovered img {
  filter: brightness(0) opacity(0.11);
}
.undiscovered h3 {
  font-size: 15px;
}
.undiscovered .collection-art {
  background: radial-gradient(ellipse, #eee7db, transparent 70%);
}
.locked-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff9;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  color: var(--muted);
}
.gentle-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  padding: 17px 20px;
  font-size: 11px;
  margin-top: 25px;
}
.gentle-note > .icon {
  width: 18px;
  height: 18px;
}
.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(230px, 1fr);
  gap: 25px;
}
.subheading {
  font-size: 23px;
  margin-bottom: 18px;
}
.subheading span {
  font:
    12px "Segoe UI",
    sans-serif;
  color: var(--muted);
  margin-left: 10px;
}
.spaced {
  margin-top: 35px;
}
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.task-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.task-symbol {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.task-content {
  flex: 1;
}
.task-content p {
  font-size: 11px;
  margin: 4px 0 8px;
}
.task-content small {
  font-size: 9px;
  color: var(--muted);
}
.task-card .button {
  font-size: 10px;
  padding: 9px 12px;
}
.achievement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}
.achievement > .icon {
  color: var(--muted);
}
.achievement > div {
  flex: 1;
}
.achievement p {
  font-size: 10px;
  margin-top: 5px;
}
.achievement .button {
  font-size: 10px;
  padding: 9px 12px;
}
.streak-card {
  text-align: center;
  padding: 25px 22px;
  height: fit-content;
  background: var(--surface);
}
.streak-card > img {
  width: 160px;
  height: 160px;
  margin-bottom: 10px;
}
.streak-card h2 {
  font-size: 28px;
  margin: 10px 0;
}
.streak-card p {
  font-size: 12px;
}
.streak-card .button {
  width: 100%;
  font-size: 11px;
}
.streak-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 23px 0;
}
.streak-dots > span {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 9px;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.streak-dots .done {
  background: #a5b28d;
  color: #fff;
}
.streak-dots .icon {
  width: 13px;
  height: 13px;
}
.season-hero {
  display: flex;
  align-items: center;
  padding: 25px 35px;
  gap: 35px;
  background: var(--surface);
}
.season-hero-art {
  width: 190px;
  flex-shrink: 0;
}
.season-hero-art img {
  width: 175px;
  height: 175px;
}
.season-hero > div:last-child {
  flex: 1;
}
.season-hero h2 {
  font-size: 33px;
  margin: 10px 0;
}
.season-hero p {
  font-size: 12px;
  max-width: 420px;
}
.season-progress-label {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 8px;
  font-size: 11px;
  color: var(--muted);
}
.season-progress-label strong {
  color: var(--muted);
}
.season-hero .progress {
  height: 8px;
}
.pass-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 21px 0;
  margin: 8px 0 12px;
}
.pass-banner > span:first-child {
  display: flex;
  gap: 13px;
  align-items: center;
}
.pass-banner > .button {
  white-space: nowrap;
  font-size: 11px;
}
.pass-banner .icon {
  color: var(--muted);
}
.pass-banner strong {
  display: block;
  font-size: 13px;
}
.pass-banner small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.reward-table {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.reward-header,
.reward-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
}
.reward-header {
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 16px 18px;
  gap: 12px;
}
.reward-header .icon {
  width: 12px;
  height: 12px;
}
.reward-row {
  padding: 10px 18px;
  background: var(--paper);
  gap: 12px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.reward-row.unlocked {
  background: var(--paper);
}
.reward-level {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reward-level strong {
  border: 1px solid var(--line);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 17px;
  color: var(--muted);
}
.unlocked .reward-level strong {
  background: #c4a366;
  color: white;
  border-color: var(--line);
}
.reward-level > span {
  font-size: 9px;
  color: var(--muted);
}
.reward-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface);
  font-size: 10px;
  color: var(--muted);
}
.reward-cell.premium {
  background: var(--surface);
}
.reward-icon {
  display: flex;
  color: var(--muted);
}
.reward-icon .icon {
  width: 20px;
  height: 20px;
}
.reward-claim {
  margin-left: auto;
  background: #fff8;
  border-radius: 6px;
  padding: 5px;
  display: flex;
}
.reward-claim:not(:disabled) {
  background: var(--surface);
  color: var(--muted);
}
.reward-claim .icon {
  width: 15px;
  height: 15px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card.featured {
  background: var(--surface);
  border-color: var(--line);
}
.product-ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  transform: rotate(35deg);
  background: #c8a265;
  color: #fff9df;
  font-size: 6px;
  letter-spacing: 1px;
  width: 130px;
  text-align: center;
  padding: 4px;
}
.product-art {
  height: 145px;
  position: relative;
  text-align: center;
  margin-bottom: 15px;
}
.product-art img {
  height: 145px;
  width: 145px;
}
.energy-bubble {
  position: absolute;
  bottom: 7px;
  right: calc(50% - 80px);
  background: var(--surface);
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  transform: rotate(-6deg);
}
.energy-bubble .icon {
  width: 12px;
  height: 12px;
}
.product-card .eyebrow {
  font-size: 7px;
  letter-spacing: 1.4px;
}
.product-card h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  margin: 8px 0 10px;
}
.product-card p {
  font-size: 11px;
  flex: 1;
  min-height: 55px;
}
.product-card > .button {
  width: 100%;
  margin-top: 22px;
  font-size: 11px;
}
.product-card > .button .icon:last-child {
  margin-left: auto;
}
.test-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 23px;
}
.shop-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0;
  font-size: 10px;
  color: var(--muted);
}
.shop-bottom > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.shop-bottom .icon {
  width: 13px;
  height: 13px;
}
.theme-picker {
  padding: 23px;
}
.theme-picker h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.theme-picker p {
  font-size: 11px;
  margin-top: 5px;
}
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.theme-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 11px;
}
.theme-swatch.chosen {
  border-color: var(--line);
  background: var(--surface);
}
.theme-swatch .icon {
  width: 13px;
  height: 13px;
}
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4d7bb;
}
.swatch.forest {
  background: #b7c8ab;
}
.swatch.berry {
  background: #e4b6b8;
}
.swatch.golden {
  background: #e5bd69;
}
.swatch.moonlight {
  background: #b6b8d6;
}
.friend-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--surface);
}
.friend-hero > div:first-child {
  width: 33%;
  text-align: center;
}
.friend-hero img {
  width: 240px;
  height: 240px;
}
.friend-hero h2 {
  font-size: 38px;
  margin: 10px 0 15px;
}
.friend-hero p {
  font-size: 12px;
  max-width: 360px;
}
.friend-hero .button {
  margin-top: 20px;
}
.friend-hero small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 13px;
}
.friends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 25px;
}
.friend-list {
  padding: 25px;
}
.friend-list h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.friend-list h2 > span {
  color: var(--muted);
  margin-left: 8px;
}
.empty-state {
  text-align: center;
  padding: 35px 10px;
}
.empty-state > .icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
}
.friend-row,
.leader-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.friend-row > img,
.leader-row > img {
  width: 30px;
  height: 30px;
}
.friend-row strong,
.leader-row strong {
  flex: 1;
}
.leader-row > span {
  color: var(--muted);
  width: 15px;
}
.leader-row small {
  font-size: 10px;
  color: var(--muted);
}
.friend-row .pill {
  font-size: 8px;
}
.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #32271966;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
  animation: fade-in 0.2s;
}
.modal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 38px;
  width: 460px;
  max-width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 80px #32220f38;
  animation: pop-in 0.22s;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
}
.modal h2 {
  font-size: 32px;
  margin: 8px 0 17px;
}
.modal > p {
  font-size: 13px;
  margin: 12px 0;
}
.modal > .eyebrow {
  margin-bottom: 12px;
}
.modal .dialog-bear {
  display: block;
  width: 135px;
  height: 135px;
  margin: 5px auto 18px;
}
.modal.purchase,
.modal.discovery {
  text-align: center;
}
.modal .test-notice {
  text-align: left;
  font-size: 10px;
  line-height: 1.6;
  margin: 18px 0 0;
}
.purchase-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 25px;
  font-weight: 650;
  color: var(--muted);
  margin: 18px 0;
}
.purchase-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.purchase-price .icon {
  width: 23px;
  height: 23px;
}
.inline-link {
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}
.modal p.small {
  font-size: 11px;
}
.discovery-art {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse, var(--tile-color), transparent 66%);
  margin: 5px 0;
}
.discovery-art img {
  height: 190px;
  width: 190px;
  animation: float 3s ease-in-out infinite;
}
.modal.discovery .pill {
  margin-bottom: 10px;
}
.howto-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0 20px;
  gap: 6px;
}
.howto-pair img {
  width: 80px;
  height: 90px;
}
.howto-pair > span {
  color: var(--muted);
}
.howto-pair > .icon {
  width: 20px;
  color: var(--muted);
}
.howto {
  padding-left: 22px;
  color: var(--muted);
}
.howto li {
  padding-left: 7px;
  margin: 16px 0;
}
.howto b {
  color: var(--ink);
  display: block;
  font-size: 13px;
}
.howto span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.energy-summary {
  display: flex;
  background: var(--surface);
  border-radius: 12px;
  padding: 17px;
  margin-top: 22px;
}
.energy-summary > span {
  width: 50%;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.energy-summary b {
  display: block;
  font-size: 23px;
  color: var(--muted);
}
.energy-summary > span + span {
  border-left: 1px solid var(--line);
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0 25px;
}
.profile-row > img {
  width: 65px;
  height: 65px;
}
.profile-row p {
  font-size: 10px;
  margin-top: 6px;
}
.setting-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
}
.setting-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setting-row .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.switch {
  width: 34px;
  height: 20px;
  background: var(--surface);
  border-radius: 20px;
  padding: 3px;
}
.switch:after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  transition: 0.2s;
}
.switch.on {
  background: #9cae86;
}
.switch.on:after {
  transform: translateX(14px);
}
.test-tools {
  margin-top: 20px;
  background: var(--surface);
  border-radius: 10px;
  padding: 15px;
  font-size: 11px;
  color: var(--muted);
}
.test-tools summary {
  cursor: pointer;
}
.test-tools p {
  font-size: 10px;
  margin: 12px 0;
}
.tool-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tool-buttons .button {
  font-size: 10px;
  padding: 8px;
}
.history-list {
  max-height: 400px;
  overflow: auto;
}
.history-list article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-list article > div {
  flex: 1;
  min-width: 0;
}
.history-list strong {
  font-size: 12px;
  display: block;
}
.history-list article span {
  font-size: 10px;
  color: var(--muted);
}
.history-list code {
  font-size: 9px;
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-top: 8px;
}
.legal-copy h3 {
  margin: 20px 0 6px;
}
.legal-copy p {
  font-size: 12px;
}
.share-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-size: 11px;
}
.loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.loading > img {
  width: 160px;
  height: 160px;
  margin-bottom: 25px;
}
.loading h1 {
  font-size: 32px;
  margin-bottom: 15px;
}
.loading p {
  max-width: 400px;
  font-size: 13px;
}
.loading .button {
  margin-top: 25px;
}
.loader {
  width: 24px;
  height: 24px;
  border: 2px solid #e5d7bc;
  border-top-color: #b58b49;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 25px);
  background: #534632;
  color: #fffbf0;
  padding: 13px 23px;
  border-radius: 12px;
  box-shadow: 0 6px 25px #38270d22;
  max-width: min(90vw, 500px);
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  transition: 0.22s;
  pointer-events: none;
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#drag-ghost {
  position: fixed;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -65%) rotate(-7deg);
  z-index: 40;
  pointer-events: none;
  filter: drop-shadow(0 10px 8px #44301b33);
}
#drag-ghost img {
  width: 100%;
  height: 100%;
}
.drag-source {
  opacity: 0.3;
}
.cell.drag-target {
  box-shadow: inset 0 0 0 2px #b28b42;
  background: #f4dfb0;
}
.merged {
  animation: merge-pop 0.4s ease-out;
}
#celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  overflow: hidden;
}
#celebration i {
  position: absolute;
  left: var(--x);
  top: -20px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  animation: fall 1.8s var(--delay) ease-in forwards;
}
.working .create-button {
  filter: saturate(0.8);
}
[data-theme="forest"] {
  --board: #cbd5bf;
  --cell: #eff2e7;
}
[data-theme="berry"] {
  --board: #e3c4c0;
  --cell: #fbefea;
}
[data-theme="golden"] {
  --board: #e6ca8e;
  --cell: #fff5d9;
}
[data-theme="moonlight"] {
  --board: #cccbe0;
  --cell: #f1eff9;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pop-in {
  from {
    transform: translateY(12px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes merge-pop {
  0% {
    transform: scale(0.82);
  }
  45% {
    transform: scale(1.13);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes breathe {
  50% {
    box-shadow:
      inset 0 0 0 2px #b69250,
      0 0 12px #d4b77955;
  }
}
@keyframes float {
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}
@keyframes fall {
  to {
    transform: translateY(100vh) rotate(var(--spin));
    opacity: 0;
  }
}
@media (min-width: 1600px) {
  .main-wrap {
    padding: 0 65px;
  }
  .topbar {
    height: 100px;
  }
  main {
    margin-top: 40px;
  }
  .welcome-banner {
    min-height: 255px;
  }
  .welcome-banner h1 {
    font-size: 45px;
  }
  .hero-art {
    right: 50px;
  }
  .game-layout {
    gap: 35px;
  }
  .board-wrapper {
    padding: 17px;
  }
  .board {
    gap: 9px;
  }
  .daily-gift {
    padding: 26px;
  }
  .requests {
    padding: 26px 24px 10px;
  }
  .request {
    padding: 23px 0;
  }
  .request-description strong {
    font-size: 12px;
  }
  .request-description > span {
    font-size: 10px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding: 28px 16px;
  }
  .brand span {
    font-size: 12px;
  }
  .brand img {
    width: 40px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.7px;
  }
  .nav-item {
    font-size: 12px;
    padding: 12px;
  }
  .nav-item.active:before {
    left: -16px;
  }
  .main-wrap {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 0 26px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    padding: 0 6px;
  }
  .balance span {
    display: none;
  }
  .game-layout {
    gap: 20px;
    grid-template-columns: minmax(0, 1.6fr) minmax(235px, 1fr);
  }
  .welcome-banner {
    padding: 25px;
  }
  .welcome-banner h1 {
    font-size: 35px;
  }
  .hero-art {
    width: 270px;
    right: 0;
  }
  .hero-art > img {
    width: 210px;
    height: 210px;
  }
  .hero-circle {
    width: 185px;
    height: 185px;
    right: 34px;
    top: 50px;
  }
  .hero-flower.f1 {
    left: 8px;
  }
  .hero-tag {
    right: 20px;
    font-size: 10px;
  }
  .board {
    gap: 5px;
  }
  .board-wrapper {
    padding: 10px;
  }
  .cell {
    border-radius: 9px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .daily-gift {
    padding: 17px;
    gap: 10px;
    grid-template-columns: 35px 1fr;
  }
  .gift-icon {
    width: 35px;
    height: 35px;
  }
  .daily-gift h3 {
    font-size: 17px;
  }
  .requests {
    padding: 16px 15px 5px;
  }
  .request {
    gap: 6px;
  }
  .request-art {
    width: 36px;
    height: 36px;
  }
  .create-button {
    padding: 13px 14px;
    gap: 8px;
  }
  .create-button > span:nth-child(2) {
    font-size: 13px;
  }
  .create-button small {
    font-size: 7px;
  }
  .energy-footer {
    font-size: 8px;
  }
  .energy-footer button {
    font-size: 8px;
  }
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shop-grid {
    gap: 15px;
  }
  .product-card {
    padding: 20px;
  }
  .product-card h3 {
    font-size: 21px;
  }
  .product-art {
    height: 125px;
  }
  .product-art img {
    height: 125px;
  }
  .task-layout {
    grid-template-columns: minmax(0, 1.8fr) 220px;
    gap: 18px;
  }
  .task-card {
    padding: 15px;
    gap: 10px;
  }
  .task-symbol {
    width: 33px;
    height: 33px;
  }
  .task-content p {
    font-size: 10px;
  }
  .task-card .button {
    font-size: 9px;
    padding: 8px;
  }
  .task-content h3 {
    font-size: 13px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .season-hero {
    padding: 25px;
    gap: 20px;
  }
  .season-hero-art {
    width: 145px;
  }
  .season-hero h2 {
    font-size: 29px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 170px;
    padding: 24px 12px;
  }
  .brand {
    gap: 2px;
  }
  .brand span {
    font-size: 11px;
  }
  .brand small {
    font-size: 6px;
  }
  .nav-caption {
    font-size: 7px;
  }
  .nav-item {
    gap: 8px;
    font-size: 11px;
  }
  .nav-item.active:before {
    left: -12px;
  }
  .main-wrap {
    margin-left: 170px;
    width: calc(100% - 170px);
    padding: 0 22px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
    height: 75px;
  }
  .welcome-banner {
    min-height: 220px;
  }
  .hero-art {
    right: -35px;
    width: 245px;
  }
  .hero-art > img {
    width: 190px;
    height: 190px;
  }
  .hero-tag {
    right: 28px;
  }
  .hero-circle {
    width: 170px;
    height: 170px;
    right: 25px;
    top: 60px;
  }
  .welcome-banner h1 {
    font-size: 33px;
  }
  .welcome-banner p {
    font-size: 10px;
  }
  .welcome-banner .eyebrow {
    font-size: 6px;
  }
  .game-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .meadow-panel {
    max-width: 560px;
    width: 100%;
    margin: auto;
  }
  .meadow-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .season-teaser {
    grid-column: 1/-1;
  }
  .board {
    gap: 8px;
  }
  .board-wrapper {
    padding: 13px;
  }
  .daily-gift h3 {
    font-size: 18px;
  }
  .requests {
    grid-row: span 2;
  }
  .season-teaser {
    grid-column: auto;
    align-self: end;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-layout {
    grid-template-columns: 1fr;
  }
  .streak-card {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .pill {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .season-hero-art {
    width: 100px;
  }
  .season-hero h2 {
    font-size: 25px;
  }
  .season-hero p {
    font-size: 10px;
  }
  .pass-banner {
    flex-wrap: wrap;
  }
  .reward-header,
  .reward-row {
    grid-template-columns: 75px 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .reward-header {
    font-size: 7px;
    letter-spacing: 0.4px;
  }
  .reward-level {
    gap: 5px;
  }
  .reward-level > span {
    font-size: 7px;
  }
  .reward-level strong {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  .reward-cell {
    font-size: 8px;
    padding: 9px;
    gap: 5px;
  }
  .reward-icon .icon {
    width: 15px;
  }
  .friend-hero {
    padding: 25px;
    gap: 20px;
  }
  .friend-hero h2 {
    font-size: 30px;
  }
  .friend-hero p {
    font-size: 11px;
  }
  .friends-grid {
    grid-template-columns: 1fr;
  }
  .shop-bottom {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  :root {
    --bg: #fbf8f1;
  }
  body {
    font-size: 13px;
  }
  .sidebar {
    display: none;
  }
  .main-wrap {
    width: 100%;
    margin-left: 0;
    padding: 0 18px;
  }
  .topbar {
    height: 75px;
    padding-top: env(safe-area-inset-top, 0px);
    justify-content: space-between;
    gap: 5px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: Georgia, serif;
    font-size: 18px;
    letter-spacing: -0.7px;
  }
  .mobile-brand b {
    font-weight: 500;
  }
  .mobile-brand img {
    width: 35px;
    height: 37px;
  }
  .balances {
    gap: 5px;
  }
  .balance {
    padding: 6px 9px;
    gap: 4px;
    font-size: 10px;
  }
  .balance .icon {
    width: 13px;
    height: 13px;
  }
  .avatar {
    width: 29px;
    height: 29px;
    margin-left: 1px;
    padding: 2px;
  }
  .avatar img {
    width: 25px;
  }
  main {
    margin-top: 20px;
  }
  .welcome-banner {
    padding: 21px 19px;
    min-height: 206px;
    border-radius: 14px;
    margin-bottom: 25px;
  }
  .welcome-banner h1 {
    font-size: 31px;
    line-height: 1.06;
    margin: 9px 0 12px;
  }
  .welcome-banner p {
    font-size: 9px;
    line-height: 1.65;
  }
  .welcome-banner .eyebrow {
    font-size: 6px;
    letter-spacing: 1.1px;
    gap: 4px;
  }
  .small-sun {
    font-size: 12px;
  }
  .welcome-banner .text-link {
    font-size: 9px;
    margin-top: 13px;
    gap: 7px;
  }
  .hero-art {
    width: 190px;
    height: 195px;
    right: -28px;
    bottom: 0;
  }
  .hero-art > img {
    height: 163px;
    width: 163px;
    transform: rotate(-5deg);
    margin-bottom: 0;
  }
  .hero-circle {
    height: 134px;
    width: 134px;
    right: 27px;
    top: 38px;
  }
  .hero-circle:after {
    inset: -7px;
  }
  .hero-flower.f1 {
    left: 3px;
    top: 45px;
    font-size: 23px;
  }
  .hero-flower.f2 {
    right: 19px;
    bottom: 31px;
    font-size: 18px;
  }
  .hero-tag {
    bottom: 14px;
    right: 29px;
    font-size: 8px;
    padding: 4px 6px;
    transform: rotate(-5deg);
  }
  .welcome-banner > div:first-child {
    max-width: 70%;
  }
  .game-layout {
    gap: 22px;
  }
  .section-heading {
    margin-bottom: 15px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .board-wrapper {
    padding: 11px;
    border-radius: 16px;
  }
  .board {
    gap: 6px;
  }
  .cell {
    border-radius: 10px;
    padding: 2px;
  }
  .tile-bear {
    height: 95%;
    width: 95%;
  }
  .tile-level {
    bottom: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    font-size: 8px;
    line-height: 14px;
    min-width: 14px;
  }
  .board-hint {
    font-size: 9px;
    min-height: 43px;
    gap: 5px;
  }
  .board-hint > .icon {
    width: 12px;
  }
  .create-button {
    padding: 14px 18px;
    border-radius: 10px;
    gap: 12px;
  }
  .create-button > span:nth-child(2) {
    font-size: 15px;
  }
  .create-button small {
    font-size: 8px;
  }
  .create-button b {
    font-size: 13px;
  }
  .energy-footer {
    font-size: 8px;
    margin-top: 14px;
  }
  .energy-footer button {
    font-size: 9px;
  }
  .meadow-side {
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  }
  .daily-gift {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
  }
  .gift-icon {
    width: 30px;
    height: 30px;
  }
  .gift-icon .icon {
    width: 18px;
    height: 18px;
  }
  .daily-gift .eyebrow {
    font-size: 6px;
  }
  .daily-gift h3 {
    font-size: 18px;
  }
  .daily-gift p {
    font-size: 9px;
  }
  .daily-gift .button {
    font-size: 9px;
    width: 100%;
    padding: 8px 5px;
  }
  .requests {
    padding: 16px 12px 5px;
    grid-row: span 2;
  }
  .requests .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .requests h3 {
    font-size: 18px;
  }
  .requests > .section-heading > .icon {
    display: none;
  }
  .requests > .small {
    font-size: 9px;
  }
  .request {
    gap: 5px;
    padding: 17px 0 23px;
    flex-wrap: wrap;
  }
  .request-art {
    width: 32px;
    height: 32px;
  }
  .request-description strong {
    font-size: 9px;
  }
  .request-description > span {
    font-size: 7px;
  }
  .request-send {
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 19px;
    height: 19px;
    padding: 3px;
  }
  .request-send .icon {
    width: 13px;
    height: 13px;
  }
  .request-refresh {
    left: 3px;
    right: auto;
    bottom: 5px;
  }
  .request .progress {
    margin-top: 3px;
  }
  .season-teaser {
    padding: 15px;
    gap: 8px;
    height: fit-content;
  }
  .season-medal {
    width: 25px;
    height: 25px;
  }
  .season-medal > .icon {
    width: 15px;
    height: 15px;
  }
  .season-teaser > span {
    min-width: 80px;
  }
  .season-teaser small {
    font-size: 6px;
  }
  .season-teaser strong {
    font-size: 15px;
  }
  .season-teaser > span > span {
    font-size: 7px;
  }
  .season-teaser > .icon {
    display: none;
  }
  .season-teaser .progress {
    margin-top: 5px;
  }
  .page-footer {
    margin-top: 28px;
    font-size: 7px;
    padding-bottom: 100px;
    gap: 15px;
  }
  .page-footer button {
    font-size: 8px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    background: #fcfaf4f5;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 7px 8px calc(9px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    box-shadow: 0 -4px 18px #4b341007;
  }
  .mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 8px;
    padding: 7px 4px;
    border-radius: 9px;
    max-width: 70px;
    width: 19%;
    text-align: center;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
  }
  .mobile-nav .nav-item > .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-nav .nav-item.active {
    background: var(--surface);
  }
  .mobile-nav .nav-item.active:before {
    display: none;
  }
  .mobile-nav .nav-item small {
    display: none;
  }
  .mobile-nav .nav-dot {
    position: absolute;
    top: 0;
    right: 7px;
    width: 13px;
    height: 13px;
    font-size: 8px;
  }
  .page-heading {
    margin: 27px 0 23px;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 34px;
    margin: 9px 0 11px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 270px;
  }
  .page-heading > .pill {
    display: none;
  }
  .collection-count strong {
    font-size: 30px;
    white-space: nowrap;
  }
  .collection-count strong span {
    font-size: 18px;
  }
  .collection-count small {
    font-size: 6px;
    display: block;
    width: 72px;
  }
  .collection-progress {
    gap: 13px;
  }
  .collection-progress > span {
    font-size: 8px;
  }
  .collection-grid {
    gap: 13px;
  }
  .collection-card {
    padding: 13px;
    border-radius: 12px;
  }
  .collection-top {
    font-size: 7px;
  }
  .collection-art {
    height: 115px;
  }
  .collection-art img {
    width: 115px;
    height: 115px;
  }
  .collection-card h3 {
    font-size: 19px;
  }
  .collection-card p {
    font-size: 9px;
    min-height: 31px;
  }
  .collection-card.undiscovered h3 {
    font-size: 14px;
    min-height: 23px;
  }
  .collection-bottom {
    font-size: 8px;
  }
  .gentle-note {
    font-size: 10px;
    padding: 15px;
    line-height: 1.7;
  }
  .subheading {
    font-size: 24px;
  }
  .task-card {
    padding: 15px 13px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .task-symbol {
    width: 33px;
    height: 33px;
  }
  .task-content {
    min-width: 140px;
  }
  .task-content h3 {
    font-size: 13px;
  }
  .task-content p {
    font-size: 9px;
  }
  .task-content small {
    font-size: 8px;
  }
  .task-card .button {
    font-size: 8px;
    padding: 8px;
    min-width: 60px;
  }
  .achievement {
    padding: 15px 12px;
    gap: 10px;
  }
  .achievement h3 {
    font-size: 12px;
  }
  .achievement p {
    font-size: 9px;
  }
  .achievement .button {
    font-size: 8px;
    padding: 8px;
  }
  .season-hero {
    padding: 20px;
    gap: 12px;
  }
  .season-hero-art {
    width: 80px;
    align-self: center;
  }
  .season-hero-art img {
    width: 90px;
    height: 120px;
  }
  .season-hero .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .season-hero h2 {
    font-size: 26px;
  }
  .season-hero p {
    font-size: 9px;
  }
  .season-progress-label {
    font-size: 9px;
    margin-top: 15px;
  }
  .pass-banner {
    padding: 17px 0;
    gap: 14px;
  }
  .pass-banner strong {
    font-size: 12px;
  }
  .pass-banner small {
    font-size: 9px;
  }
  .pass-banner .button {
    width: 100%;
    font-size: 11px;
  }
  .reward-header,
  .reward-row {
    grid-template-columns: 53px 1fr 1fr;
    padding: 10px 8px;
    gap: 6px;
  }
  .reward-header {
    font-size: 6px;
    letter-spacing: 0;
  }
  .reward-level {
    flex-direction: column;
    gap: 3px;
  }
  .reward-level strong {
    width: 26px;
    height: 26px;
  }
  .reward-level > span {
    font-size: 7px;
  }
  .reward-cell {
    gap: 5px;
    padding: 8px 6px;
    font-size: 8px;
    flex-wrap: wrap;
    min-height: 63px;
  }
  .reward-icon .icon {
    width: 14px;
  }
  .reward-cell > span:nth-child(2) {
    max-width: 65%;
    line-height: 1.5;
  }
  .reward-claim {
    padding: 3px;
  }
  .reward-claim .icon {
    width: 13px;
    height: 13px;
  }
  .test-notice {
    font-size: 9px;
    padding: 11px 13px;
    gap: 7px;
    margin-bottom: 18px;
  }
  .shop-grid {
    gap: 13px;
  }
  .product-card {
    padding: 17px 14px;
  }
  .product-art {
    height: 118px;
    margin-bottom: 15px;
  }
  .product-art img {
    width: 118px;
    height: 118px;
  }
  .energy-bubble {
    right: -1px;
    font-size: 9px;
    bottom: 0;
  }
  .product-card .eyebrow {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .product-card h3 {
    font-size: 21px;
    line-height: 1.1;
    margin-bottom: 12px;
    min-height: 46px;
  }
  .product-card p {
    font-size: 9px;
    line-height: 1.7;
  }
  .product-card > .button {
    font-size: 9px;
    padding: 10px 7px;
    gap: 5px;
    margin-top: 18px;
  }
  .product-card > .button .icon {
    width: 13px;
    height: 13px;
  }
  .product-card > .button .icon:last-child {
    display: none;
  }
  .product-ribbon {
    font-size: 5px;
    top: 14px;
    right: -32px;
  }
  .shop-bottom {
    gap: 17px;
    font-size: 9px;
  }
  .shop-bottom .text-link {
    font-size: 9px;
  }
  .theme-picker {
    padding: 20px;
  }
  .theme-swatch {
    font-size: 10px;
    padding: 8px 10px;
  }
  .friend-hero {
    padding: 23px;
    gap: 15px;
    flex-direction: column;
    text-align: center;
  }
  .friend-hero > div:first-child {
    width: 100%;
    height: 140px;
  }
  .friend-hero img {
    width: 150px;
    height: 150px;
  }
  .friend-hero h2 {
    font-size: 34px;
  }
  .friend-hero small {
    font-size: 9px;
  }
  .friend-hero p {
    font-size: 12px;
  }
  .friend-hero .button {
    width: 100%;
  }
  .friend-list {
    padding: 20px;
  }
  .friend-list h2 {
    font-size: 24px;
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal {
    padding: 33px 25px;
    border-radius: 19px;
    max-height: 88dvh;
  }
  .modal h2 {
    font-size: 30px;
  }
  .modal > p {
    font-size: 12px;
  }
  .howto-pair img {
    width: 64px;
    height: 75px;
  }
  .modal .dialog-bear {
    width: 120px;
    height: 120px;
  }
  .discovery-art {
    height: 190px;
  }
  .discovery-art img {
    height: 180px;
  }
  .tool-buttons .button {
    font-size: 9px;
  }
  #toast {
    bottom: 90px;
    font-size: 11px;
    padding: 12px 18px;
    max-width: 90vw;
    width: max-content;
  }
  .loading h1 {
    font-size: 29px;
  }
}
@media (max-width: 360px) {
  .main-wrap {
    padding: 0 12px;
  }
  .mobile-brand {
    font-size: 16px;
  }
  .mobile-brand img {
    width: 30px;
  }
  .balance {
    padding: 5px 7px;
  }
  .welcome-banner {
    padding: 20px 16px;
  }
  .welcome-banner h1 {
    font-size: 29px;
  }
  .hero-art {
    right: -43px;
    width: 180px;
  }
  .hero-art > img {
    width: 147px;
    height: 147px;
  }
  .hero-tag {
    right: 35px;
    font-size: 7px;
  }
  .welcome-banner p {
    font-size: 8px;
  }
  .welcome-banner .eyebrow {
    font-size: 5px;
  }
  .board {
    gap: 5px;
  }
  .cell {
    border-radius: 8px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .create-button > span:nth-child(2) {
    font-size: 14px;
  }
  .collection-card h3 {
    font-size: 17px;
  }
  .collection-art {
    height: 100px;
  }
  .collection-art img {
    height: 100px;
  }
  .task-card {
    gap: 7px;
  }
  .task-symbol {
    width: 27px;
    height: 27px;
  }
  .task-content {
    min-width: 130px;
  }
  .product-card {
    padding: 14px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .discovery-art img {
    transform: none;
  }
}

/* Keep the compact request icons comfortably tappable on phones. */
@media (max-width: 640px) {
  .request {
    padding-bottom: 48px;
  }
  .request-send,
  .request-refresh {
    width: 44px;
    height: 44px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }
  .request-send .icon,
  .request-refresh .icon {
    width: 17px;
    height: 17px;
  }
  .request-send.ready {
    background: var(--surface);
    border-radius: 12px;
  }
}
