@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

@property --traque-km { syntax: '<integer>'; inherits: false; initial-value: 855; }

.k-traque { background: #FFD60A; color: #0B0B0B; font-family: 'Inter Tight', 'Inter', sans-serif; }
.k-traque .brand { left: 4.5cqw; top: 4cqw; font-weight: 800; font-size: 4cqw; letter-spacing: -.02em; white-space: nowrap; }
.k-traque .when { left: 4.5cqw; top: 9.6cqw; font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 3.2cqw; letter-spacing: -.04em; white-space: nowrap; }
.k-traque .title { left: 4.5cqw; top: 13.6cqw; width: 44cqw; font-weight: 900; font-size: 9cqw; line-height: .9; letter-spacing: -.045em; }
.k-traque .rule { left: 4.5cqw; width: 42cqw; top: 40.2cqw; height: 0; border-top: 2px solid #0B0B0B; }

.k-traque .km { left: 4.5cqw; top: 42cqw; display: flex; align-items: baseline; gap: 1.2cqw; line-height: 1; }
.k-traque .km b { font-weight: 800; font-size: 7cqw; letter-spacing: -.04em; font-variant-numeric: tabular-nums; animation: traque-km 8s linear infinite; counter-reset: traque-km var(--traque-km); }
.k-traque .km b::before { content: counter(traque-km); }
.k-traque .km span { font-weight: 800; font-size: 4cqw; }
@keyframes traque-km { 0%, 6% { --traque-km: 0; } 60%, 100% { --traque-km: 855; } }

.k-traque .facts { left: 29cqw; top: 42.2cqw; display: flex; flex-direction: column; gap: .4cqw; font-weight: 600; font-size: 3.4cqw; line-height: 1.1; letter-spacing: -.01em; }

.k-traque .map { left: 51cqw; top: 4.5cqw; width: 44.5cqw; height: 43.4cqw; background: #1b2420; border: .5cqw solid #0B0B0B; border-radius: 2cqw; overflow: hidden; box-sizing: border-box; }
.k-traque .map svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
.k-traque .sea { fill: #22363f; }
.k-traque .grat line { stroke: #fff; stroke-opacity: .1; stroke-width: .4; }
@keyframes traque-live { 0% { opacity: 0; } 3%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.k-traque .route { fill: none; stroke: #FFD60A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: traque-draw 8s infinite; }
@keyframes traque-draw { 0%, 6% { stroke-dashoffset: 1; opacity: 0; animation-timing-function: ease-in-out; } 7% { opacity: 1; } 60%, 92% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.k-traque .start { fill: #fff; stroke: #0B0B0B; stroke-width: .8; animation: traque-live 8s linear infinite; }
.k-traque .cross { fill: none; stroke: #ff5a4f; stroke-width: 1.8; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: traque-cross 8s infinite; }
@keyframes traque-cross { 0%, 50% { opacity: 0; transform: scale(.2); } 55%, 92% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(1); } }
.k-traque .end { animation: traque-end 8s infinite; }
@keyframes traque-end { 0%, 58% { opacity: 0; } 62%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.k-traque .dot { fill: #ff5a4f; stroke: #fff; stroke-width: .9; }
.k-traque .ring { fill: #ff5a4f; opacity: 0; transform-box: fill-box; transform-origin: center; animation: traque-ring 1.6s ease-out infinite; }
@keyframes traque-ring { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }

.k-traque .lab { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 3.2cqw; line-height: 1; letter-spacing: -.04em; color: #e9e6d6; white-space: nowrap; animation: traque-live 8s linear infinite; }
.k-traque .lab.from { right: 12.2cqw; top: 3.05cqw; text-align: right; }
.k-traque .lab.to { left: 30.3cqw; top: 37.2cqw; }

@media (prefers-reduced-motion: reduce) {
  .k-traque .km b, .k-traque .start, .k-traque .route, .k-traque .cross, .k-traque .end, .k-traque .lab { animation: none; }
  .k-traque .km b { --traque-km: 855; }
  .k-traque .start, .k-traque .route, .k-traque .lab, .k-traque .end, .k-traque .cross { opacity: 1; transform: none; }
  .k-traque .route { stroke-dashoffset: 0; }
  .k-traque .ring { animation: none; opacity: 0; }
}
