/* activity tab styles. Every class starts with "activity-" so tabs never collide. */
.activity-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.activity-root { padding-bottom: 28px; }
.activity-root .screen-title { padding-bottom: 4px; }

/* category bar */
.activity-bar-host { position: sticky; top: 0; z-index: 5; background: var(--page); }
.activity-bar { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--page); }
.activity-bar-scroll { position: relative; flex: 1; min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 0 0 8px; }
.activity-bar-scroll::-webkit-scrollbar { display: none; }
.activity-cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 10px 8px 9px; border: 0; border-bottom: 3px solid transparent; background: none; color: #7a8397; font: inherit; font-size: 13px; cursor: pointer; }
.activity-cat[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.activity-cat-icon { display: block; height: 26px; }
.activity-cat-icon svg { display: block; }
.activity-expand { flex: none; align-self: center; width: 40px; height: 40px; margin: 0 8px 0 4px; border: 0; border-radius: 50%; background: #eceef2; color: #3a4252; display: grid; place-items: center; cursor: pointer; box-shadow: -10px 0 10px 4px var(--page); }
.activity-tip { position: absolute; z-index: 6; right: 8px; top: calc(100% + 10px); max-width: 230px; padding: 12px 16px; border-radius: 12px; background: #353a47; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 6px 18px #0003; cursor: pointer; }
.activity-tip-arrow { position: absolute; right: 18px; top: -7px; width: 0; height: 0; border: 8px solid transparent; border-top: 0; border-bottom-color: #353a47; }

/* full category menu (covers the phone, bottom navigation included) */
.activity-menu { position: absolute; inset: 0; z-index: 40; }
.activity-menu-dim, .activity-sheet-dim { position: absolute; inset: 0; background: rgba(15, 18, 28, .55); }
.activity-menu-sheet { position: absolute; left: 0; right: 0; top: 0; padding: 0 12px 34px; background: var(--page); border-radius: 0 0 28px 28px; box-shadow: 0 8px 24px #0003; }
.activity-menu-title { margin: 0; padding: 20px 8px 14px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.activity-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 4px; }
.activity-cat-big { min-width: 0; padding: 14px 4px 11px; font-size: 14px; }
.activity-menu-close { position: absolute; left: 50%; top: 214px; width: 52px; height: 52px; margin-left: -26px; border: 0; border-radius: 50%; background: #fff; color: #1b1f27; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 12px #0003; }

/* bottom info sheet */
.activity-sheet { position: absolute; inset: 0; z-index: 50; }
.activity-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px 22px; background: var(--page); border-radius: 24px 24px 0 0; }
.activity-sheet-title { display: block; font-size: 20px; letter-spacing: -0.02em; }
.activity-sheet-text { margin: 10px 0 20px; color: var(--ink-sub); line-height: 1.55; }

/* recommended: banners, replay card */
.activity-banner-wrap { padding: 16px 0 0; }
.activity-banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; scroll-padding: 0 20px; scrollbar-width: none; }
.activity-banners::-webkit-scrollbar { display: none; }
.activity-banner { flex: none; width: calc(100% - 28px); min-height: 138px; scroll-snap-align: start; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; padding: 18px 8px 14px 18px; border: 0; border-radius: 18px; color: #fff; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.activity-banner-text { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.activity-banner-text strong { font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; }
.activity-banner-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .92; }
.activity-banner-arrow { width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.activity-banner .activity-art { flex: none; align-self: flex-end; }
.activity-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.activity-dot { width: 6px; height: 6px; border-radius: 3px; background: #d3d8e2; transition: width .15s; }
.activity-dot[aria-current="true"] { width: 16px; background: var(--primary); }
.activity-replay { display: flex; align-items: center; gap: 12px; width: calc(100% - 40px); margin: 0 20px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.activity-replay-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface); display: block; }
.activity-replay-thumb svg, .activity-replay-thumb .activity-art { display: block; width: 100%; height: 100%; }
.activity-replay-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.activity-replay-text small { color: var(--ink-sub); }
.activity-replay-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-replay-go { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 700; }

/* sections and lists */
.activity-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 26px 20px 4px; }
.activity-section-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; line-height: 1.3; }
.activity-count { flex: none; color: var(--ink-sub); font-size: 14px; }
.activity-list { padding: 0 20px; }
.activity-list .row-activity { min-height: 84px; }
.activity-list .row:last-child { border-bottom-color: transparent; }
.activity-more { display: block; width: calc(100% - 40px); margin: 12px 20px 0; padding: 14px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.activity-more[hidden] { display: none; }
.activity-more small { display: block; margin-top: 2px; color: var(--ink-sub); font-weight: 400; }
.activity-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px 26px; text-align: center; }
.activity-empty .activity-art { margin-bottom: 8px; }
.activity-empty strong { font-size: 16px; }
.activity-empty p { margin: 0; color: var(--ink-sub); font-size: 14px; }

/* category pages: big title, big cards, chips */
.activity-big-title { margin: 0; padding: 22px 20px 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.activity-cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; scroll-padding: 0 20px; scrollbar-width: none; }
.activity-cards::-webkit-scrollbar { display: none; }
.activity-card { flex: none; width: 262px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.activity-card-thumb { display: block; width: 100%; aspect-ratio: 5 / 3; border-radius: 18px; overflow: hidden; background: var(--surface); margin-bottom: 6px; }
.activity-card-thumb svg, .activity-card-thumb .activity-art { display: block; width: 100%; height: 100%; }
.activity-card-title { font-size: 17px; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activity-card-line { color: var(--ink-sub); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activity-art-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.activity-chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 22px 20px 0; scrollbar-width: none; }
.activity-chips::-webkit-scrollbar { display: none; }
.activity-chip { flex: none; padding: 10px 18px; border: 0; border-radius: 999px; background: #f1f3f5; color: #6a7285; font: inherit; font-size: 15px; cursor: pointer; }
.activity-chip[aria-pressed="true"] { background: #3a3f4b; color: #fff; font-weight: 700; }
.activity-chips-host:empty { display: none; }
