:root {
  /* アイコンBOXおよびプレビュー枠専用の背景・枠線・文字色変数 */
  --icon-box-bg: #111827;
  --icon-box-border: #1f2937;
  --icon-box-hover-bg: #172033;
  --icon-box-selected-bg: #1e293b;
  --icon-box-text-title: #e2e8f0;
  --icon-box-text-sub: #94a3b8;
}

html {
  scrollbar-gutter: stable;
}

body {
  background-color: #0b0f19;
  color: #e2e8f0;
}

.dark-card {
  background: var(--icon-box-bg) !important;
  border: 1px solid var(--icon-box-border) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  height: 114px;
}

@media (min-width: 640px) {
  .dark-card {
    height: 126px;
  }
}

.dark-card:hover {
  border-color: #3b82f6 !important;
  background: var(--icon-box-hover-bg) !important;
  transform: translateY(-2px);
}

.dark-card.active-selected {
  border-color: #3b82f6 !important;
  background: var(--icon-box-selected-bg) !important;
  box-shadow: 0 0 0 1px #3b82f6;
}

.icon-card-title {
  color: var(--icon-box-text-title);
  transition: color 0.2s ease;
}

.icon-card-sub {
  color: var(--icon-box-text-sub);
  transition: color 0.2s ease;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* デスクトップサイドバーの開閉制御 */
#desktop-sidebar.is-hidden {
  display: none !important;
}

/* 左右スカイスクレイパー広告（1500px以上の大画面で表示） */
@media (min-width: 1500px) {
  .skyscraper-ad {
    display: flex !important;
  }
}

@media (max-width: 1499px) {
  .skyscraper-ad {
    display: none !important;
  }
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #374151;
}
