/* Home renovation: compact, action-first and mobile-first. */

.home-header {
    min-height: calc(3.75rem + var(--mf-safe-top));
    padding-block: calc(0.5rem + var(--mf-safe-top)) 0.5rem !important;
    background: rgba(255, 255, 255, 0.94);
}

.home-header .logo-area,
.home-header .desktop-nav {
    display: none !important;
}

.home-header-actions {
    display: flex !important;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0.5rem !important;
}

.home-header-actions #menu-trigger {
    order: 0;
    margin-right: auto;
}

.home-header-actions :where(.btn-signup, .btn-profile-header, .btn-logout-header, .guest-badge-header) {
    order: 2;
}

.home-menu-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #0f172a;
    font-size: 1.1rem;
}

.home-header .btn-signup {
    min-height: 2.75rem;
    padding: 0.65rem 1rem !important;
    border-radius: 999px;
    box-shadow: none;
}

.menu-section-label {
    margin: 1.25rem 0 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-section-label:first-child {
    margin-top: 0;
}

.home-launch {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2.25rem calc(var(--mf-gutter) + var(--mf-safe-right)) 2.75rem calc(var(--mf-gutter) + var(--mf-safe-left));
    background:
        radial-gradient(circle at 15% 10%, rgba(125, 211, 252, 0.3), transparent 34%),
        radial-gradient(circle at 90% 80%, rgba(253, 230, 138, 0.34), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef7ff 60%, #fff 100%);
    text-align: center;
}

.home-launch::after {
    content: '';
    position: absolute;
    inset: auto -10% -5.5rem;
    z-index: -1;
    height: 9rem;
    border-radius: 50% 50% 0 0;
    background: rgba(255, 255, 255, 0.7);
}

.home-launch-copy {
    max-width: 34rem;
    margin: 0 auto 1.75rem;
}

.home-launch-kicker {
    display: inline-block;
    margin: 0 0 0.5rem;
    color: #3b82f6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.home-launch h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 7vw, 2.5rem);
    line-height: 1.25;
}

.home-launch-copy p:last-child {
    margin: 0.65rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.5rem, 3vw, 1rem);
    width: 100%;
    max-width: 29rem;
    margin-inline: auto;
}

.quick-action {
    display: flex;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #0f172a;
    text-decoration: none;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.quick-action-circle {
    display: inline-flex;
    width: clamp(4.5rem, 21vw, 5.75rem);
    height: clamp(4.5rem, 21vw, 5.75rem);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-action-camera .quick-action-circle {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.quick-action-map .quick-action-circle {
    background: linear-gradient(145deg, #34d399, #059669);
}

.quick-action-info .quick-action-circle {
    background: linear-gradient(145deg, #fbbf24, #ea580c);
}

.quick-action-label {
    display: block;
    max-width: 100%;
    color: #334155;
    font-size: clamp(0.72rem, 3.3vw, 0.88rem);
    font-weight: 700;
    line-height: 1.35;
}

.quick-action:active .quick-action-circle {
    transform: scale(0.94);
}

.home-capture-workspace[hidden] {
    display: none !important;
}

.home-capture-workspace {
    max-width: 34rem;
    margin: 1.5rem auto 0;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(37, 99, 235, 0.12);
}

.home-capture-workspace .preview-wrapper {
    width: 100%;
    margin: 0;
}

.home-capture-workspace .status-container {
    margin: 0.8rem 0 0;
}

.home-capture-workspace .system-status-badge-bottom {
    min-width: 0;
    padding: 0.35rem 0.85rem;
    line-height: 1.35;
}

.home-capture-workspace .tips-card {
    width: 100%;
    max-width: none;
    margin: 0.9rem 0 0 !important;
    padding: 1rem;
}

.home-capture-workspace .tips-header-main {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: left;
}

.home-capture-workspace .tips-header-main h3,
.home-capture-workspace .tips-header {
    font-size: 0.95rem;
    text-align: left;
}

.home-capture-workspace .tips-list {
    gap: 0.55rem;
}

.home-capture-workspace .tips-list li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    padding: 0.7rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: left;
}

.home-launch.has-capture {
    padding-bottom: 1.25rem;
}

.home-launch.has-capture::after {
    display: none;
}

.home-section {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding: 3.25rem calc(var(--mf-gutter) + var(--mf-safe-right)) 3.25rem calc(var(--mf-gutter) + var(--mf-safe-left)) !important;
}

.home-section-heading {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.home-section-heading-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.home-section-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: #3b82f6;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.45rem, 6vw, 2.2rem);
}

.home-section-heading p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.home-section-link {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: var(--mf-touch);
    min-height: var(--mf-touch);
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 0.45rem;
    padding-inline: 0.75rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    touch-action: manipulation;
}

.home-section-link > i {
    display: grid;
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    margin: 0 !important;
    place-items: center;
    font-size: 0.9rem;
    line-height: 1 !important;
}

.home-section-link > i::before {
    display: block;
    line-height: 1;
}
/* Leaderboard */
.home-ranking {
    background: #fff;
}

.leaderboard-podium {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.podium-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 13.5rem;
    padding: 1rem 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #fff, #f8fafc);
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.podium-card.is-rank-1 {
    grid-column: 1 / -1;
    min-height: 15rem;
    border-color: #fde68a;
    background: linear-gradient(160deg, #fffbeb 0%, #fff 58%, #fef3c7 100%);
    box-shadow: 0 1rem 2.5rem rgba(245, 158, 11, 0.15);
}

.podium-rank {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 800;
}

.is-rank-1 .podium-rank {
    background: #fbbf24;
    color: #78350f;
}

.is-rank-2 .podium-rank {
    background: #cbd5e1;
    color: #334155;
}

.is-rank-3 .podium-rank {
    background: #fed7aa;
    color: #9a3412;
}

.podium-crown {
    height: 1.5rem;
    color: #f59e0b;
    font-size: 1.25rem;
}

.podium-avatar-wrap {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0.25rem auto 0.75rem;
    padding: 0.2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.12);
}

.is-rank-1 .podium-avatar-wrap {
    width: 5.5rem;
    height: 5.5rem;
    box-shadow: 0 0 0 0.25rem #fde68a, 0 0.75rem 1.5rem rgba(245, 158, 11, 0.2);
}

.podium-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.podium-name {
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-points {
    margin-top: 0.25rem;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 700;
}

.podium-locations {
    color: #64748b;
    font-size: 0.72rem;
}

.my-rank-card {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    background: #eff6ff;
    align-items: center;
    gap: 0.75rem;
}

.my-rank-card[hidden] {
    display: none !important;
}

.my-rank-number {
    color: #1d4ed8;
    font-size: 1.15rem;
    font-weight: 900;
}

.my-rank-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
}

.my-rank-copy {
    min-width: 0;
}

.my-rank-label {
    display: block;
    color: #64748b;
    font-size: 0.7rem;
}

.my-rank-name {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-rank-points {
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: right;
}

/* Recommended places slider */
.home-recommendations {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #f8fafc !important;
}

.home-category-filter {
    display: flex;
    margin: 0 calc(var(--mf-gutter) * -1) 1rem;
    padding: 0 var(--mf-gutter) 0.4rem;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-category-filter::-webkit-scrollbar,
.home-tips-track::-webkit-scrollbar {
    display: none;
}

.home-category-chip {
    flex: 0 0 auto;
    min-height: 2.6rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    scroll-snap-align: start;
}

.home-category-chip[aria-pressed="true"] {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0.1rem 0.2rem rgba(37, 99, 235, 0.18);
}

.home-tips-slider {
    position: relative;
}

.home-tips-track {
    display: flex !important;
    grid-template-columns: none !important;
    margin: 0 calc(var(--mf-gutter) * -1);
    padding: 0.25rem var(--mf-gutter) 1.25rem;
    gap: 0.9rem !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--mf-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-tip-card {
    display: flex;
    flex: 0 0 min(82vw, 19rem);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 0.65rem 1.6rem rgba(15, 23, 42, 0.07);
    flex-direction: column;
    scroll-snap-align: start;
}

.home-tip-media {
    position: relative;
    height: 11.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #f1f5f9);
}

.home-tip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-tip-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 2.5rem;
}

.home-tip-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.35rem 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    font-size: 0.7rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(0.5rem);
}

.home-tip-content {
    display: flex;
    min-height: 9.5rem;
    padding: 1rem;
    flex-direction: column;
}

.home-tip-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.home-tip-description {
    display: -webkit-box;
    margin: 0.45rem 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-tip-footer {
    display: flex;
    margin-top: auto;
    padding-top: 0.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-tip-featured {
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
}

.home-tip-more {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.home-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.home-slider-button {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0 !important;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #334155;
    align-items: center;
    justify-content: center;
}

.tips-empty-state {
    flex: 0 0 100%;
    padding: 2rem 1rem;
    color: #64748b;
    text-align: center;
}

/* Local Tips feed and detail dialog */
.home-tips-feed {
    width: 100%;
    max-width: 46rem;
    margin-inline: auto;
}

.home-tips-feed .home-tips-track {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 0 !important;
    padding: 0.25rem 0 !important;
    gap: 1rem !important;
    overflow: visible;
    scroll-snap-type: none;
}

.home-tips-feed .home-tip-card {
    display: block;
    width: 100%;
    max-width: none;
    border-radius: 1.35rem;
    flex: none;
    scroll-snap-align: none;
}

.home-tip-open {
    display: block;
    width: 100%;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.home-tips-feed .home-tip-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
}

.home-tips-feed .home-tip-content {
    min-height: 0;
    padding: 1rem;
}

.home-tips-feed .home-tip-footer {
    padding-top: 0.75rem;
}

.home-tip-open:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: -3px;
    border-radius: inherit;
}

body.tip-detail-open {
    overflow: hidden;
}

.tip-detail-overlay[hidden] {
    display: none !important;
}

.tip-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    padding: max(1rem, var(--mf-safe-top)) max(1rem, var(--mf-safe-right)) max(1rem, var(--mf-safe-bottom)) max(1rem, var(--mf-safe-left));
    overflow: hidden;
    background: rgba(15, 23, 42, 0.62);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0.35rem);
}

.tip-detail-dialog {
    width: min(100%, 46rem);
    max-height: min(92dvh, 52rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 2rem 5rem rgba(15, 23, 42, 0.3);
}

.tip-detail-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    backdrop-filter: blur(0.75rem);
}

.tip-detail-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
}

.tip-detail-close {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    align-items: center;
    justify-content: center;
}

.tip-detail-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #f1f5f9);
}

.tip-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tip-detail-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.tip-detail-copy {
    padding: 1.15rem;
}

.tip-detail-category {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
}

.tip-detail-copy h3 {
    margin: 0.8rem 0 0;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.35;
}

.tip-detail-copy > p {
    margin: 0.65rem 0 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-line;
}

.tip-detail-meta {
    display: grid;
    margin: 1rem 0 0;
    padding: 0;
    gap: 0.65rem;
    list-style: none;
}

.tip-detail-meta li {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    color: #475569;
    font-size: 0.82rem;
    gap: 0.55rem;
}

.tip-detail-meta i {
    color: #2563eb;
}

.tip-detail-website {
    display: inline-flex;
    min-height: 2.75rem;
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.8rem;
    background: #eff6ff;
    color: #1d4ed8;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.tip-comments {
    padding: 1.15rem;
    border-top: 0.5rem solid #f8fafc;
}

.tip-comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tip-comments-heading h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
}

.tip-comments-count {
    display: inline-flex;
    min-width: 1.75rem;
    height: 1.75rem;
    padding-inline: 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.tip-comments-list {
    display: grid;
    margin-top: 1rem;
    gap: 0.8rem;
}

.tip-comments-state {
    padding: 1.25rem 0.75rem;
    color: #64748b;
    font-size: 0.82rem;
    text-align: center;
}

.tip-comments-state i {
    margin-bottom: 0.4rem;
    font-size: 1.35rem;
}

.tip-comments-state p {
    margin: 0;
}

.tip-comment-item {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 0.8rem;
    border-radius: 1rem;
    background: #f8fafc;
    gap: 0.7rem;
}

.tip-comment-item > img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.tip-comment-item header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.tip-comment-item strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tip-comment-item time {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 0.65rem;
}

.tip-comment-item p {
    margin: 0.25rem 0 0;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.tip-comment-form {
    display: grid;
    margin-top: 1rem;
    gap: 0.5rem;
}

.tip-comment-form[hidden],
.tip-comment-login-hint[hidden] {
    display: none !important;
}

.tip-comment-form label {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
}

.tip-comment-form textarea {
    width: 100%;
    min-height: 6rem;
    padding: 0.8rem;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    color: #0f172a;
    font: inherit;
    font-size: 0.85rem;
}

.tip-comment-form textarea:focus {
    border-color: #3b82f6;
    outline: 3px solid rgba(59, 130, 246, 0.15);
}

.tip-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tip-comment-form-footer small {
    color: #94a3b8;
    font-size: 0.65rem;
}

.tip-comment-submit,
.tip-comment-login-hint button {
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border: 0;
    border-radius: 0.8rem;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.tip-comment-submit:disabled {
    opacity: 0.55;
}

.tip-comment-login-hint {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #eff6ff;
    color: #1e3a8a;
    text-align: center;
}

.tip-comment-login-hint p {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
}

@media (max-width: 35rem) {
    .tip-detail-overlay {
        padding: max(2rem, var(--mf-safe-top)) 0 0;
        align-items: flex-end;
    }

    .tip-detail-dialog {
        max-height: 94dvh;
        border-radius: 1.5rem 1.5rem 0 0;
    }
}

/* Promo and team */
.home-video {
    text-align: left !important;
}

.home-video .video-container {
    max-width: 52rem;
    border-radius: 1.25rem !important;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.14);
}

.home-team {
    background: #fff;
}

.developer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.developer-card {
    display: flex;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.4rem rgba(15, 23, 42, 0.05);
    flex-direction: column;
    text-align: center;
}

.developer-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.425rem);
    justify-self: center;
}

.developer-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 0.8rem;
    object-fit: cover;
    object-position: center top;
}

.developer-info {
    padding: 0.75rem 0.25rem 0.35rem;
}

.developer-name {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.developer-role {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.45;
}

/* Compact footer: navigation lives in the menu. */
.compact-footer {
    padding: 1.75rem calc(var(--mf-gutter) + var(--mf-safe-right)) calc(1.25rem + var(--mf-safe-bottom)) calc(var(--mf-gutter) + var(--mf-safe-left)) !important;
}

.compact-footer .footer-content {
    display: flex;
    max-width: 52rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem !important;
}

.compact-footer .footer-brand {
    gap: 0.45rem;
}

.compact-footer .footer-brand h3 {
    font-size: 1.05rem;
}

.compact-footer .footer-brand p {
    max-width: 34rem;
    font-size: 0.72rem;
    line-height: 1.55;
}

.compact-footer .footer-social-new {
    margin-top: 0.35rem;
    gap: 0.5rem;
}

.compact-footer .social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.compact-footer .footer-bottom {
    max-width: 52rem;
    margin: 1rem auto 0 !important;
    padding-top: 0.8rem;
    font-size: 0.68rem;
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (min-width: 48rem) {
    .home-launch {
        padding-block: 3.5rem 4rem;
    }

    .leaderboard-podium {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

    .podium-card.is-rank-1 {
        grid-column: auto;
        min-height: 17rem;
        order: 2;
    }

    .podium-card.is-rank-2 {
        order: 1;
    }

    .podium-card.is-rank-3 {
        order: 3;
    }

    .home-category-filter {
        margin-inline: 0;
        padding-inline: 0;
    }

    .home-tips-track {
        margin-inline: 0;
        padding-inline: 0;
    }

    .home-tip-card {
        flex-basis: calc((100% - 1.8rem) / 3);
    }

    .developer-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .developer-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }
}

@media (max-width: 35rem) {
    .home-section-heading {
        align-items: flex-start;
    }

    .home-section-heading p {
        max-width: 15rem;
    }

    .home-section-link {
        width: var(--mf-touch);
        max-width: var(--mf-touch);
        height: var(--mf-touch);
        padding: 0;
        font-size: 0;
    }

    .home-section-link i {
        transform: translateX(-1px);
    }

    .my-rank-card {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .my-rank-points {
        grid-column: 3;
        text-align: left;
    }

    .compact-footer .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .compact-footer .footer-bottom {
        display: block;
        width: 100%;
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
        color: #94a3b8;
        text-align: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    .quick-action:hover .quick-action-circle {
        transform: translateY(-0.25rem);
        box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.18);
    }

    .developer-card:hover,
    .home-tip-card:hover {
        transform: translateY(-0.2rem);
        box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.1);
    }
}

/* Keep both compact section actions centered and inside the mobile grid. */
@media (max-width: 35rem) {
    .home-section-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--mf-touch);
    }

    .home-section-link,
    .home-section-link > i {
        box-sizing: border-box;
    }

    .home-section-link > i {
        padding-right: 8px;
        width: 100%;
        height: 100%;
        margin: 0 !important;
        place-items: center;
        transform: none;
    }
}
