body {
  --forest: #2e7d32;
  --ink: #234426;
  --muted: #61765f;
  --amber: #a64c0a;
  --cream: #fdfbf7;
  --pill: 9.99rem;
  --space: 0.36rem;
  background: #f3f8ee;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 0.28rem;
}
div, button, img { box-sizing: border-box; }
button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.4;
  border-radius: 0;
}
button::after { border: 0; }
button[disabled] { opacity: .66; }
button:focus-visible { outline: 0.04rem solid #aa650b; outline-offset: 0.04rem; }
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.navigation {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.36rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
}
.back-button {
  position: absolute;
  left: 0;
  width: 1.26rem;
  min-width: 44px;
  min-height: 44px;
  height: 0.82rem;
  z-index: 1;
}
.back-face { display:flex; align-items:center; justify-content:center; }
.chevron {
  width: 0.19rem;
  height: 0.19rem;
  border-left: 0.04rem solid currentColor;
  border-bottom: 0.04rem solid currentColor;
  transform: rotate(45deg);
}
.primary {
  width: 100%;
  min-height: 1.02rem;
  padding: 0.18rem 0.24rem;
  border-radius: var(--pill);
  background: var(--forest);
  box-shadow: 0 0.09rem 0.2rem rgba(47,113,46,.22);
  color: #fff;
  font-size: 0.35rem;
  font-weight: 750;
  letter-spacing: 0.02rem;
}
.primary[disabled] { background: #e0e6dd; color: #51664f; box-shadow: none; opacity: 1; }
button { transition: transform .1s ease-out; }
.pressed { transform: scale(.98); }
.pill { display: inline-flex; align-items: center; border-radius: var(--pill); }
.dot { width: 0.14rem; height: 0.14rem; background: #3a8a33; border-radius: 100%; flex: none; }
.footnote, .action-note { text-align: center; font-size: 0.22rem; color: var(--muted); line-height: 1.5; }
.action-footer {
  width: 100%;
  margin-top: auto;
  padding: 0.44rem var(--space) calc(0.34rem + env(safe-area-inset-bottom));
}
.action-footer .footnote { margin-top: 0.22rem; }
.connection-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.12rem;
  margin: 0.2rem 0.28rem;
  padding: 0.16rem 0.22rem;
  color: #78400b;
  background: #fff4df;
  border-radius: 0.2rem;
  font-size: 0.25rem;
}
.retry { flex: none; color: #654009; font-weight: 700; min-height: 0.66rem; text-decoration: underline; }
.loading-text { margin: auto; padding: 0.8rem 0.3rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  .pressed { transform: none; }
}

.farm {
  background:
    radial-gradient(ellipse at 25% 12%, rgba(99,187,135,.27), transparent 38%),
    radial-gradient(ellipse at 83% 31%, rgba(211,233,130,.66), transparent 38%),
    radial-gradient(ellipse at 48% 18%, #fcf4cf 0%, #d9efb6 35%, #adc98c 69%, #73995c 100%);
}
.farm::before {
  content: ""; position: absolute; top: 22%; left: 0; width: 100%; height: 35%; pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, #f9eb93 0 0.06rem, transparent 0.09rem),
    radial-gradient(circle at 79% 23%, #f5efb1 0 0.08rem, transparent 0.12rem),
    radial-gradient(circle at 30% 55%, #e2f2b3 0 0.06rem, transparent 0.1rem);
}
.home-navigation { justify-content: flex-start; padding-left: 0.3rem; font-size: 0.4rem; color: #244e2d; }
.inventory-row { position: relative; display: flex; align-items: center; gap: 0.14rem; padding: 0.16rem 0.3rem 0; }
.inventory { padding: 0.09rem 0.2rem; background: rgba(255,253,245,.94); gap: 0.08rem; box-shadow: 0 0.04rem 0.15rem rgba(34,78,38,.08); color: #4b463b; font-size: 0.23rem; font-weight: 650; }
.bag-icon { width: 0.33rem; height: 0.33rem; background-color: #fff3d3; border-radius: 50%; background-size: 0.24rem; }
.quantity { font-size: 0.27rem; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }
.bag-entry { margin-left:auto; padding:0.1rem 0.2rem; min-height:0.64rem; gap:0.12rem; color:#385d36; background:rgba(255,253,245,.94); font-size:0.24rem; font-weight:700; }
.bag-entry span { color:#697957; font-size:0.22rem; }
.stage { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0.28rem 0 0.12rem; }
.first-sowing { background:radial-gradient(ellipse at 55% 32%,#fff9d8,#e0edbf 52%,#a9c597 100%); }
.sowing-scene { position:relative; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:0.32rem 0; }
.sowing-title { color:#294f31; font-size:0.49rem; font-weight:800; letter-spacing:0.02rem; }
.sowing-bed { position:relative; width:92vw; height:92vw; max-width:380px; max-height:380px; }
.sowing-moss { position:absolute; inset:0; width:100%; height:100%; }
.sowing-packet { position:absolute; left:52%; top:12%; width:31%; height:31%; transform:rotate(12deg); transform-origin:50% 54%; }
.sowing-panel { text-align:center; }
.sowing-caption { margin-bottom:0.24rem; color:#486945; font-size:0.28rem; }
.sowing-action { background:linear-gradient(#4ba73b,#34812b); }
.is-sown .sowing-packet { animation:sow-packet 1s ease-in-out both; }
@keyframes sow-packet {
  0% { transform:rotate(12deg); } 32%,63% { transform:rotate(-112deg); opacity:1; }
  77% { transform:rotate(-85deg); } 100% { transform:translate(10%,-8%) rotate(-18deg); opacity:0; }
}
.spawn-path { position:absolute; left:56%; top:34%; width:8%; height:37%; opacity:0; }
.spawn-path.second { width:12%; height:40%; }
.spawn-path.third { width:5%; height:39%; }
.spawn-grain { width:0.13rem; height:0.08rem; border-radius:70% 40%; background:#ffe8ab; border:0.02rem solid #a88147; transform:rotate(-28deg); }
.is-sown .spawn-path { animation:sow-grain .48s ease-in .26s both; }
.is-sown .second { animation-delay:.37s; }
.is-sown .third { animation-delay:.47s; }
@keyframes sow-grain {
  0% { opacity:0; transform:translate(0,0); } 10% { opacity:1; }
  88% { opacity:1; transform:translate(-96%,94%); } 100% { opacity:0; transform:translate(-100%,100%); }
}
.sowing-ring { position:absolute; left:42%; top:71%; width:16%; height:5%; border:0.03rem solid #f8e5a3; border-radius:50%; opacity:0; }
.is-sown .sowing-ring { animation:sow-ring .44s ease-out .66s both; }
@keyframes sow-ring { 0% { opacity:0; transform:scale(.35); } 24% { opacity:.92; } 100% { opacity:0; transform:scale(1.55); } }
@media (prefers-reduced-motion: reduce) {
  .is-sown .sowing-packet,.is-sown .spawn-path,.is-sown .sowing-ring { animation:none; opacity:0; }
}
.stage-pill { padding: 0.1rem 0.27rem; gap: 0.12rem; background: rgba(255,253,245,.91); box-shadow: 0 0.02rem 0.05rem rgba(44,79,53,.08); color: #3d6748; font-size: 0.23rem; }
.strong { font-weight: 700; color: #264b2b; }
.divider { color: #c9cbb8; }
.art-space { width: 88vw; height: 88vw; max-width: 376px; max-height: 376px; display: flex; justify-content: center; align-items: center; position: relative; }
.plant-art { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0.15rem 0.15rem rgba(31,64,20,.2)); }
.art-retry { padding: 0.16rem 0.26rem; border-radius: var(--pill); background: rgba(255,255,255,.8); color: #355d38; font-size: 0.25rem; }
.art-wait { font-size: 0.25rem; color: #506a43; }
.plant-art { position:absolute; top:0; left:0; opacity:0; pointer-events:none; }
.plant-art.visible { opacity:1; }
.pour { position:absolute; inset:0; pointer-events:none; z-index:1; }
.pour-sack { position:absolute; left:62%; top:10%; width:26%; height:26%; opacity:0; transform-origin:50% 58%; animation:tip-sack 1.05s ease-in-out both; }
@keyframes tip-sack {
  0% { opacity:0; transform:translate(13%,-8%) rotate(-8deg); }
  14% { opacity:1; }
  26%,48%,65% { opacity:1; transform:rotate(-110deg); }
  38%,56% { transform:rotate(-101deg); }
  80% { opacity:1; transform:rotate(-30deg); }
  100% { opacity:0; transform:translate(10%,-10%) rotate(-4deg); }
}
.grain-path { position:absolute; left:65%; top:31%; }
.grain-flight { width:100%; height:100%; opacity:0; animation:drop-grain .51s linear both; }
.grain { border-radius:48% 56% 42% 60%; background:radial-gradient(circle at 32% 25%,#e5b864,#ae702e 52%,#714420); box-shadow:0 0.01rem 0.02rem rgba(64,44,22,.28); }
.grain-path:nth-child(3n) .grain { background:radial-gradient(circle at 32% 25%,#c9975a,#7e522c 58%,#56371f); }
@keyframes drop-grain {
  0% { opacity:0; transform:translate(0,0); }
  8% { opacity:1; transform:translate(-14%,2%); }
  34% { opacity:1; transform:translate(-48%,18%); }
  61% { opacity:1; transform:translate(-76%,55%); }
  79% { opacity:1; transform:translate(-90%,100%); }
  88% { opacity:1; transform:translate(-96%,95%); }
  100% { opacity:0; transform:translate(-100%,100%); }
}
@media (prefers-reduced-motion: reduce) { .pour { display:none; } }
@keyframes plant-appear { from { transform:scale(.985); } to { transform:scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .plant-art.visible { animation:plant-appear .18s ease-out; }
}
.art-retry { position:relative; z-index:1; }
.farm-action .calendar-icon,.farm-action .pencil-icon { filter:brightness(0) invert(1); }
.farm-panel { position: relative; width: 100%; padding: 0.35rem var(--space) calc(0.27rem + env(safe-area-inset-bottom)); border-radius: 0.65rem 0.65rem 0 0; background: var(--cream); box-shadow: 0 -0.12rem 0.44rem rgba(30,65,22,.08); }
.progress-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.1rem; color: #43403b; font-size: 0.25rem; font-weight: 700; }
.percent { font-weight: 800; color: #308025; font-variant-numeric: tabular-nums; }
.track { height: 0.21rem; padding: 0.03rem; background: #e3ecd8; border-radius: var(--pill); box-shadow: inset 0 0.02rem 0.03rem rgba(69,93,51,.1); }
.fill { height: 100%; border-radius: var(--pill); background: linear-gradient(90deg,#83cc69,#58b65d); transition: width .24s ease-out; }
.farm-action { margin-top: 0.28rem; min-height: 0.98rem; gap: 0.12rem; background: linear-gradient(#49a936,#348325); }
.sprout-icon,.harvest-icon,.calendar-icon,.pencil-icon { width: 0.36rem; height: 0.36rem; }
.action-note { margin-top: 0.1rem; }
.quick-actions { display: flex; gap: 0.2rem; margin: 0.26rem 0 0.21rem; }
.secondary { flex: 1; padding: 0.1rem; gap: 0.1rem; min-height: 0.77rem; background: #f3f8ec; border: 0.02rem solid #e1e9d7; border-radius: var(--pill); font-size: 0.26rem; font-weight: 700; }
.celebrate { margin-bottom: 0.09rem; padding: 0.06rem 0.26rem; color: #234324; background: rgba(241,175,51,.14); border-radius: var(--pill); font-size: 0.36rem; font-weight: 850; }
.celebrate span { font-size: 0.23rem; color: #bc7505; }
.harvest-label { margin-top: 0.12rem; padding: 0.04rem 0.17rem; background: #cf790a; color: white; border-radius: var(--pill); font-size: 0.22rem; font-weight: 700; }
.mature .art-space { width: 75vw; height: 75vw; max-height: 320px; max-width: 320px; }
.max-level { padding: 0.02rem 0.08rem; font-size: 0.17rem; color: #11613d; background: #d7f4e5; border-radius: var(--pill); }
.mature .fill { background: linear-gradient(90deg,#4ebd3f,#25871d); }
.reward-row { display: flex; align-items: center; gap: 0.18rem; margin-top: 0.22rem; padding: 0.16rem 0.24rem; background: linear-gradient(105deg,#f2f8ec,#fef8eb); border-radius: 0.28rem; }
.fruit-icon { display:flex; align-items:center; justify-content:center; width: 0.62rem; height: 0.62rem; border-radius:0.2rem; background:#faedbd; }
.reward-caption { font-size: 0.21rem; color: #696558; }
.reward-title { font-size: 0.28rem; font-weight: 750; }
@media (max-height: 700px) {
  .art-space { width: 76vw; height: 64vw; }
  .mature .art-space { height: 57vw; }
  .stage { padding-top: 0.16rem; padding-bottom: 0.02rem; }
}
@media (prefers-reduced-motion: reduce) { .fill { transition: none; } }


.sprout-icon { background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE3IDhDOCAxMCA1LjkgMTYuMTcgMy44MiAyMS4zNGwxLjg5LjY2Ljk1LTIuM2MuNDguMTcuOTguMyAxLjM0LjMgNC40MiAwIDktMy41OCA5LThWOHptLTEuNSA1LjVjLTIuMzMgMC00LjMxLTEuNDYtNS4xMi0zLjUgMi4wNS0uMTggNC4yOS42MiA1LjEyIDMuNXoiPjwvcGF0aD48L3N2Zz4="); background-repeat: no-repeat; background-position: center; background-size: contain; }

.calendar-icon { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzNhOGEzMyIgc3Ryb2tlLXdpZHRoPSIyLjIiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHJlY3QgaGVpZ2h0PSIxOCIgcng9IjMiIHJ5PSIzIiB3aWR0aD0iMTgiIHg9IjMiIHk9IjQiPjwvcmVjdD48bGluZSB4MT0iMTYiIHgyPSIxNiIgeTE9IjIiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjgiIHgyPSI4IiB5MT0iMiIgeTI9IjYiPjwvbGluZT48bGluZSB4MT0iMyIgeDI9IjIxIiB5MT0iMTAiIHkyPSIxMCI+PC9saW5lPjwvc3ZnPg=="); background-repeat: no-repeat; background-position: center; background-size: contain; }

.pencil-icon { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzNhOGEzMyIgc3Ryb2tlLXdpZHRoPSIyLjIiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDIwaDkiPjwvcGF0aD48cGF0aCBkPSJNMTYuNSAzLjVhMi4xMjEgMi4xMjEgMCAwIDEgMyAzTDcgMTlsLTQgMSAxLTRMMTYuNSAzLjV6Ij48L3BhdGg+PC9zdmc+"); background-repeat: no-repeat; background-position: center; background-size: contain; }

.harvest-icon { background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTUgMTMuMTh2NEwxMiAyMWw3LTMuODJ2LTRMMTIgMTdsLTctMy44MnpNMTIgM0wxIDlsMTEgNiA5LTQuOTFWMTdoMlY5TDEyIDN6Ij48L3BhdGg+PC9zdmc+"); background-repeat: no-repeat; background-position: center; background-size: contain; }

.checkin {
  background:
    radial-gradient(circle at 12% 18%, rgba(246,216,119,.48), transparent 3%),
    radial-gradient(circle at 83% 29%, rgba(246,216,119,.42), transparent 3%),
    radial-gradient(circle at 16% 38%, rgba(247,222,136,.38), transparent 2%),
    linear-gradient(180deg,#f3f8ee,#fff 55%,#f4f8ee);
  color: #263b2e;
}
.checkin-content { display:flex; flex-direction:column; align-items:center; padding: 0.16rem 0.3rem 0; }
.checkin-heading { margin: 0.2rem 0 0.12rem; font-size: 0.3rem; font-weight: 750; letter-spacing: 0.02rem; }
.checkin-heading span { color: #438847; padding: 0 0.1rem; font-size: 0.23rem; }
.bag-hero { width: 3.5rem; height: 2.82rem; position: relative; display:flex; justify-content:center; align-items:center; }
.sack { width: 2.68rem; height: 2.68rem; filter: drop-shadow(0 0.06rem 0.05rem rgba(80,56,31,.15)); }
.reward-pill { padding: 0.07rem 0.38rem; gap: 0.07rem; background: #fff; color: #404449; border: 0.02rem solid #f4d887; font-weight: 650; font-size: 0.26rem; }
.reward-pill span { color: #ca5700; font-size: 0.35rem; font-weight: 850; }
.calendar { width:100%; display:flex; flex-wrap:wrap; justify-content:center; gap:0.14rem; margin-top:0.32rem; padding:0.27rem; background:rgba(255,255,255,.92); border:0.02rem solid #edf2e8; border-radius:0.44rem; box-shadow:0 0.1rem 0.28rem rgba(50,95,48,.07); }
.day { width:calc((100% - 0.42rem) / 4); height:1.95rem; border-radius: 0.28rem; border:0.02rem solid #e8e5db; padding:0.12rem 0.04rem; background: #fcfaf5; color:#494f49; display:flex; flex-direction:column; justify-content:space-between; align-items:center; }
.day:nth-child(n+5) { width:25%; }
.day.today { background:#effaf0; border-color:#2e7d32; box-shadow:inset 0 0 0 0.01rem #2e7d32; }
.day.claimed { background:#f3f4f1; color:#606660; border-color:#e1e4df; }
.day-title { font-size:0.22rem; }
.today .day-title { color:#2f7834; font-weight:700; }
.mini-sack { width:0.57rem; height:0.57rem; }
.claimed .mini-sack { filter:grayscale(1); opacity:.58; }
.day-bottom { display:flex; flex-direction:column; align-items:center; align-self:stretch; color:#ac4a00; font-size:0.22rem; font-weight:700; line-height:1.25; }
.claimed .day-bottom { color:#606960; font-size:0.2rem; }
.day { transition:background-color .16s ease-out, border-color .16s ease-out; }
@media (prefers-reduced-motion: reduce) { .day { transition:none; } }
.today-label { margin-top:0.04rem; min-width:74%; align-self:center; text-align:center; border-radius:var(--pill); background:var(--forest); color:white; font-size:0.18rem; line-height:1.5; }
.checkin .action-footer { padding-right:0.42rem; padding-left:0.42rem; }
@media (max-height: 700px) {
  .bag-hero { height:2rem; }
  .sack { height:2.07rem; width:2.07rem; }
  .day { height:1.55rem; }
  .checkin-heading { margin:0.1rem 0 0.03rem; }
  .calendar { margin-top:0.22rem; }
}

.quiz { background: radial-gradient(ellipse at 105% 33%,rgba(254,246,209,.45),transparent 32%), linear-gradient(180deg,#e5f3e2,#f1f8ee 55%,#f7faf4); }
.quiz .back-button { width:1.3rem; }
.quiz .back-face { width:0.66rem; height:0.66rem; border-radius:50%; border:0.02rem solid #dbe8d7; background:rgba(255,255,255,.72); }
.quiz-main { padding:0.32rem var(--space) 0; }
.quiz-status { display:flex; justify-content: space-between; flex-wrap:wrap; gap:0.08rem; margin:0 0.03rem 0.2rem; }
.quiz-progress,.reward-tag { padding:0.08rem 0.17rem; font-size:0.24rem; font-weight:700; }
.quiz-progress { gap:0.09rem; background:#f9fcf7; border:0.02rem solid #d2e8cd; color:#2a5b2f; }
.reward-tag { background:#fff8e7; color:#a9520b; border:0.02rem solid #f5dc9e; }
.question-card { background:rgba(255,255,255,.94); border:0.02rem solid #e4f0df; padding:0.32rem; border-radius:0.5rem; box-shadow:0 0.14rem 0.34rem rgba(46,117,56,.1); }
.question-type { display:flex; align-items:center; justify-content:center; gap:0.1rem; color:#487a4c; font-size:0.23rem; font-weight:650; letter-spacing:0.02rem; }
.question-type span { display:inline-flex; align-items:center; justify-content:center; height:0.22rem; width:0.22rem; border-radius:50%; background:#619365; color:white; font-family:serif; font-size:0.17rem; }
.question-title { text-align:center; margin:0.18rem 0 0.32rem; color:#1f3f22; font-size:0.37rem; line-height:1.42; font-weight:800; }
.option { display:flex; width:100%; gap:0.17rem; min-height:1.04rem; padding:0.18rem 0.24rem; margin-top:0.2rem; text-align:left; border-radius:0.28rem; border:0.02rem solid #e1ebd9; background:#fbfdfa; color:#334e35; }
.option-dot { flex:none; width:0.16rem; height:0.16rem; border-radius:50%; background:#c2d6be; }
.option-text { flex:1; min-width:0; font-size:0.3rem; font-weight:650; }
.option-mark { flex:none; display:flex; align-items:center; justify-content:center; width:0.39rem; height:0.39rem; border-radius:50%; border:0.03rem solid #dae7d7; color:white; font-size:0.26rem; font-weight:750; }
.chosen { background:#ecf7eb; border-color:#388e3c; box-shadow:inset 0 0 0 0.01rem #388e3c; }
.chosen .option-dot,.chosen .option-mark { background:#388e3c; border-color:#388e3c; }
.feedback { margin-top:0.22rem; padding:0.14rem 0.18rem; border:0.02rem solid #bee4b9; border-radius:0.22rem; background:#f1faef; color:#246128; text-align:center; }
.feedback-title { font-size:0.26rem; font-weight:750; }
.explanation { margin-top:0.05rem; line-height:1.55; font-size:0.24rem; }
.incorrect { color:#86480e; border-color:#f0d6ad; background:#fffaef; }
.mistaken { background:#fffaef; border-color:#ad681e; }
.mistaken .option-mark,.mistaken .option-dot { background:#a36322; border-color:#a36322; }
.completed-check { margin:0.45rem auto 0.18rem; width:0.88rem; height:0.88rem; border-radius:50%; background:#e6f5e1; color:#397d3b; font-size:0.48rem; text-align:center; line-height:0.88rem; }
.complete-copy { margin:0.12rem 0 0.3rem; text-align:center; font-size:0.26rem; color:#536e53; }
@media (max-height: 700px) {
  .quiz-main { padding-top:0.2rem; }
  .option { min-height:0.86rem; margin-top:0.14rem; }
  .question-card { padding:0.24rem; }
}

.backpack { background:linear-gradient(180deg,#e5f3e2,#f6f9ef 55%,#fdfbf7); }
.bag-main { padding:0.48rem var(--space) calc(0.36rem + env(safe-area-inset-bottom)); }
.bag-heading,.item-line,.use-item { display:flex; align-items:center; }
.bag-heading,.item-line { justify-content:space-between; font-weight:750; }
.bag-heading { margin:0 0.06rem 0.18rem; font-size:0.3rem; }
.bag-total,.open-label,.muted,.use-note { font-size:0.25rem; color:var(--muted); font-weight:500; }
.form-card,.item,.empty { border-radius:0.4rem; background:var(--cream); box-shadow:0 0.08rem 0.3rem rgba(48,92,48,.08); }
.item { display:block; width:100%; overflow:hidden; }
.illustration { height:3rem; background:radial-gradient(ellipse at center,#fbf7db,#e8f2dd); }
.illustration img { width:100%; height:100%; }
.item-line { padding:0.24rem 0.32rem; font-size:0.32rem; }
.open-label { color:var(--forest); }
.empty { padding:0.66rem 0.3rem 0.32rem; text-align:center; }
.empty-title,.name { font-size:0.34rem; font-weight:750; }
.pouch { position:relative; width:0.84rem; height:0.74rem; margin:0.24rem auto 0.34rem; border-radius:0.22rem 0.22rem 0.3rem 0.3rem; background:#d4ab72; }
.pouch::before { content:""; position:absolute; left:0.23rem; top:-0.22rem; width:0.29rem; height:0.24rem; border:0.05rem solid #9e7447; border-bottom:0; border-radius:0.18rem 0.18rem 0 0; }
.pouch div { margin:auto; position:relative; top:0.3rem; width:0.23rem; height:0.17rem; border-radius:0.15rem 0.02rem; background:#456c3c; }
.muted { margin-top:0.08rem; line-height:1.6; }
.empty .primary { margin-top:0.44rem; }
.receipt { padding:0.18rem 0.22rem; margin-bottom:0.24rem; border-radius:0.2rem; background:#e3f1dc; color:#315d30; font-weight:650; }
.form-card { padding:0.3rem; }
.use-item { gap:0.2rem; }
.use-item img { width:1.1rem; height:1.1rem; background:#eef4e6; border-radius:0.24rem; }
.rule { height:0.02rem; background:#e3e9db; margin:0.26rem 0 0.3rem; }
.field-label { display:block; font-weight:700; margin-bottom:0.15rem; }
.code-entry { display:flex; align-items:center; background:white; border:0.02rem solid #b1c7a8; border-radius:0.2rem; }
.code-entry input { flex:1; min-width:0; padding:0 0.2rem; height:0.9rem; font-size:0.3rem; }
.visibility { min-width:0.88rem; min-height:0.88rem; color:var(--forest); font-size:0.25rem; }
.field-error { color:#93451a; font-size:0.25rem; margin-top:0.12rem; }
.use-note { margin:0.2rem 0 0.28rem; }

html { font-size: min(13.333333vw,64px); -webkit-text-size-adjust:100%; }
body { margin:0; }
#game,.auth-message { max-width:480px; margin:0 auto; }
.screen { min-height:100vh; min-height:100dvh; }
.navigation { min-height:48px; padding-top:env(safe-area-inset-top); }
button,input { font-family:inherit; }
button { border:0; cursor:pointer; -webkit-tap-highlight-color:transparent; }
button:not(:disabled):active { transform:scale(.98); }
button:disabled { cursor:default; }
img { object-fit:contain; }
input { background:transparent; color:inherit; border:0; }
.code-entry input { font-size:max(16px,.30rem); }
.code-entry:focus-within { outline:2px solid #52773f; }
#status:not(:empty) { position:fixed; bottom:10vh; left:50%; transform:translateX(-50%); background:#26442e; color:white; border-radius:14px; padding:12px 18px; z-index:3; }
.auth-message { padding:12vh 24px; text-align:center; }
.auth-message a { color:var(--forest); }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition:none!important; } button:not(:disabled):active { transform:none; } }
