.mobile-links, .mobile-mood-btn, .mobile-compose-fab { display: none; }
.mobile-pulse { display: none; }
/* ============================================================
   responsive.css — breakpoints
   ============================================================ */

@media (max-width: 1320px) {
  .hot-panel { width: 336px; }
  .mood-dock { width: 222px; }
  .tstat-text { display: none; }
}

@media (max-width: 1180px) {
  .topbar { padding: 16px 20px; }
  .topbar-stats { gap: 10px; padding: 6px 12px; }
  .mood-dock { top: 84px; left: 18px; bottom: 18px; width: 208px; }
  .hot-panel { top: 84px; right: 18px; bottom: 18px; width: 318px; }
  .compose-wrap { bottom: 20px; }
  .mood-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mood-chip { padding: 7px 1px 6px; }
}

/* ---------- mobile / tablet ---------- */
@media (max-width: 980px) {
  .topbar { padding: 14px 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text b { font-size: 15px; }
  .brand-text i { font-size: 7.5px; }
  .topbar-note { display: none !important; }
  .topbar-stats { display: none; }
  .badge-local { left: 16px; top: 68px; font-size: 9px; padding: 2px 8px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 11px; }
  .lang-btn { width: auto; min-width: 42px; padding: 0 8px; font-size: 11px; white-space: nowrap; }
  .lang-popover, .menu-popover { right: -2px; }
  .menu-popover { width: min(280px, calc(100vw - 32px)); max-height: 74vh; overflow-y: auto; }

  .mood-dock {
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 64vh;
    border-radius: 18px;
    display: none;
    z-index: 76;
    flex-direction: column;
  }
  .mood-dock.is-open { display: flex; animation: fade-up 0.28s var(--ease) both; }
  .mood-dock.is-collapsed { width: auto; }
  .mood-dock.is-collapsed .mood-body { max-height: none; }
  .mood-body { max-height: 54vh; overflow-y: auto; }
  .mood-list { grid-template-columns: repeat(5, minmax(0, 1fr)); max-height: none; overflow: visible; }

  .hot-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-height: 78vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(102%);
    z-index: 74;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    transition: transform 0.34s var(--ease-out);
  }
  .hot-panel[hidden] { display: flex; }
  .hot-panel.is-open { transform: translateY(0); }
  .hot-panel .panel-close { display: inline-flex; }
  .panel-head { padding-right: 44px; }
  .hot-list { max-height: 54vh; }
  .panel-foot { padding-bottom: 4px; }

  .stat-card, .topic-card { display: none !important; }
  .links-panel { display: none !important; }
  .globe-caption { display: none !important; }
  .compose-wrap { display: none; }
  .globe-caption { font-size: 9.5px; letter-spacing: 0.2em; bottom: calc(74px + env(safe-area-inset-bottom)); }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.2), rgba(5, 9, 16, 0.92) 40%);
    border-top: 1px solid var(--stroke);
    backdrop-filter: var(--blur);
  }
  .mobile-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border-radius: 12px;
    font-size: 11.5px;
    color: var(--text-2);
    letter-spacing: 0.04em;
  }
  .mobile-bar button .icon { width: 17px; height: 17px; opacity: 0.8; }
  .mobile-bar button:active { background: var(--fill); }
  .mobile-bar button.primary {
    color: #f4fbff;
    font-weight: 600;
    background: linear-gradient(135deg, #7cc0f2, #3f7fd6);
    box-shadow: 0 10px 26px -12px rgba(63, 127, 214, 0.9);
  }

  .toast-host { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.modal-open .mobile-bar { display: none; }
  body.modal-open .toast-host { bottom: calc(18px + env(safe-area-inset-bottom)); }

  .modal { padding: 0; align-items: flex-end; }
  .modal-panel,
  .modal-panel.sm,
  .modal-panel.md,
  .modal-panel.lg,
  .modal-panel.xl {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }
  .modal-panel::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 99px;
    background: rgba(160, 185, 215, 0.3);
  }
  .modal-head { padding: 22px 18px 12px; }
  .modal-body { padding: 0 18px 16px; }
  .modal-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .comment-composer { margin: 14px -18px -16px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }

  .mood-pick { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); max-height: 150px; }
  .detail-content { font-size: 14px; }

  .scrim { z-index: 72; }
}

@media (max-width: 560px) {
  .mood-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hot-panel { max-height: 84vh; }
  .hot-list { max-height: 58vh; }
  .brand-text i { display: none; }
  .toast-host { width: calc(100vw - 32px); }
  .modal-panel { max-height: 94vh; }
  .detail-images { grid-template-columns: repeat(2, 1fr); }
  .segmented button { padding: 0 11px; font-size: 11px; }
  .bottle-actions { flex-direction: column; }
}

@media (max-height: 640px) and (min-width: 981px) {
  .mood-dock { width: min(560px, calc(100vw - 460px)); }
  .mood-list { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .hot-panel { max-height: calc(100vh - 150px); }
  .stat-card, .topic-card { display: none; }
}

/* sheets scrim */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 5, 10, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* ---------- mobile homepage info: stats strip + pulse cards ---------- */
@media (max-width: 980px) {
  .topbar-stats {
    display: flex;
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    z-index: 24;
    justify-content: center;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(8, 13, 22, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .topbar-stats .tstat { font-size: 9.5px; }
  .topbar-stats .tstat:nth-child(3),
  .topbar-stats .tstat-sun { display: none; }

  .mobile-pulse {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    z-index: 26;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
  }
  .mobile-pulse::-webkit-scrollbar { display: none; }
  .mp-card {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 64vw;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 12px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: rgba(10, 16, 26, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: left;
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.9);
  }
  .mp-card:active { background: rgba(30, 45, 66, 0.85); }
  .mp-label { font-size: 8.5px; letter-spacing: 0.14em; color: var(--accent); }
  .mp-card b {
    font-size: 11.5px;
    font-weight: 500;
    color: #dfe9f5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* mobile marquee links + fixed controls */
@media (max-width: 980px) {
  .mobile-links {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 72px;
    height: 44px;
    z-index: 25;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    pointer-events: auto;
  }
  .ml-track {
    display: flex;
    gap: 8px;
    width: max-content;
    padding: 4px 10px;
    animation: ml-scroll 42s linear infinite;
  }
  .ml-track .link-card {
    flex: 0 0 auto;
    width: 120px;
    height: 36px;
    font-size: 10.5px;
  }
  @keyframes ml-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .mobile-mood-btn {
    position: fixed;
    top: 102px;
    left: 12px;
    z-index: 26;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: rgba(8, 13, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-2);
    font-size: 10.5px;
  }
  .mobile-mood-btn .icon { width: 13px; height: 13px; color: var(--accent); }
  .mobile-compose-fab {
    position: fixed;
    right: 14px;
    bottom: 126px;
    z-index: 26;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7cc0f2, #9a86f0);
    color: #07121f;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 14px 30px -12px rgba(90, 150, 230, 0.8);
  }
  .mobile-compose-fab .icon { width: 15px; height: 15px; }
  .mobile-bar { bottom: 10px; }
}@media (max-width: 980px) {
  .topic-inline { padding: 12px; margin: 8px 10px; }
  .topic-inline p { display: none; }
  .topic-inline h3 { font-size: 14px; margin: 5px 0 4px; line-height: 1.4; }
  .topic-inline .ghost-btn { height: 30px; margin-top: 8px; font-size: 11px; }
}