.mobile-nav-actions {
  display: none;
}
@media (max-width: 768px) {
  .nav-register-btn {
    display: none !important;
  }
  .nav-menu.active .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }
  .mobile-nav-actions .mobile-auth-btns {
    display: flex;
    gap: 10px;
  }
  .mobile-nav-actions .mobile-auth-btns .btn-sm {
    flex: 1;
    text-align: center;
  }
  .mobile-nav-actions .mobile-user-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
  }
  .mobile-user-header .user-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .mobile-user-header .user-nickname {
    font-size: 14px;
  }
  .mobile-user-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .mobile-user-links a {
    display: block;
    padding: 10px 14px;
    color: var(--text-bright);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 8px;
    background: rgba(78, 110, 242, 0.04);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.2s;
  }
  .mobile-user-links a:hover {
    background: rgba(78, 110, 242, 0.08);
    border-color: rgba(78, 110, 242, 0.2);
  }
  .mobile-quick-actions {
    display: flex;
    gap: 8px;
  }
  .mobile-quick-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .nav-container {
    padding: 12px 16px;
  }
  .logo-text {
    font-size: 18px;
    letter-spacing: 4px;
  }
  .forum-main {
    padding-top: 60px;
  }
  .forum-header {
    padding: 24px 0;
  }
  .container {
    padding: 0 12px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .page-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .post-detail-page {
    padding-top: 65px;
  }
  .floor-content {
    font-size: 14px;
    line-height: 1.8;
  }
  .floor-title h2 {
    font-size: 17px;
  }
  .reply-form-container .reply-form {
    padding: 14px;
  }
  .checkin-stats {
    gap: 16px;
  }
  .checkin-stat-num {
    font-size: 20px;
  }
  .profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar {
    display: none;
  }
  .profile-tab {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .level-all-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat-msg-bubble {
    max-width: 85%;
  }
  .poll-container {
    padding: 12px;
  }
  .user-hover-card {
    display: none !important;
  }
  .detail-images img {
    max-height: 250px;
  }
  .reply-images img {
    max-width: 150px;
    max-height: 100px;
  }
  .batch-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .batch-toolbar-right {
    width: 100%;
  }
  .toast {
    top: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .user-space-page {
    padding-top: 65px;
  }
  .user-space-card .profile-header {
    padding: 20px 16px;
  }
  .user-space-card .profile-tab-content {
    padding: 12px 14px;
  }
  .profile-avatar-large {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
  .profile-name-row h2 {
    font-size: 18px;
  }
  .profile-stat-num {
    font-size: 18px;
  }
  .batch-move-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-settings-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
@media (max-width: 400px) {
  .forum-title-area h1 {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .forum-stats {
    gap: 12px;
  }
  .forum-stat-num {
    font-size: 18px;
  }
  .modal-card {
    padding: 16px 12px;
    margin: 4px;
  }
  .modal-close {
    top: 8px;
    right: 8px;
    font-size: 24px;
  }
  .btn-create-post {
    padding: 8px 16px;
    font-size: 13px;
  }
  .mobile-user-links {
    grid-template-columns: 1fr;
  }
  .post-title-row .post-title-link {
    font-size: 13px;
  }
  .floor-card {
    padding: 12px 10px;
  }
  .floor-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .floor-nickname {
    font-size: 13px;
  }
  .floor-content {
    font-size: 13px;
  }
  .profile-stats-row {
    gap: 12px;
  }
  .checkin-stats {
    flex-direction: column;
    gap: 10px;
  }
  .modal-detail,
  .modal-large,
  .modal-profile {
    padding: 14px 10px;
    margin: 2px;
    max-height: 95vh;
  }
  .modal-fixed .modal-fixed-header {
    padding: 12px 10px 0 10px;
  }
  .modal-fixed .modal-fixed-body {
    padding: 4px 10px 0 10px;
  }
  .modal-fixed .modal-fixed-footer {
    padding: 14px 10px 12px 10px;
  }
  .ent-tab { padding: 8px 14px; font-size: 13px; }
  .ent-manage-item { flex-wrap: wrap; padding: 10px 12px; }
  .ent-manage-item .ent-actions { width: 100%; justify-content: flex-end; }
  .modal-card h2 {
    font-size: 16px;
  }
  .emoji-picker {
    gap: 4px;
  }
  .emoji-item {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}
@media (hover: none) and (pointer: coarse) {
  .category-item {
    padding: 12px 14px;
    min-height: 44px;
  }
  .sort-btn {
    padding: 8px 14px;
    min-height: 40px;
  }
  .page-btn {
    min-height: 40px;
    min-width: 40px;
  }
  .action-btn {
    min-height: 40px;
  }
  .floor-reply-btn {
    padding: 8px 18px;
    min-height: 36px;
  }
  .user-hover-card {
    display: none !important;
  }
  .post-card:hover {
    transform: none;
  }
  .member-card:hover {
    transform: none;
  }
  .user-avatar-wrapper:hover .user-dropdown {
    display: none;
  }
}
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.image-lightbox.show {
  display: flex;
  animation: lightboxFadeIn 0.25s ease;
}
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10001;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.lightbox-img-container {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-img-container img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-toolbar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}
.lightbox-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10001;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-nav-prev {
  left: 24px;
}
.lightbox-nav-next {
  right: 24px;
}
.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 2px;
}
.lightbox-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}
.lightbox-download-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.sticker-action-download {
  background: linear-gradient(135deg, var(--ice), var(--gold)) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 500;
}
.sticker-action-download:hover {
  box-shadow: 0 4px 14px rgba(78, 110, 242, 0.3);
  transform: translateY(-1px);
  color: #fff !important;
  border-color: transparent !important;
}
@media (max-width: 768px) {
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .lightbox-nav-prev {
    left: 8px;
  }
  .lightbox-nav-next {
    right: 8px;
  }
  .lightbox-toolbar {
    gap: 8px;
  }
  .lightbox-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}
.checkin-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.checkin-prompt-card {
  background: var(--card-bg, #fff);
  border-radius: 20px;
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: checkinSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes checkinSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.checkin-prompt-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: checkinBounce 1s ease infinite;
}
@keyframes checkinBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.checkin-prompt-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main, #1a1a2e);
  margin-bottom: 8px;
}
.checkin-prompt-desc {
  font-size: 0.9rem;
  color: var(--text-mid, #666);
  margin-bottom: 24px;
  line-height: 1.6;
}
.checkin-prompt-desc strong {
  color: #f97316;
  font-weight: 700;
}
.checkin-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkin-prompt-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.checkin-prompt-btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.checkin-prompt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.checkin-prompt-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.checkin-prompt-btn-secondary {
  background: 0 0;
  color: var(--text-mid, #888);
  font-weight: 500;
}
.checkin-prompt-btn-secondary:hover {
  color: var(--text-main, #333);
  background: var(--bg-soft, #f5f5f5);
}
.fireworks-canvas {
  pointer-events: none;
}
.mobile-category-bar,
.mobile-search-bar {
  display: none;
}
@media (max-width: 900px) {
  .mobile-category-bar {
    display: flex;
    flex-wrap: wrap;
  }
  .mobile-search-bar {
    display: flex;
  }
  .forum-main {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .forum-header {
    padding: 16px 0;
  }
  .forum-title-area h1 {
    font-size: 22px;
    letter-spacing: 3px;
    margin-bottom: 4px;
  }
  .forum-title-area p {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .forum-header-content {
    gap: 12px;
  }
  .forum-stats {
    gap: 20px;
  }
  .forum-stat {
    padding: 4px 8px;
  }
  .forum-stat-num {
    font-size: 20px;
  }
  .forum-stat-label {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .forum-layout {
    padding: 12px 0 40px;
    gap: 12px;
  }
  .forum-toolbar {
    padding: 10px 14px;
    margin-bottom: 10px;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .toolbar-left {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .current-category {
    font-size: 14px;
    letter-spacing: 1px;
    display: none;
  }
  .sort-buttons {
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .sort-buttons::-webkit-scrollbar {
    display: none;
  }
  .sort-btn {
    font-size: 12px;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .toolbar-right {
    text-align: center;
  }
  .btn-create-post {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
  }
  .post-list {
    gap: 8px;
  }
  .post-card {
    padding: 12px;
  }
  .post-title-row .post-title-link {
    font-size: 14px;
  }
  .container {
    padding: 0 10px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .post-card-center {
    overflow: hidden;
    max-width: 100%;
  }
  .post-title-row {
    max-width: 100%;
    overflow: hidden;
  }
  .post-title-row .post-title-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .post-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }
  .post-card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .post-card-right {
    overflow: hidden;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .forum-header {
    padding: 12px 0;
  }
  .forum-title-area h1 {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .forum-stat-num {
    font-size: 18px;
  }
  .forum-stats {
    gap: 16px;
  }
  .forum-layout {
    padding: 8px 0 30px;
  }
}
