:root {
  --bg-base: #0b0e14;
  --bg-panel: #12161e;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --accent-primary: #58a9ff;
  --accent-warm: #f0b34b;
  --accent-error: #ff4d6d;
  --text-strong: #e8edf5;
  --text-main: #c8cedb;
  --text-muted: #7a8294;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-large: 0 8px 30px rgba(0, 0, 0, 0.45);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-body: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --bg: var(--bg-base);
  --text: var(--text-strong);
  --muted: var(--text-muted);
  --line: var(--border-subtle);
  --row: #11151d;
  --accent: var(--accent-primary);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  display: none !important;
}

.hud-orbit {
  display: none !important;
}

/* ---- Main Layout ---- */
.app {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(12px, 2vw, 32px);
  box-sizing: border-box;
}
.app--no-sidebar { width: 100%; }

.content.app-shell {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 40px;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

/* ---- Top Bar / Filters ---- */
.topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}
.filter-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.filter-row--primary {
  justify-content: space-between;
}
.filter-row--secondary {
  justify-content: space-between;
}
.filter-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.search-wrap {
  min-width: min(260px, 100%);
  flex: 1;
}
.search-wrap input {
  width: 100%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search-wrap input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(88, 169, 255, 0.15);
}
.search-wrap input::placeholder { color: var(--text-muted); }

.meta {
  font-size: 12px;
  color: var(--text-muted);
}
body.is-loading .games {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

/* ---- Filters / Chips ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease);
}
.chip:hover {
  background: var(--bg-surface-hover);
}
.chip:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(88, 169, 255, 0.1);
  color: #d0e4ff;
}
.chip.subtle:has(input:checked) {
  border-color: var(--accent-warm);
  background: rgba(240, 179, 75, 0.1);
  color: #f0dba0;
}
.chip input { accent-color: var(--accent-primary); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: var(--accent-primary);
  color: #0a0e14;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.12s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}
.btn.ghost:hover {
  background: var(--bg-surface-hover);
  opacity: 1;
}

/* ---- Cards ---- */
.card {
  --card-accent: var(--accent-primary);
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  overflow: hidden;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: var(--shadow-soft);
}
.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-medium);
}
.card:focus-visible {
  outline: 2px solid var(--card-accent, var(--accent));
  outline-offset: 2px;
}
.card.is-soon {
  border-color: rgba(255, 77, 109, 0.3);
}
.card.is-soon:hover {
  border-color: rgba(255, 77, 109, 0.5);
}

.cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  margin: 10px 8px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-panel);
  color: inherit;
  text-decoration: none;
}
a.cover-link {
  cursor: pointer;
}
a.cover-link:hover .cover-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
}
.cover.cover-fallback {
  aspect-ratio: 16 / 9;
  max-height: 180px;
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-surface));
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-panel);
  image-rendering: auto;
}
.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
  pointer-events: none;
}
.cover-blur {
  display: none;
}

.cover .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.cover .badge.live { background: rgba(62, 207, 122, 0.85); color: #062012; }
.cover .badge.preview { background: rgba(88, 169, 255, 0.85); color: #041018; }
.cover .badge.done { background: rgba(122, 130, 148, 0.7); color: #0b0e14; }
.cover .badge.soon { background: rgba(255, 77, 109, 0.85); color: #1a0404; }
.cover .badge.badge-cat {
  left: auto;
  right: 6px;
  border: 1px solid transparent;
  backdrop-filter: blur(4px);
}
.cover .badge.badge-cat.cat-combat {
  background: rgba(12, 24, 40, 0.72);
  color: #9ac5ff;
  border-color: rgba(88, 169, 255, 0.35);
}
.cover .badge.badge-cat.cat-gacha {
  background: rgba(40, 16, 28, 0.72);
  color: #ffb4d0;
  border-color: rgba(255, 140, 200, 0.35);
}
.cover .badge.badge-cat.cat-web {
  background: rgba(12, 32, 20, 0.72);
  color: #9fe3b8;
  border-color: rgba(62, 207, 122, 0.35);
}
.cover .badge.badge-cat.cat-event {
  background: rgba(28, 20, 44, 0.72);
  color: #c8b4ff;
  border-color: rgba(180, 140, 255, 0.35);
}



/* ---- Briefing Card Body ---- */
.briefing-body {
  padding: 8px 12px 12px;
}
.bar-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.briefing-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  margin-top: 8px;
  align-items: end;
}
.briefing-body .remain {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.briefing-body .remain .metric {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}
.briefing-body .remain.preview .metric { color: var(--accent-primary); }
.briefing-body .remain.live .metric { color: #3ecf7a; }
.briefing-body .remain.soon .metric { color: #ff4d6d; }
.briefing-body .remain small {
  font-size: 10px;
  color: var(--text-muted);
}

.briefing-body .track {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.briefing-body .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-primary), #7a9eff);
  transition: width 0.6s var(--ease);
}
.card.is-soon .fill {
  background: linear-gradient(90deg, #ff4d6d, #ff7088);
}

.pill.badge-cat {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.pill.badge-cat.cat-combat { background: rgba(88, 169, 255, 0.15); color: #9ac5ff; }
.pill.badge-cat.cat-gacha { background: rgba(255, 140, 200, 0.15); color: #ffb4d0; }
.pill.badge-cat.cat-web { background: rgba(62, 207, 122, 0.15); color: #9fe3b8; }
.pill.badge-cat.cat-event { background: rgba(180, 140, 255, 0.15); color: #c8b4ff; }

/* ---- Game Row ---- */
.game-row {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s var(--ease);
}
.game-row:hover {
  border-color: var(--border-medium);
}
.game-row.collapsed .game-body { display: none; }

.game-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.game-bar:hover,
.game-bar:focus,
.game-bar:focus-visible,
.game-bar:active {
  background: var(--bg-surface);
  outline: none;
  color: inherit;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.game-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.game-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
}
.game-name small {
  font-weight: 500;
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 6px;
  letter-spacing: 0.06em;
}
.game-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}
.toggle-icon {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
  margin-left: 4px;
}
.collapsed .toggle-icon { transform: rotate(-90deg); }

.game-body {
  padding: 0;
}
.game-body-inner {
  padding: 0;
}
.game-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  padding: 12px 0;
}

/* ---- Tool Row ---- */
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 14px 10px;
}
.tool-link {
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.tool-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

/* ---- Detail Panel ---- */
.detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 480px;
}
.detail.hidden { display: none; }
.detail-backdrop {
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.detail-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-medium);
  box-shadow: var(--shadow-large);
  overflow-y: auto;
  max-height: 100vh;
}
.detail-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.detail-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.detail-close:hover { color: var(--text-strong); background: var(--bg-surface); }
.detail-game {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-strong);
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.detail-banner {
  aspect-ratio: 16 / 9;
  max-height: 260px;
  background: var(--bg-surface);
  background-size: cover;
  background-position: center;
}
.detail-body {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-meta div {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.detail-meta b {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 700;
}
.detail-meta span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.detail-days {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.origin-text {
  white-space: normal;
  word-break: break-word;
  max-height: 48vh;
  overflow: auto;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(232, 237, 245, 0.85);
}
.origin-text .hl-time {
  background: rgba(240, 179, 75, 0.18);
  color: #f0dba0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.origin-text .hl-item {
  background: rgba(88, 169, 255, 0.14);
  color: #9ac5ff;
  font-weight: 700;
}
.origin-text .hl-name {
  background: rgba(62, 207, 122, 0.12);
  color: #9fe3b8;
  font-weight: 700;
}
.origin-text .hl-key {
  background: transparent;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.range-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.range-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.range-list b { font-size: 12px; font-weight: 800; }
.range-when {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.range-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.range-cat.cat-gacha { color: #ffb4d0; border-color: rgba(255, 140, 180, 0.3); background: rgba(255, 120, 160, 0.08); }
.range-cat.cat-combat { color: #9ac5ff; border-color: rgba(88, 169, 255, 0.3); background: rgba(88, 169, 255, 0.08); }
.range-cat.cat-event { color: #c8b4ff; border-color: rgba(180, 140, 255, 0.3); background: rgba(180, 140, 255, 0.08); }
.range-cat.cat-web { color: #9fe3b8; border-color: rgba(62, 207, 122, 0.3); background: rgba(62, 207, 122, 0.08); }

.detail-progress {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 12px;
}
.detail-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ecf7a, var(--accent-primary));
}
.detail-foot {
  padding: 12px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
}
.detail-foot a,
.detail-foot button {
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.12s var(--ease);
}
.detail-foot a:hover,
.detail-foot button:hover { opacity: 0.85; }
.detail-foot .primary {
  background: var(--accent-primary);
  color: #0a0e14;
}
.detail-foot .ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

/* ---- Game Picker ---- */
.game-picker {
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-large);
}
.game-picker.hidden { display: none; }
.picker-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.picker-hint {
  font-size: 11px;
  color: var(--text-muted);
}
.picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.linkish {
  background: none;
  border: 0;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.linkish:hover { background: var(--bg-surface); }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.pick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.12s var(--ease);
}
.pick-item:hover { background: var(--bg-surface-hover); }
.pick-item.is-on { border-color: var(--accent-primary); }
.pick-item img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}
.pick-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}
.pick-ord {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.ord-btn {
  border: 0;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
}
.ord-btn:hover { background: var(--bg-surface-hover); color: var(--text-strong); }
.ord-btn:disabled { opacity: 0.3; cursor: default; }
.rm {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 4px;
}
.rm:hover { color: var(--accent-error); }
.custom-add {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.custom-add input,
.custom-add select {
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-strong);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}
.custom-add.event-add {
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
}

/* ---- Status Bar ---- */
.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 12px;
}
.status-bar.status--error {
  color: var(--accent-error);
}
.status-bar .retry-btn {
  border: 0;
  background: var(--bg-surface);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---- Site Foot ---- */
.site-foot {
  margin-top: 20px;
  padding: 14px 4px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}
.site-foot p { margin: 0 0 4px; }
.site-foot code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 1px 5px;
  border-radius: 4px;
}
.site-foot a {
  color: var(--accent-primary);
  text-decoration: none;
}
.site-foot a:hover { text-decoration: underline; }

/* ---- To Top ---- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 50;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--accent-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}
.to-top.hidden { opacity: 0; pointer-events: none; }

/* ---- Empty ---- */
.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.empty.hidden { display: none; }

/* ---- Timeline (detail) ---- */
.timeline { margin-top: 8px; }
.tl-track {
  position: relative;
  height: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.tl-bar {
  position: absolute;
  top: 3px;
  height: 10px;
  border-radius: 3px;
  background: rgba(88, 169, 255, 0.4);
  min-width: 4px;
}
.tl-bar.cat-gacha { background: rgba(255, 140, 180, 0.5); }
.tl-bar.cat-combat { background: rgba(88, 169, 255, 0.5); }
.tl-bar.cat-event { background: rgba(180, 140, 255, 0.45); }
.tl-bar.is-live { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.tl-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--accent-primary);
  opacity: 0.8;
}
.tl-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---- Skeleton ---- */
.game-row.skeleton .sk {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}
.game-row.skeleton .sk-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.game-row.skeleton .sk-line {
  height: 14px;
  width: 120px;
}
.game-row.skeleton .sk-card {
  height: 180px;
  border-radius: var(--radius-md);
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* ---- Responsive ---- */
@media (min-width: 1600px) {
  .game-track {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }
}
@media (min-width: 2000px) {
  .game-track {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
@media (max-width: 900px) {
  .game-track {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
}
@media (max-width: 768px) {
  .app { padding: 0 10px; }
  .content.app-shell { padding: 14px 0 28px; }
  .filter-row--primary,
  .filter-row--secondary {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap { min-width: 100%; }
  .filters--tags { width: 100%; }
  .game-track {
    grid-template-columns: 1fr;
  }
  .game-icon { width: 28px; height: 28px; }
  .game-name { font-size: 13px; }
  .detail {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .detail-backdrop { min-height: 20vh; }
  .detail-panel {
    max-height: 80vh;
    border-left: 0;
    border-top: 1px solid var(--border-medium);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .detail-meta { grid-template-columns: 1fr; }
  .custom-add,
  .custom-add.event-add { grid-template-columns: 1fr; }
  .desk-only { display: none !important; }
}

@media (max-width: 480px) {
  .app { padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}





