:root { color-scheme: dark; --bg:#0b0f14; --card:#131a22; --text:#e6eef8; --muted:#9bb0c4; --accent:#6ee7ff; --chip:#253241; }
*{ box-sizing: border-box; }
body { margin:0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
header.wrap { padding-top: 24px; }
.sub { color: var(--muted); }
.server-times { margin-top: 24px; padding: 16px; background: var(--card); border-radius: 12px; border: 1px solid #1f2a36; }
.server-times h3 { margin: 0 0 12px 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 600; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.server-time { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.server-label { font-size: 13px; font-weight: 600; color: var(--text); }
.server-clock { font-size: 20px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.server-city { font-size: 11px; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Update for simplified layout */
.grid { grid-template-columns: 1fr; } /* Single column for focus */

.card { background: var(--card); border: 1px solid #1f2a36; border-radius: 12px; padding: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset; }
.card.muted { opacity: 0.9; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; background: rgba(255,255,255,0.02); border-radius: 8px; }
.row.small { font-size: 14px; }
.title { font-weight: 600; }
.meta { color: var(--muted); font-size: 14px; }
.btn-link { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; margin-left: 6px; background: var(--chip); color: #cfe9ff; text-transform: lowercase; }
.chip.official { background: #1b3d2a; color: #a6f3c2; }
.chip.community { background: #3b2b1b; color: #ffd8a6; }
.chip.unknown { background: #31313b; color: #c9c9ff; }
.foot { opacity: 0.8; padding-bottom: 32px; }
.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* Add timeline styles */
.timeline-card { /* No span needed */ } /* Span across grid for wider view */
/* Timeline styles - replace horizontal with vertical */
.timeline { position: relative; height: 120px; background: #1f2a36; border-radius: 8px; overflow: hidden; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: repeating-linear-gradient(90deg, transparent, transparent 4.166%, rgba(255,255,255,0.05) 4.166%, rgba(255,255,255,0.05) 4.1667%); } /* Hour markers every 1/24th */
.timeline-bar { position: absolute; top: 0; bottom: 0; color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.timeline-bar.official { background: #1b3d2a; }
.timeline-bar.community { background: #3b2b1b; }
.timeline-bar.unknown { background: #31313b; }
.timeline-bar:hover { z-index: 10; box-shadow: 0 0 8px rgba(255,255,255,0.3); }
.timeline-bar[title] { cursor: pointer; } /* For tooltips */

/* Replace with vertical styles */
.vertical-timeline { display: flex; position: relative; height: 1200px; background: #1f2a36; border-radius: 8px; overflow-y: auto; }
.hours { flex: 0 0 60px; position: sticky; left: 0; background: #1f2a36; z-index: 2; border-right: 1px solid rgba(255,255,255,0.1); }
.hour-label { height: 60px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.05); }
.events { flex: 1; position: relative; }
.event-bar { position: absolute; left: 0; right: 0; color: white; padding: 8px; border-radius: 4px; font-size: 14px; overflow: hidden; }

/* Map-specific colors */
.event-bar[data-map="Zero Dam"] { background: #1e3a8a; border-left: 3px solid #3b82f6; } /* Blue */
.event-bar[data-map="Layali Grove"] { background: #854d0e; border-left: 3px solid #eab308; } /* Yellow */
.event-bar[data-map="Brakkesh"] { background: #9a3412; border-left: 3px solid #f97316; } /* Orange */
.event-bar[data-map="Space City"] { background: #831843; border-left: 3px solid #ec4899; } /* Pink */
.event-bar[data-map="Tide Prison"] { background: #7f1d1d; border-left: 3px solid #ef4444; } /* Red */

/* Fallback for unknown maps */
.event-bar.official { background: #1b3d2a; }
.event-bar.community { background: #3b2b1b; }
.event-bar.unknown { background: #31313b; }
.event-bar:hover { z-index: 10; box-shadow: 0 0 8px rgba(255,255,255,0.3); }
.event-bar[title] { cursor: pointer; }

/* Add muted styles for past events */
.event-bar.past { opacity: 0.6; filter: grayscale(0.8); }

/* Highlight current hour */
.hour-label.current-hour { background: rgba(110, 231, 255, 0.1); border-left: 3px solid var(--accent); font-weight: 600; }

/* Add grid lines for hours */
.events::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(180deg, transparent, transparent 59px, rgba(255,255,255,0.15) 59px, rgba(255,255,255,0.15) 60px); z-index: 0; pointer-events: none; }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .wrap { padding: 12px; }
  header.wrap { padding-top: 16px; }
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  
  /* Hide server times on mobile to save space */
  .server-times { display: none; }
  
  /* Timeline adjustments */
  .vertical-timeline { height: 800px; }
  .hours { flex: 0 0 50px; }
  .hour-label { padding-right: 6px; font-size: 11px; }
  .event-bar { font-size: 11px; padding: 4px; }
  .event-bar strong { font-size: 10px; display: block; line-height: 1.2; }
  
  /* Footer */
  .foot { font-size: 12px; }
}

@media (max-width: 480px) {
  h1 { font-size: 18px; }
  
  /* Make timeline taller on small screens */
  .vertical-timeline { height: 600px; }
  .hours { flex: 0 0 45px; }
  .hour-label { font-size: 10px; }
  .event-bar { font-size: 10px; padding: 3px; }
  .event-bar strong { font-size: 9px; }
}
