.timeline-wrapper { background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); border-bottom: 2px solid #c9a96e; padding: 12px 16px 8px; position: sticky; top: 0; z-index: 100; } .timeline-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .timeline-controls button { width: 32px; height: 32px; border: 1px solid #c9a96e; background: rgba(201, 169, 110, 0.15); color: #e8d5b5; border-radius: 4px; cursor: pointer; font-size: 18px; line-height: 1; transition: background 0.2s; } .timeline-controls button:hover { background: rgba(201, 169, 110, 0.35); } .timeline-range { margin-left: 12px; color: #f5e6c8; font-family: 'Georgia', serif; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); } .timeline-container { position: relative; height: 96px; cursor: grab; user-select: none; border: 1px solid rgba(201, 169, 110, 0.3); border-radius: 4px; overflow: hidden; } .timeline-container:active { cursor: grabbing; } .timeline-lifespan-overlays { position: absolute; inset: 0; z-index: 6; pointer-events: none; } .timeline-lifespan-dim { position: absolute; top: 0; bottom: 0; background: rgba(0, 0, 0, 0.55); } .timeline-lifespan-highlight { position: absolute; top: 0; bottom: 0; background: linear-gradient( 90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.22) 18%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0.22) 82%, rgba(255, 255, 255, 0.05) 100% ); box-shadow: inset 0 0 0 2px rgba(255, 240, 200, 0.55), inset 0 0 32px rgba(255, 255, 255, 0.2); border-left: 2px solid rgba(255, 230, 180, 0.75); border-right: 2px solid rgba(255, 230, 180, 0.75); } .timeline-track { position: absolute; inset: 0; display: flex; } .era-block { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; border-top: none; border-bottom: none; cursor: pointer; transition: filter 0.2s, box-shadow 0.2s; } .era-block:hover { filter: brightness(1.15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); z-index: 2; } .era-block:focus-visible { outline: 2px solid #c9a96e; outline-offset: -2px; z-index: 2; } .era-label { color: rgba(255, 255, 255, 0.85); font-family: 'Georgia', serif; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); white-space: nowrap; pointer-events: none; } .timeline-events { position: absolute; inset: 0; z-index: 4; pointer-events: none; } .historical-event { position: absolute; padding: 0; border: none; background: none; cursor: pointer; pointer-events: auto; } .historical-event-point { top: 0; bottom: 0; width: 0; transform: translateX(-50%); } .historical-event-point .event-marker-line { display: none; } .historical-event-span { top: 20px; bottom: 24px; background: rgba(180, 70, 55, 0.28); border-left: 2px solid rgba(255, 150, 110, 0.75); border-right: 2px solid rgba(255, 150, 110, 0.75); border-radius: 2px; } .historical-event-point::before { content: ''; position: absolute; top: 12px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: rgba(255, 215, 130, 0.95); border: 1px solid rgba(255, 240, 200, 0.8); box-shadow: 0 0 4px rgba(255, 200, 100, 0.5); } .historical-event-span { background: transparent; border-left-color: transparent; border-right-color: transparent; } .historical-event-span:hover, .historical-event-point:hover::before { filter: brightness(1.2); } .historical-event:focus-visible { outline: 2px solid #e8c878; outline-offset: 1px; } .event-label { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); max-width: 120px; padding: 1px 5px; font-family: 'Georgia', serif; font-size: 9px; font-weight: 600; line-height: 1.2; color: rgba(255, 235, 200, 0.95); background: rgba(20, 16, 28, 0.72); border: 1px solid rgba(255, 200, 120, 0.35); border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); pointer-events: none; } .historical-event-span .event-label { top: 1px; } .timeline-ticks { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; z-index: 5; } .tick { position: absolute; bottom: 0; transform: translateX(-50%); border-left: 2px solid rgba(245, 230, 200, 0.75); height: 12px; } .tick span { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-family: 'Georgia', serif; font-size: 14px; font-weight: 700; color: #f5e6c8; text-shadow: 0 0 8px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 1), 0 0 1px rgba(0, 0, 0, 1); white-space: nowrap; } .brush-handle { position: absolute; top: 0; bottom: 0; width: 6px; transform: translateX(-50%); cursor: ew-resize; background: rgba(201, 169, 110, 0.5); opacity: 0; transition: opacity 0.2s; } .timeline-container:hover .brush-handle { opacity: 1; } .timeline-hint { margin: 6px 0 0; font-size: 11px; color: rgba(201, 169, 110, 0.5); text-align: center; }