:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #485e50;
  background: #f7f6ef;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #6f9c82; outline-offset: 4px; }
.app { max-width: 1440px; margin: auto; padding: 27px clamp(24px, 5vw, 72px) 18px; }
.header, .brand, .header-right, .section-heading, .space-footer, .page-footer { display: flex; align-items: center; }
.header { justify-content: space-between; margin-bottom: 27px; }
.brand { gap: 12px; }
.brand-mark { width: 49px; height: 49px; border-radius: 17px; display: grid; place-items: center; background: #dce9d9; color: #7aa582; }
.brand-mark svg { width: 38px; }
.brand-caption { margin: 0 0 3px; font-size: 8px; letter-spacing: .16em; font-weight: 800; color: #a4b3a5; }
h1 { margin: 0; font-size: 22px; letter-spacing: .1em; }
.header-right { gap: 18px; }
.offline-status { font-size: 12px; color: #9ca99e; }
.offline-status.ready::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #96bc94; }
.sound-toggle { border: 0; border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; color: #6b8373; background: #e8eee4; }
.sound-toggle svg { width: 24px; height: 24px; }
.sound-off, .sound-toggle[aria-pressed="true"] .sound-on { display: none; }
.sound-toggle[aria-pressed="true"] .sound-off { display: block; }
.play-space { position: relative; border-radius: 36px; padding: 30px clamp(24px, 4vw, 52px) 19px; background: #eaf1e6; }
.section-heading { justify-content: space-between; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: #94ae97; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.eyebrow span { display: inline-block; width: 18px; height: 2px; margin: 0 7px 3px 0; background: #a7bda7; }
h2 { margin: 0; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: .04em; font-weight: 700; }
.heading-dot { color: #a4c4a4; }
.heading-decoration { display: flex; gap: 14px; align-items: center; color: #bdcfb8; font-size: 22px; }
.heading-decoration span:last-child { color: #e0cba0; font-size: 32px; }
.categories { display: flex; gap: 12px; margin-bottom: 24px; }
.category { min-height: 48px; min-width: 108px; padding: 0 20px; border: 1px solid transparent; border-radius: 16px; background: rgba(255,255,255,.55); color: #819285; font-size: 15px; font-weight: 700; }
.category span { margin-right: 6px; font-size: 17px; }
.category.active { color: #58765e; background: #fff; border-color: #e2ebe0; box-shadow: 0 4px 10px #78987810; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; min-width: 0; height: clamp(190px, 21vh, 240px); padding: 10px 12px 14px; border: 5px solid rgba(255,255,255,.72); border-radius: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #607066; box-shadow: 0 5px 0 #c6d9c544; transition: transform .12s ease, box-shadow .12s ease; }
.card:active { transform: translateY(2px) scale(.985); box-shadow: 0 2px 0 #c6d9c544; }
.card-number { position: absolute; top: 16px; left: 18px; opacity: .46; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.card-sparkle { position: absolute; right: 18px; top: 15px; color: #fff; opacity: .8; font-size: 16px; }
.illustration { display: block; width: min(145px, 68%); height: min(145px, 72%); overflow: visible; }
.card-label { margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: .1em; }
.peach { background: #f8e6d9; }.butter { background: #f8efd5; }.pink { background: #f7e5e3; }.sand { background: #efe7d9; }.yellow { background: #f8f0d7; }.blue { background: #e2edf0; }.green { background: #e4efdf; }.lavender { background: #eee8f2; }
.space-footer { justify-content: space-between; margin-top: 21px; color: #8fa793; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.footer-sparkle { margin-right: 6px; color: #afc8a9; font-size: 17px; }
.footer-dots { color: #c1d2bc; font-size: 8px; letter-spacing: 3px; }
.audio-status { margin: 0; color: #9a6d61; font-size: 12px; }
.audio-status:not(:empty) { margin-top: 8px; }
.page-footer { justify-content: space-between; padding: 19px 6px 0; color: #a8b5a7; font-size: 11px; letter-spacing: .1em; }
.page-footer span:last-child { font-size: 9px; letter-spacing: .14em; }
@media (min-width: 651px) and (max-height: 850px) {
  .app { padding-top: 20px; }
  .header { margin-bottom: 16px; }
  .play-space { padding-top: 22px; padding-bottom: 15px; }
  .section-heading { margin-bottom: 14px; }
  .categories { margin-bottom: 16px; }
  .cards { gap: 14px; }
  .card { height: clamp(165px, 23vh, 190px); }
  .space-footer { margin-top: 14px; }
  .page-footer { padding-top: 12px; }
}
@media (max-width: 650px) {
  .app { padding: 18px 16px; }
  .header { margin-bottom: 18px; }
  .offline-status { font-size: 10px; }
  .header-right { gap: 8px; }
  .play-space { border-radius: 26px; padding: 24px 16px 18px; }
  .categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .category { min-width: 0; padding: 0 4px; font-size: 13px; }
  .category span { display: block; margin: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { height: 180px; }
  .page-footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
