:root {
  color-scheme: dark;
  --canvas-width: 1536;
  --canvas-height: 1024;
  --navy: #001735;
  --ink: #001329;
  --orange: #ff5b00;
  --orange-deep: #c53000;
  --gold: #ffcb27;
  --paper: #f5f7f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, #13263d 0, #060c15 56%, #02050a 100%);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.page {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.poster-shell {
  position: relative;
  overflow: hidden;
  flex: none;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.poster {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1536px;
  height: 1024px;
  overflow: hidden;
  transform-origin: top left;
  background: var(--navy);
  isolation: isolate;
}

.photo-layers,
.photo {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.photo-layers {
  inset: 0;
  z-index: 0;
}

.photo {
  display: block;
  max-width: none;
  object-fit: none;
}

.grunge-panel {
  left: 0;
  top: 0;
  width: 900px;
  height: 820px;
}

.hero-scene {
  left: 580px;
  top: 0;
  width: 956px;
  height: 840px;
}

.city-panorama {
  left: 0;
  top: 742px;
  width: 1536px;
  height: 282px;
  z-index: 2;
}

.left-depth {
  position: absolute;
  z-index: 1;
  inset: 0 auto 285px 0;
  width: 790px;
  background:
    linear-gradient(90deg, rgba(0, 12, 34, 0.26) 0%, rgba(0, 15, 39, 0.11) 65%, transparent 100%),
    linear-gradient(180deg, rgba(0, 9, 28, 0.03), rgba(0, 11, 31, 0.2));
  pointer-events: none;
}

.warm-grit {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  background:
    repeating-linear-gradient(
      -10deg,
      rgba(255, 79, 0, 0.9) 0 2px,
      rgba(205, 48, 0, 0.1) 2px 7px,
      transparent 7px 17px
    );
  filter: blur(0.2px);
  mix-blend-mode: screen;
  clip-path: polygon(0 4%, 78% 0, 99% 17%, 66% 37%, 97% 62%, 44% 79%, 71% 100%, 0 91%);
}

.warm-grit-a {
  left: -35px;
  top: 329px;
  width: 213px;
  height: 390px;
  transform: rotate(-7deg);
}

.warm-grit-b {
  left: 0;
  top: 39px;
  width: 46px;
  height: 300px;
  opacity: 0.35;
  transform: rotate(7deg);
}

.masthead,
.event-details,
.route {
  position: absolute;
  z-index: 5;
}

.masthead {
  inset: 0;
}

.masthead h1,
.race-types,
.event-details p {
  margin: 0;
}

.year,
.event-title,
.full-race,
.half-race,
.date-copy,
.course-copy,
.deadline-copy {
  text-shadow:
    0 3px 1px rgba(0, 8, 23, 0.2),
    3px 5px 5px rgba(0, 0, 0, 0.36);
}

.distressed-text {
  background-blend-mode: normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.year {
  position: absolute;
  left: 63px;
  top: 67px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 148px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
  transform: skewX(-4deg) scaleX(0.98);
  transform-origin: left center;
  background-image: linear-gradient(162deg, #ffd248 2%, #ffba28 74%, #f69a11 100%);
  filter: drop-shadow(3px 5px 3px rgba(0, 0, 0, 0.34));
}

.event-title {
  position: absolute;
  left: 387px;
  top: 73px;
  width: 750px;
  white-space: nowrap;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", SimHei, sans-serif;
  font-size: 120px;
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: -8px;
  transform: scaleX(0.91);
  transform-origin: left top;
  background-image: linear-gradient(175deg, #ffffff 0%, #fcfdf9 52%, #e5e8e7 100%);
  filter: drop-shadow(3px 5px 3px rgba(0, 0, 0, 0.38));
}

.race-types {
  position: absolute;
  left: 54px;
  top: 235px;
  width: 860px;
  height: 82px;
  white-space: nowrap;
  font-size: 72px;
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: -3px;
}

.full-race {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  color: #ff5a00;
  transform: scaleX(1.1);
  transform-origin: left top;
}

.race-dot {
  position: absolute;
  left: 395px;
  top: 0;
  color: #f7f7f1;
  font-size: 57px;
}

.half-race {
  position: absolute;
  left: 428px;
  top: 0;
  display: block;
  color: var(--paper);
  transform: scaleX(1.07);
  transform-origin: left top;
}

.event-details {
  left: 0;
  top: 0;
  width: 720px;
  height: 690px;
}

.detail-row {
  position: absolute;
  left: 0;
  width: 720px;
}

.date-row {
  top: 351px;
  height: 90px;
}

.course-row {
  top: 458px;
  height: 90px;
}

.deadline-row {
  top: 568px;
  height: 98px;
}

.brush-bar,
.course-band {
  position: absolute;
  z-index: -1;
}

.brush-bar {
  left: 116px;
  top: 7px;
  width: 560px;
  height: 73px;
  background:
    repeating-linear-gradient(
      -5deg,
      rgba(255, 111, 10, 0.22) 0 3px,
      rgba(136, 33, 0, 0.05) 3px 8px,
      transparent 8px 16px
    ),
    linear-gradient(90deg, rgba(213, 50, 0, 0.93), rgba(151, 31, 0, 0.78) 86%, transparent 100%);
  clip-path: polygon(0 13%, 8% 4%, 22% 10%, 34% 2%, 51% 9%, 69% 4%, 85% 12%, 100% 5%, 94% 33%, 100% 47%, 92% 66%, 98% 88%, 75% 84%, 56% 96%, 38% 88%, 17% 100%, 0 88%, 5% 69%, 0 48%);
  filter: drop-shadow(3px 6px 2px rgba(0, 0, 0, 0.32));
}

.brush-bar::before,
.brush-bar::after {
  content: "";
  position: absolute;
  left: -47px;
  width: 600px;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(244, 63, 0, 0.72) 0 7px, transparent 7px 18px);
  opacity: 0.72;
}

.brush-bar::before {
  top: -10px;
  transform: rotate(-1deg);
}

.brush-bar::after {
  bottom: -8px;
  transform: rotate(1deg);
}

.course-band {
  left: 118px;
  top: 8px;
  width: 590px;
  height: 73px;
  background: linear-gradient(90deg, rgba(0, 31, 67, 0.95), rgba(0, 29, 63, 0.75) 82%, transparent 100%);
  clip-path: polygon(0 5%, 24% 8%, 39% 2%, 57% 8%, 77% 4%, 100% 11%, 95% 45%, 100% 86%, 73% 91%, 49% 86%, 28% 94%, 0 87%, 4% 55%);
}

.detail-icon {
  position: absolute;
  left: 53px;
  top: 0;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(140deg, #e65208 6%, #a82405 95%);
  box-shadow:
    4px 8px 8px rgba(0, 0, 0, 0.5),
    inset 2px 2px 8px rgba(255, 153, 50, 0.34);
}

.detail-icon svg {
  width: 63px;
  height: 63px;
  fill: none;
  stroke: #fff;
  stroke-width: 4.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-row .detail-icon svg {
  width: 66px;
  height: 66px;
}

.course-row .detail-icon svg path {
  fill: #fff;
  stroke: none;
}

.course-row .detail-icon svg circle {
  fill: #c93705;
  stroke: none;
}

.deadline-row .detail-icon svg {
  width: 67px;
  height: 67px;
  stroke-width: 5.8;
}

.date-copy,
.course-copy,
.deadline-copy {
  position: absolute;
  color: #f8faf7;
  font-weight: 1000;
  white-space: nowrap;
}

.date-copy {
  left: 159px;
  top: 11px;
  display: flex;
  align-items: center;
  height: 64px;
}

.date-copy time {
  font-family: Arial, "Microsoft YaHei UI", sans-serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -3px;
}

.divider {
  display: block;
  width: 2px;
  height: 48px;
  margin: 0 16px 0 15px;
  background: rgba(246, 246, 238, 0.88);
  box-shadow: 2px 0 0 rgba(69, 17, 4, 0.5);
}

.venue {
  font-size: 43px;
  letter-spacing: -2px;
}

.course-copy {
  left: 159px;
  top: 23px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -2px;
}

.deadline-copy {
  left: 163px;
  top: 13px;
  display: flex;
  align-items: baseline;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}

.deadline-copy time {
  margin-left: 10px;
  color: #ffd72a;
  font-family: Arial, "Microsoft YaHei UI", sans-serif;
  font-size: 55px;
  letter-spacing: -4px;
  text-shadow:
    0 4px 0 rgba(82, 34, 0, 0.34),
    4px 8px 8px rgba(0, 0, 0, 0.45);
}

.route {
  left: 0;
  top: 742px;
  width: 1536px;
  height: 282px;
  z-index: 8;
  pointer-events: none;
}

.route-line {
  position: absolute;
  inset: 0;
  width: 1536px;
  height: 282px;
  overflow: visible;
}

.route-line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-glow {
  stroke: #ff7300;
  stroke-width: 10;
  opacity: 0.92;
  filter: url(#routeGlow);
}

.route-core {
  stroke: #fffdf1;
  stroke-width: 4;
}

.route-marker {
  position: absolute;
  width: 42px;
  height: 55px;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(255, 93, 0, 0.95)) drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.5));
}

.route-marker path {
  fill: #f4590b;
  stroke: #fff;
  stroke-width: 5;
  stroke-linejoin: round;
}

.route-marker circle {
  fill: #fff;
}

.marker-one {
  left: 70px;
  top: 181px;
}

.marker-two {
  left: 554px;
  top: 189px;
}

.marker-three {
  left: 912px;
  top: 179px;
}

.marker-four {
  left: 1432px;
  top: 202px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
