/* A road: one lane per challenger, all running into the boss's goal on the right. */
.road { display: grid; grid-template-columns: 1fr 128px; margin-top: 14px; border: 3px solid var(--void); image-rendering: pixelated; }
.lanes { position: relative; }
.lane { position: relative; height: 50px; }
.runner { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.runner svg { display: block; }
.tag { position: absolute; top: 50%; transform: translateY(-50%); left: calc(100% + 4px); white-space: nowrap; background: var(--void); color: var(--frame); font-size: 18px; line-height: 1; padding: 3px 5px 2px; }
.tag span { color: var(--gold); }
.runner.flip .tag { left: auto; right: calc(100% + 4px); }
.goal { position: relative; display: grid; place-items: center; }
.goal .boss { position: relative; z-index: 1; }
.caption { margin: 8px 0 0; color: var(--dim); font-size: 19px; }

/* MapTap: a trail across an old map, ending at the pirate's hoard. */
.MapTap .lanes { background: #EAD7A4; }
.MapTap .lane + .lane { border-top: 2px solid #D2B676; }
.MapTap .lane::before { content: ""; position: absolute; left: 6px; right: 0; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, #C8102E 0 8px, transparent 8px 14px); }
.MapTap .lanes::after { content: "✕"; position: absolute; left: 4px; top: 2px; color: #C8102E; font-size: 18px; }
.MapTap .goal { background: #D9BF80; align-content: end; padding-bottom: 10px; }
.MapTap .hoard { display: grid; justify-items: center; }
.MapTap .hoard .pile { position: relative; z-index: 2; margin-top: -14px; }

/* Krillion: a boat race on open water, finishing in the kraken's deep water. */
.Krillion .lanes, .Krillion .goal { --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' shape-rendering='crispEdges'%3E%3Cpath d='M0 9h4v-2h4v2h4' fill='none' stroke='%23FFFFFF' stroke-opacity='.28' stroke-width='2'/%3E%3C/svg%3E"); }
.Krillion .lanes { background-color: #1B4F8F; background-image: var(--waves); }
.Krillion .lane + .lane { border-top: 4px dotted #FF4D6D; }
.Krillion .runner .hull { width: 44px; height: 12px; margin: -8px 0 0 -7px; }
.Krillion .runner { top: 44%; }
.Krillion .goal { background-color: #0C2C57; background-image: var(--waves); border-left: 3px dashed #FFFFFF55; }
/* The kraken surfaces: its lower part sits under a sheet of deep water. */
.Krillion .surface { position: relative; display: grid; justify-items: center; }
.Krillion .surface::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: -6px; height: 36%; z-index: 2; background: #0C2C57CC; border-top: 3px solid #FFFFFF88; }

/* Size It Up: a tape measure, ending at a tower of the game's red squares. */
.SizeItUp .lanes { background-color: #FFD84D;
  background-image: repeating-linear-gradient(90deg, #0B3954 0 2px, transparent 2px 10%), repeating-linear-gradient(90deg, #0B3954 0 1px, transparent 1px 2%);
  background-size: 100% 14px, 100% 7px; background-repeat: no-repeat; }
.SizeItUp .lane { background-image: inherit; background-size: inherit; background-repeat: inherit; }
.SizeItUp .lane + .lane { border-top: 3px solid #0B3954; }
.SizeItUp .goal { background: #FFE58A; align-content: end; padding-bottom: 4px; }
.SizeItUp .tower { display: grid; gap: 3px; justify-items: center; }
.SizeItUp .tower i { background: #F2545B; display: block; }

/* GeoSports: a football field. Every yard is ten points. */
.GeoSports .lanes { background: repeating-linear-gradient(90deg, #2E8B57 0 10%, #2A7F4F 10% 20%); }
.GeoSports .lanes::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #FFFFFFCC 0 2px, transparent 2px 10%); background-position: 10% 0; }
.GeoSports .lane + .lane::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: repeating-linear-gradient(90deg, transparent 0 calc(2% - 2px), #FFFFFF99 calc(2% - 2px) 2%); }
/* The end zone: thick goal line, painted name, and the goalpost on the back line seen from above. */
.GeoSports .goal { background: #0B3954; border-left: 6px solid #fff; border-right: 4px solid #fff; overflow: hidden; }
.GeoSports .paint { position: absolute; inset: 0; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 30px; line-height: 1; letter-spacing: .04em; color: #FFCF3D; opacity: .35; }
.GeoSports .post { position: absolute; right: 4px; top: 22%; bottom: 22%; width: 6px; background: #FFCF3D; }
.GeoSports .post::before, .GeoSports .post::after { content: ""; position: absolute; left: -3px; width: 12px; height: 12px; background: #FFCF3D; }
.GeoSports .post::before { top: -6px; }
.GeoSports .post::after { bottom: -6px; }
