* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; background: #fff7ed; color: #1f2937; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f97316; color: #fff; }
.topbar h1 { font-size: 20px; margin: 0; flex: 1; }
.badge { background: #fff; color: #9a3412; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.linkbtn { background: none; border: 1px solid #fff; color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.hidden { display: none; }
label { display: block; margin: 12px 0; font-weight: 600; }
input { display: block; width: 100%; padding: 12px; margin-top: 6px; font-size: 18px; border: 2px solid #d1d5db; border-radius: 10px; }
select { display: block; width: 100%; padding: 12px; margin-top: 6px; font-size: 16px; border: 2px solid #d1d5db; border-radius: 10px; background: #fff; }
.review-banner { background: #fef3c7; border: 1px solid #f59e0b; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-weight: 600; }
/* Home tabs (2026-11-15): "Keep adventuring" (play) and "Quest"
   (daily + weekly tasks). The Quest tab sits immediately right of
   Keep adventuring; the play view no longer shows the quest card. */
.home-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
button.home-tab { flex: 1; border: 2px solid #d1d5db; background: #fff; font-weight: 700; font-size: 16px; }
button.home-tab.active { border-color: #f97316; background: #fff7ed; color: #9a3412; }
/* Newcomer gift banner (2026-11-15): shown while the free welcome
   blind-box ticket is unspent; it disappears once the ticket is used. */
.gift-banner { background: #fef9c3; border: 2px solid #eab308; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; }
.score-line { background: #eff6ff; border: 1px solid #93c5fd; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-weight: 600; }
.streak-line { background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-weight: 600; }
.task-row { border-top: 1px solid #e5e7eb; padding: 8px 0; font-size: 14px; }
.task-row span { display: block; }
.task-bar { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.task-bar span { display: block; height: 100%; background: #22c55e; }
#tasksCard h4 { margin: 12px 0 4px; }
/* Feeding / growth: the animal visibly grows — Baby is small, Growing
   is bigger, Adult is full size with a partner badge when chosen. */
.animal.stage-baby svg { width: 60%; }
.animal.stage-growing svg { width: 82%; }
.animal.stage-adult svg { width: 100%; }
.stage-badge { display: block; font-size: 12px; font-weight: 700; color: #92400e; margin-top: 2px; }
.partner-badge { display: block; font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.feed-btn, .partner-btn { display: block; width: 100%; margin-top: 6px; font-size: 13px; padding: 6px 8px; }
.feed-btn { background: #fef3c7; border-color: #f59e0b; }
.partner-btn { background: #eff6ff; border-color: #93c5fd; }
.variant-banner { background: #dbeafe; border: 1px solid #3b82f6; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-weight: 600; }
.mistake-row { border-top: 1px solid #e5e7eb; padding: 8px 0; font-size: 14px; }
.mistake-row .stage-dots { letter-spacing: 2px; }
.grade-badge { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
button { cursor: pointer; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; padding: 10px 14px; margin: 4px 4px 4px 0; font-size: 15px; }
button.primary { background: #f97316; color: #fff; border-color: #f97316; }
button:disabled { opacity: .5; cursor: default; }
.error { color: #b91c1c; font-weight: 600; }
.muted { color: #6b7280; font-size: 14px; }
.bigcode { font-size: 28px; letter-spacing: 2px; font-weight: 800; margin: 8px 0; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.animal { text-align: center; font-size: 13px; padding: 6px; border-radius: 12px; background: #f9fafb; }
.animal.owned { background: #fef3c7; cursor: pointer; }
.animal svg { width: 100%; height: auto; }
.animal img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.photo-locked { height: 120px; display: flex; align-items: center; justify-content: center; background: #e5e7eb; border-radius: 10px; font-size: 28px; color: #6b7280; }
.photo-credit { font-size: 11px; margin-top: 4px; }
.photo-credit a { color: #6b7280; }
.rarity { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-top: 4px; }
.rarity-common { background: #e5e7eb; color: #374151; }
.rarity-rare { background: #dbeafe; color: #1d4ed8; }
.rarity-legendary { background: #fef3c7; color: #b45309; border: 1px solid #f59e0b; }
.series-row { margin: 8px 0; font-size: 14px; }
.show-all-btn { display: block; width: 100%; background: #fff7ed; border: 2px solid #f97316; color: #9a3412; font-weight: 700; margin: 8px 0 4px; }
.series-bar { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.series-bar span { display: block; height: 100%; background: #f97316; }
#collectionCard h4, #photoCard h4 { margin: 14px 0 6px; }
.barmodel { display: flex; gap: 2px; margin: 12px 0; }
.barmodel span { flex: 1; height: 36px; background: #e5e7eb; border: 1px solid #9ca3af; }
.barmodel span.shaded { background: #fbbf24; }
.bank-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
button.bank-tab { border: 2px solid #d1d5db; background: #fff; font-weight: 600; }
button.bank-tab.active { border-color: #f97316; background: #fff7ed; color: #9a3412; }
.bank-row { border-top: 1px solid #e5e7eb; padding: 10px 0; font-size: 14px; }
.student-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; margin: 12px 0; }
.student-card.frozen { background: #fef2f2; border-color: #fca5a5; }
.step { border-top: 2px solid #fde68a; margin-top: 12px; padding-top: 8px; }
footer { text-align: center; color: #6b7280; font-size: 13px; padding: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
button.choice { border: 2px solid #d1d5db; background: #fff; font-size: 16px; }
button.choice.selected { border-color: #f97316; background: #fff7ed; font-weight: 700; }
