@charset "UTF-8";

/* ================================================================
 * SUGO Mobile UI - Stylesheet (全幅・edge-to-edge版)
 * - セクションは画面幅100%、左右の外側余白ゼロ
 * - 文字が画面端にくっつかない最低限の内側パディングのみ確保
 * ================================================================ */

/* ================================
 * Variables
 * ================================ */
:root {
    --sugo-mobile-purple:        #7C3AED;
    --sugo-mobile-purple-2:      #8B5CF6;
    --sugo-mobile-purple-light:  #A78BFA;
    --sugo-mobile-purple-soft:   #C4B5FD;
    --sugo-mobile-purple-bg:     #EDE9FE;
    --sugo-mobile-purple-pale:   #F5F3FF;

    --sugo-mobile-pink:          #EC4899;
    --sugo-mobile-pink-2:        #F472B6;
    --sugo-mobile-pink-bg:       #FCE7F3;
    --sugo-mobile-pink-text:     #DB2777;

    --sugo-mobile-blue:          #2563EB;
    --sugo-mobile-blue-bg:       #DBEAFE;
    --sugo-mobile-blue-soft:     #93C5FD;

    --sugo-mobile-green:         #16A34A;
    --sugo-mobile-green-bg:      #DCFCE7;

    --sugo-mobile-red:           #DC2626;
    --sugo-mobile-red-bg:        #FEE2E2;
    --sugo-mobile-red-strong:    #EF4444;

    --sugo-mobile-yellow:        #D97706;
    --sugo-mobile-yellow-bg:     #FEF3C7;

    --sugo-mobile-line-green:    #06C755;

    --sugo-mobile-text:          #1F2937;
    --sugo-mobile-text-mute:     #6B7280;
    --sugo-mobile-text-faint:    #9CA3AF;
    --sugo-mobile-border:        #E5E7EB;
    --sugo-mobile-border-soft:   #F3F4F6;

    --sugo-mobile-bg:            #FAFAFB;
    --sugo-mobile-white:         #FFFFFF;

    --sugo-mobile-shadow-xs:     0 1px 2px rgba(17, 24, 39, .04);
    --sugo-mobile-shadow-sm:     0 2px 8px rgba(124, 58, 237, .06);
    --sugo-mobile-shadow:        0 4px 14px rgba(124, 58, 237, .08);
    --sugo-mobile-shadow-md:     0 6px 20px rgba(124, 58, 237, .12);

    --sugo-mobile-radius-sm:     10px;
    --sugo-mobile-radius:        14px;
    --sugo-mobile-radius-pill:   999px;

    --sugo-mobile-pad-x:         16px;   /* セクション内側の横パディング */
    --sugo-mobile-section-gap:   10px;   /* セクション間の縦の隙間 */

    --sugo-mobile-font:
        "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
        -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic",
        Meiryo, sans-serif;
}

/* ================================
 * Base (scoped)
 * ================================ */
body.sugo-mobile-ui-active {
    margin: 0;
    padding: 0;
    background: var(--sugo-mobile-purple-pale);
    color: var(--sugo-mobile-text);
    font-family: var(--sugo-mobile-font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain;
    width: 100%;
    overflow-x: hidden;
}

body.sugo-mobile-ui-active * { box-sizing: border-box; }

body.sugo-mobile-ui-active a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.sugo-mobile-ui-active button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.sugo-mobile-ui-active img,
body.sugo-mobile-ui-active svg {
    display: block;
    max-width: 100%;
}

body.sugo-mobile-ui-active input,
body.sugo-mobile-ui-active textarea,
body.sugo-mobile-ui-active select {
    font-family: inherit;
    font-size: 16px; /* iOS拡大防止 */
}

/* ================================
 * App container - 完全に画面幅
 * ================================ */
.sugo-mobile-app {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0 0 100px;
    background:
        radial-gradient(900px 300px at 50% -120px, #EDE9FE 0%, transparent 60%),
        var(--sugo-mobile-purple-pale);
    position: relative;
}

/* ================================
 * Top bar (full-width)
 * ================================ */
.sugo-mobile-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px var(--sugo-mobile-pad-x);
    background: rgba(245, 243, 255, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow .2s ease, background .2s ease;
}
.sugo-mobile-topbar.is-scrolled {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 12px rgba(124, 58, 237, .06);
}

.sugo-mobile-topbar-menu {
    width: 28px; height: 28px;
    color: var(--sugo-mobile-text);
    flex-shrink: 0;
}
.sugo-mobile-topbar-menu svg { width: 100%; height: 100%; }

.sugo-mobile-topbar-logo {
    display: flex; align-items: center; gap: 6px;
    flex: 1; min-width: 0;
}
.sugo-mobile-topbar-logo-icon { width: 30px; height: 30px; flex-shrink: 0; }
.sugo-mobile-topbar-logo-icon svg { width: 100%; height: 100%; }
.sugo-mobile-topbar-logo-text { display: flex; flex-direction: column; line-height: 1; }
.sugo-mobile-topbar-logo-title {
    font-size: 18px; font-weight: 800;
    color: var(--sugo-mobile-purple); letter-spacing: .02em;
}
.sugo-mobile-topbar-logo-sub {
    font-size: 9px; font-weight: 600;
    color: var(--sugo-mobile-purple-light);
    margin-top: 3px; letter-spacing: .04em;
}

.sugo-mobile-topbar-bell {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    color: var(--sugo-mobile-text); flex-shrink: 0;
}
.sugo-mobile-topbar-bell svg { width: 24px; height: 24px; }
.sugo-mobile-topbar-bell-badge {
    position: absolute; top: -2px; right: -2px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--sugo-mobile-pink); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: var(--sugo-mobile-radius-pill);
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--sugo-mobile-purple-pale); line-height: 1;
}

.sugo-mobile-topbar-ask {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 14px 9px 12px;
    background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%);
    color: #fff; font-size: 13px; font-weight: 700;
    border-radius: var(--sugo-mobile-radius-pill);
    box-shadow: 0 4px 12px rgba(236, 72, 153, .35);
    flex-shrink: 0;
}
.sugo-mobile-topbar-ask svg { width: 14px; height: 14px; }

/* ================================
 * Search (full-width)
 * ================================ */
.sugo-mobile-search-wrap {
    width: 100%;
    padding: 4px var(--sugo-mobile-pad-x) 12px;
}
.sugo-mobile-search {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--sugo-mobile-white);
    border-radius: var(--sugo-mobile-radius-pill);
    box-shadow: var(--sugo-mobile-shadow-sm);
}
.sugo-mobile-search-icon {
    width: 18px; height: 18px;
    color: var(--sugo-mobile-text-faint); flex-shrink: 0;
}
.sugo-mobile-search-input {
    flex: 1; border: 0; outline: 0; background: transparent;
    color: var(--sugo-mobile-text); font-size: 14px; min-width: 0;
}
.sugo-mobile-search-input::placeholder { color: var(--sugo-mobile-text-faint); }

/* ================================
 * Filter tabs (横スクロール、左右はみ出しOK)
 * ================================ */
.sugo-mobile-tabs {
    display: flex; gap: 8px;
    width: 100%;
    padding: 4px var(--sugo-mobile-pad-x) 14px;
    overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.sugo-mobile-tabs::-webkit-scrollbar { display: none; }

.sugo-mobile-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px;
    background: var(--sugo-mobile-white);
    color: var(--sugo-mobile-text);
    font-size: 13px; font-weight: 600;
    border-radius: var(--sugo-mobile-radius-pill);
    box-shadow: var(--sugo-mobile-shadow-xs);
    flex-shrink: 0; white-space: nowrap;
    transition: transform .12s ease;
}
.sugo-mobile-tab:active { transform: scale(.96); }
.sugo-mobile-tab.is-active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .3);
}
.sugo-mobile-tab-icon { width: 16px; height: 16px; display: inline-flex; }
.sugo-mobile-tab-icon svg { width: 100%; height: 100%; }
.sugo-mobile-tab.is-active .sugo-mobile-tab-icon svg { color: #fff; }
.sugo-mobile-tab:not(.is-active) .sugo-mobile-tab-icon svg { color: var(--sugo-mobile-text-mute); }
.sugo-mobile-tab-more svg { width: 14px; height: 14px; color: var(--sugo-mobile-text-mute); }

/* ================================
 * Section共通 - 全幅、左右マージン無し、内側パディングのみ
 * ================================ */
.sugo-mobile-section {
    width: 100%;
    margin: 0 0 var(--sugo-mobile-section-gap);
    padding: 16px var(--sugo-mobile-pad-x) 18px;
    background: var(--sugo-mobile-white);
    border-radius: 0;            /* 全幅: 角丸なし */
    box-shadow: var(--sugo-mobile-shadow-xs);
}
.sugo-mobile-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding: 0;
}
.sugo-mobile-section-title {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0; font-size: 16px; font-weight: 700;
    color: var(--sugo-mobile-text);
}
.sugo-mobile-section-emoji {
    display: inline-flex; align-items: center;
    font-size: 18px; line-height: 1;
}
.sugo-mobile-section-emoji svg { width: 18px; height: 18px; }
.sugo-mobile-section-more {
    font-size: 12px; font-weight: 600;
    color: var(--sugo-mobile-purple);
}

/* ================================
 * Popular - 横スクロール
 *   セクションの内側パディングを打ち消して横全幅スクロール
 * ================================ */
.sugo-mobile-popular-scroller {
    display: flex; gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--sugo-mobile-pad-x) * -1);
    padding: 4px var(--sugo-mobile-pad-x) 6px;
}
.sugo-mobile-popular-scroller::-webkit-scrollbar { display: none; }

.sugo-mobile-q {
    flex: 0 0 168px;
    background: var(--sugo-mobile-white);
    border: 1.5px solid var(--sugo-mobile-border-soft);
    border-radius: var(--sugo-mobile-radius);
    padding: 12px 12px 11px;
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    min-height: 132px;
    transition: transform .12s ease;
}
.sugo-mobile-q:active { transform: scale(.98); }

.sugo-mobile-q-tag {
    display: inline-flex; align-self: flex-start;
    padding: 3px 9px; font-size: 10px; font-weight: 700;
    border-radius: var(--sugo-mobile-radius-sm);
    margin-bottom: 8px;
}
.sugo-mobile-q-tag--pink   { background: var(--sugo-mobile-pink-bg);   color: var(--sugo-mobile-pink-text); }
.sugo-mobile-q-tag--purple { background: var(--sugo-mobile-purple-bg); color: var(--sugo-mobile-purple);  }
.sugo-mobile-q-tag--blue   { background: var(--sugo-mobile-blue-bg);   color: var(--sugo-mobile-blue);    }
.sugo-mobile-q-tag--red    { background: var(--sugo-mobile-red-bg);    color: var(--sugo-mobile-red);     }
.sugo-mobile-q-tag--green  { background: var(--sugo-mobile-green-bg);  color: var(--sugo-mobile-green);   }
.sugo-mobile-q-tag--yellow { background: var(--sugo-mobile-yellow-bg); color: var(--sugo-mobile-yellow);  }

.sugo-mobile-q-title {
    flex: 1; margin: 0 0 10px;
    font-size: 13px; font-weight: 700; line-height: 1.5;
    color: var(--sugo-mobile-text);
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.sugo-mobile-q-meta { display: flex; gap: 12px; align-items: center; color: var(--sugo-mobile-text-mute); }
.sugo-mobile-q-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.sugo-mobile-q-meta-item svg { width: 13px; height: 13px; color: var(--sugo-mobile-text-faint); }

/* ================================
 * AI banner - 全幅 / 背景画像対応 / テキスト色切替
 * ================================ */
.sugo-mobile-aibanner {
    position: relative;
    width: 100%;
    margin: 0 0 var(--sugo-mobile-section-gap);
    padding: 24px var(--sugo-mobile-pad-x);
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 50%, #F5F3FF 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
/* 背景画像時のオーバーレイ (テキスト可読性) */
.sugo-mobile-aibanner--has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.28) 100%);
    pointer-events: none;
}
.sugo-mobile-aibanner--center {
    justify-content: center;
    text-align: center;
}
.sugo-mobile-aibanner-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}
.sugo-mobile-aibanner-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--sugo-mobile-purple);
}
.sugo-mobile-aibanner-sub {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--sugo-mobile-text-mute);
    line-height: 1.6;
}
.sugo-mobile-aibanner-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--sugo-mobile-purple);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--sugo-mobile-radius-pill);
    box-shadow: 0 4px 12px rgba(124, 58, 237, .3);
}
/* ライト (背景が暗い画像時の白文字モード) */
.sugo-mobile-aibanner--light .sugo-mobile-aibanner-title,
.sugo-mobile-aibanner--light .sugo-mobile-aibanner-sub {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.sugo-mobile-aibanner--light .sugo-mobile-aibanner-cta {
    background: #fff;
    color: var(--sugo-mobile-purple);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ================================
 * Realtime
 * ================================ */
.sugo-mobile-realtime-new {
    display: inline-flex; align-items: center;
    padding: 2px 7px; margin-left: 4px;
    background: var(--sugo-mobile-pink); color: #fff;
    font-size: 9px; font-weight: 700;
    border-radius: var(--sugo-mobile-radius-sm); letter-spacing: .04em;
}
.sugo-mobile-realtime-list { display: flex; flex-direction: column; }
.sugo-mobile-rt {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sugo-mobile-border-soft);
}
.sugo-mobile-rt:last-child { border-bottom: 0; }
.sugo-mobile-rt:active { background: var(--sugo-mobile-purple-pale); }

.sugo-mobile-rt-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; overflow: hidden;
    flex-shrink: 0; color: var(--sugo-mobile-purple-light);
}
.sugo-mobile-rt-avatar--1 { color: #F9A8D4; background: #FCE7F3; }
.sugo-mobile-rt-avatar--2 { color: #93C5FD; background: #DBEAFE; }
.sugo-mobile-rt-avatar--3 { color: #FCD34D; background: #FEF3C7; }
.sugo-mobile-rt-avatar svg { width: 100%; height: 100%; }

.sugo-mobile-rt-body { flex: 1; min-width: 0; }
.sugo-mobile-rt-meta { display: flex; align-items: center; gap: 2px; margin-bottom: 2px; font-size: 12px; }
.sugo-mobile-rt-name { font-weight: 700; color: var(--sugo-mobile-purple); }
.sugo-mobile-rt-time { color: var(--sugo-mobile-text-faint); font-size: 11px; }
.sugo-mobile-rt-text {
    font-size: 13px; color: var(--sugo-mobile-text); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sugo-mobile-rt-tag {
    display: inline-flex; align-items: center;
    padding: 2px 7px; margin-left: 4px;
    font-size: 10px; font-weight: 700;
    border-radius: var(--sugo-mobile-radius-sm);
    vertical-align: middle; white-space: nowrap;
}
.sugo-mobile-rt-tag--pink   { background: var(--sugo-mobile-pink-bg);   color: var(--sugo-mobile-pink-text); }
.sugo-mobile-rt-tag--purple { background: var(--sugo-mobile-purple-bg); color: var(--sugo-mobile-purple);    }
.sugo-mobile-rt-tag--blue   { background: var(--sugo-mobile-blue-bg);   color: var(--sugo-mobile-blue);      }
.sugo-mobile-rt-tag--green  { background: var(--sugo-mobile-green-bg);  color: var(--sugo-mobile-green);     }
.sugo-mobile-rt-tag--red    { background: var(--sugo-mobile-red-bg);    color: var(--sugo-mobile-red);       }
.sugo-mobile-rt-tag--yellow { background: var(--sugo-mobile-yellow-bg); color: var(--sugo-mobile-yellow);    }

.sugo-mobile-rt-stats {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 4px; flex-shrink: 0; color: var(--sugo-mobile-text-mute);
}
.sugo-mobile-rt-stat { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.sugo-mobile-rt-stat svg { width: 13px; height: 13px; color: var(--sugo-mobile-text-faint); }

/* ================================
 * Categories
 * ================================ */
.sugo-mobile-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 4px;
}
.sugo-mobile-cat {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 8px 2px;
    transition: transform .12s ease;
}
.sugo-mobile-cat:active { transform: scale(.92); }
.sugo-mobile-cat-icon {
    width: 48px; height: 48px;
    border-radius: var(--sugo-mobile-radius);
    display: inline-flex; align-items: center; justify-content: center;
}
.sugo-mobile-cat-icon svg { width: 24px; height: 24px; }
.sugo-mobile-cat-label {
    font-size: 11px; font-weight: 600;
    color: var(--sugo-mobile-text);
    text-align: center; line-height: 1.2;
}
.sugo-mobile-cat-icon--green   { background: var(--sugo-mobile-green-bg);  color: var(--sugo-mobile-green);   }
.sugo-mobile-cat-icon--green2  { background: #D1FAE5;                      color: #059669;                    }
.sugo-mobile-cat-icon--blue    { background: var(--sugo-mobile-blue-bg);   color: var(--sugo-mobile-blue);    }
.sugo-mobile-cat-icon--blue2   { background: #E0E7FF;                      color: #4F46E5;                    }
.sugo-mobile-cat-icon--blue3   { background: #DBEAFE;                      color: #3B82F6;                    }
.sugo-mobile-cat-icon--pink    { background: var(--sugo-mobile-pink-bg);   color: var(--sugo-mobile-pink);    }
.sugo-mobile-cat-icon--purple  { background: var(--sugo-mobile-purple-bg); color: var(--sugo-mobile-purple);  }
.sugo-mobile-cat-icon--purple2 { background: #F3E8FF;                      color: #9333EA;                    }
.sugo-mobile-cat-icon--yellow  { background: var(--sugo-mobile-yellow-bg); color: var(--sugo-mobile-yellow);  }
.sugo-mobile-cat-icon--red     { background: var(--sugo-mobile-red-bg);    color: var(--sugo-mobile-red);     }

/* ================================
 * Promo banners - 全幅50/50 / 背景画像 / テキスト色切替
 * ================================ */
.sugo-mobile-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    margin: 0 0 var(--sugo-mobile-section-gap);
}
/* 1個だけ表示の時は全幅 */
.sugo-mobile-promos--single {
    grid-template-columns: 1fr;
}

.sugo-mobile-promo {
    position: relative;
    overflow: hidden;
    padding: 18px 14px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #F3F4F6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--sugo-mobile-text);
    text-decoration: none;
    transition: transform .12s ease;
}
/* 1個だけの時は16:9に自動変更 (1個だけ正方形だとデカすぎるため) */
.sugo-mobile-promos--single .sugo-mobile-promo {
    aspect-ratio: 16 / 9;
}
a.sugo-mobile-promo { cursor: pointer; }
a.sugo-mobile-promo:active { transform: scale(.98); }

/* 背景画像時のオーバーレイ */
.sugo-mobile-promo--has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.45) 100%);
    pointer-events: none;
}

.sugo-mobile-promo-text {
    position: relative;
    z-index: 2;
}

.sugo-mobile-promo-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--sugo-mobile-text);
}
.sugo-mobile-promo-sub {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--sugo-mobile-text-mute);
}
.sugo-mobile-promo-cta {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 16px;
    background: var(--sugo-mobile-purple);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--sugo-mobile-radius-pill);
    box-shadow: 0 3px 8px rgba(124, 58, 237, .3);
}

/* ライトモード (背景が暗い時の白文字) */
.sugo-mobile-promo--light .sugo-mobile-promo-title,
.sugo-mobile-promo--light .sugo-mobile-promo-sub {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.sugo-mobile-promo--light .sugo-mobile-promo-cta {
    background: #fff;
    color: var(--sugo-mobile-purple);
    box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

/* ================================
 * Bottom nav - 全幅
 * ================================ */
.sugo-mobile-bottom-spacer { height: 12px; }

.sugo-mobile-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0;
    width: 100%;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--sugo-mobile-border-soft);
    box-shadow: 0 -4px 16px rgba(124, 58, 237, .08);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.sugo-mobile-bottomnav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding: 4px 2px;
    color: var(--sugo-mobile-text-mute);
    font-size: 10px; font-weight: 600;
    position: relative;
}
.sugo-mobile-bottomnav-item svg { width: 22px; height: 22px; }
.sugo-mobile-bottomnav-item.is-active { color: var(--sugo-mobile-purple); }
.sugo-mobile-bottomnav-item:active { transform: scale(.92); }
.sugo-mobile-bottomnav-spacer { display: block; }
.sugo-mobile-bottomnav-badge {
    position: absolute; top: 0; right: 16%;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--sugo-mobile-pink); color: #fff;
    font-size: 9px; font-weight: 700;
    border-radius: var(--sugo-mobile-radius-pill);
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff; line-height: 1;
}
.sugo-mobile-bottomnav-fab {
    position: absolute; left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%);
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px;
    box-shadow:
        0 6px 18px rgba(236, 72, 153, .45),
        0 0 0 4px rgba(255, 255, 255, .9);
    font-size: 9px; font-weight: 700;
    transition: transform .12s ease;
}
.sugo-mobile-bottomnav-fab svg { width: 18px; height: 18px; }
.sugo-mobile-bottomnav-fab:active { transform: translateX(-50%) scale(.94); }

/* ================================
 * 小型端末
 * ================================ */
@media (max-width: 360px) {
    :root { --sugo-mobile-pad-x: 12px; }
    .sugo-mobile-topbar-ask span { display: none; }
    .sugo-mobile-topbar-ask { padding: 9px 10px; }
    .sugo-mobile-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .sugo-mobile-cat-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    body.sugo-mobile-ui-active * { transition: none !important; animation: none !important; }
}