/* quests.css — home screen (.home-) and quests screen (.q-) */
.home-wrap, .q-wrap { padding: 8px 10px 12px; max-width: 100%; overflow-x: hidden; }
.home-wrap .pcard { margin-bottom: 10px; }
.home-hero { display: flex; align-items: flex-end; gap: 8px; background: transparent; }
.home-av { flex: none; cursor: pointer; margin-bottom: 2px; }
.home-hero-info { flex: 1; min-width: 0; padding: 6px 4px 6px 0; }
.home-greet { font-size: 18px; font-weight: 900; line-height: 1.2; word-break: break-word; }
.home-date { font-size: 14px; color: var(--ink); margin: 2px 0 8px; text-shadow: 0 1px 0 #fff; }
.home-lvrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.home-lv { font-size: 20px; font-weight: 900; padding: 0 2px; }
.home-xp { font-size: 14px; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.home-hint { font-size: 12px; color: var(--ink); margin-top: 6px; line-height: 1.3; text-shadow: 0 1px 0 #fff; }
.home-boost { font-size: 12px; margin-top: 4px; color: #b86a00; text-shadow: 0 1px 0 #fff; }
.home-quote { font-size: 15px; line-height: 1.5; text-align: center; padding: 6px 8px 8px; color: var(--ink); }
.home-empty { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 4px 0 10px; }
.home-wrap .home-empty + .pbtn { display: flex; margin: 0 auto 4px; width: max-content; }
.home-row, .q-row { display: flex; align-items: center; gap: 6px; position: relative; padding-left: 14px; min-height: 52px; cursor: pointer; overflow: hidden; }
.home-row .grow, .q-row .grow, .q-hhead .grow, .q-anniv .grow { flex: 1; min-width: 0; }
.home-bar, .q-colorbar { position: absolute; left: 0; top: 0; bottom: 0; width: 7px; }
.home-rt, .q-title { font-size: 15px; font-weight: 900; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-rs { font-size: 12px; color: var(--ink-soft); }
.home-rs.late { color: #e0486a; }
.home-row.done .home-rt, .q-row.done .q-title { text-decoration: line-through; opacity: .55; }
.home-habits { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.home-habit { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; min-height: 88px; }
.home-hcircle { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--ink); transition: transform .15s cubic-bezier(.3,1.6,.5,1); }
.home-hcircle img { width: 34px; height: 34px; }
.home-habit:active .home-hcircle { transform: scale(.88); }
.home-habit.on .home-hcircle { animation: pop-in .25s both; }
.home-hname { font-size: 12px; font-weight: 800; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-flame { font-size: 12px; font-weight: 900; color: #d9661f; }
.home-anniv { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.home-anniv img, .q-hicon img { width: 32px; height: 32px; flex: none; }
.home-chip { flex: none; padding: 4px 10px; border-radius: 999px; background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff; border: 2px solid var(--ink); font-size: 14px; font-weight: 900; text-shadow: 0 1px 0 rgba(0,0,0,.3); box-shadow: 0 2px 0 var(--ink); }
.home-chip.now { background: linear-gradient(180deg, var(--gold), #ff9fc0); animation: pulse 1.2s infinite; }
.home-tap { cursor: pointer; }
.home-cycle { padding: 0 6px 8px; }
.home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.home-stat { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; background: linear-gradient(135deg, #fff, var(--bg3)); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--line); }
.home-stat img { width: 24px; height: 24px; }
.home-num { font-size: 28px; font-weight: 900; line-height: 1.1; }
.home-sl { font-size: 12px; color: var(--ink-soft); text-align: center; }
.home-chart { display: flex; align-items: flex-end; gap: 2px; height: 48px; padding: 4px 4px 0; border-bottom: 2px solid var(--line); }
.home-chart i { flex: 1; min-width: 0; background: var(--accent2); border-radius: 3px 3px 0 0; }
.home-chart i.today { background: var(--accent); }
.home-gold { display: flex; align-items: center; gap: 8px; padding: 0 6px 6px; }
.home-gold img { width: 32px; height: 32px; }
.home-gbtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 4px; }

/* quests */
.q-tabs { margin: 0 0 10px; flex-wrap: nowrap; }
.q-tabs > button { flex: 1; text-align: center; min-height: 44px; }
.q-add { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.q-add .pinput { flex: 1; min-width: 0; }
.q-filter { margin-bottom: 10px; }
.q-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; align-items: center; }
.q-chip { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--bg2); color: var(--ink); border: 1.5px solid var(--line); }
.q-chip.late { background: #ffd3dc; color: #c8284e; border-color: #ff8a9e; }
.q-chip.flame { background: #fff0d6; color: #c25a10; border-color: #ffc98a; }
.q-chip.kind { background: var(--accent3); }
.q-stars { font-size: 14px; letter-spacing: 1px; text-shadow: 0 1px 0 var(--ink); }
.q-stars.p1 { color: var(--gold); }
.q-stars.p2 { color: #ff6f91; }
.q-empty { text-align: center; padding: 18px 8px 10px; color: var(--ink-soft); font-size: 15px; }
.q-empty img { width: 56px; height: 56px; display: block; margin: 0 auto 8px; animation: bob 2.4s ease-in-out infinite; }
.q-foot { display: flex; justify-content: center; margin: 8px 0; }
.q-suggest { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.q-preset, .q-pick { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); font-size: 14px; font-weight: 900; color: var(--ink); }
.q-preset { flex-direction: column; gap: 2px; min-width: 88px; }
.q-preset img, .q-pick img { width: 36px; height: 36px; }
.q-preset:active, .q-pick:active { transform: scale(.94); }
.q-habit { padding: 10px; }
.q-hhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-hicon { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; }
.q-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.q-day { all: unset; box-sizing: border-box; cursor: pointer; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 2px solid var(--line); color: var(--ink); transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
.q-day small { font-size: 12px; opacity: .7; }
.q-day b { font-size: 15px; font-weight: 900; }
.q-day.today { border-color: var(--ink); }
.q-day.on { border-color: var(--ink); color: #fff; text-shadow: 0 1px 0 var(--ink); }
.q-day:active { transform: scale(.88); }
.q-anniv { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 60px; }
.q-anniv.now { border-color: var(--accent); box-shadow: 0 3px 0 var(--accent); }
.q-anniv .q-title { white-space: normal; }
.q-dn { font-size: 15px; }
