/* TYPATHLON: canvas race + keycap verb tray, broadcast graphics, commentator, photo finish. */
.ol { background: #17121f; }
.ol-canvas { position: absolute; left: 0; top: 0; width: 1600px; height: 810px; display: block; }

/* ---------------------------------------------------------------- the verb tray, floating above your athlete */
.ol-verb { position: absolute; left: 442px; top: 540px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 16px 13px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(180deg, rgba(44, 37, 66, .95) 0%, rgba(22, 17, 36, .95) 60%, rgba(14, 11, 24, .96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 3px 6px rgba(18, 10, 42, .35), 0 18px 34px rgba(18, 10, 42, .5);
  transition: opacity .3s, transform .3s; }
.ol-verb::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 20px; height: 20px; margin-left: -10px; transform: rotate(45deg); border-radius: 3px;
  background: rgba(16, 12, 27, .96); border-right: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); z-index: -1; }
.ol-verb.done { animation: ol-done .22s var(--ease-pop); }
@keyframes ol-done { 40% { transform: translateX(-50%) scale(1.05); } }
.ol-verb.gone, .ol-speed.gone { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.85); pointer-events: none; }
.ol-speed.gone { transform: translateY(30px) scale(.8); }
.ol-verb-k { font-weight: 800; font-size: 10.5px; letter-spacing: .32em; color: rgba(246, 239, 226, .55); }
.ol-caps { display: flex; gap: 7px; padding: 0 2px 4px; }
.ol-caps.in .ol-cap { animation: ol-cap-in .3s var(--ease-pop) both; }
.ol-caps.in .ol-cap:nth-child(2) { animation-delay: .03s; } .ol-caps.in .ol-cap:nth-child(3) { animation-delay: .06s; } .ol-caps.in .ol-cap:nth-child(4) { animation-delay: .09s; }
.ol-caps.in .ol-cap:nth-child(5) { animation-delay: .12s; } .ol-caps.in .ol-cap:nth-child(6) { animation-delay: .15s; } .ol-caps.in .ol-cap:nth-child(n+7) { animation-delay: .18s; }
@keyframes ol-cap-in { from { transform: translateY(-22px) scale(.7); opacity: 0; } }

/* A sculpted keycap: darker skirt, a dished top face lit from the upper left, a real shadow underneath. */
.ol-cap { position: relative; isolation: isolate; display: grid; place-items: center; width: 58px; height: 64px; padding-bottom: 10px; border-radius: 12px;
  background: linear-gradient(180deg, #e2d3b4 0%, #c9b58f 55%, #a8936c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 2px rgba(70, 50, 25, .35), 0 5px 0 #5e4c36, 0 6px 1px rgba(18, 10, 42, .5), 0 12px 16px rgba(18, 10, 42, .45);
  color: #2a2130; font-family: var(--font-display); font-size: 40px; line-height: 1; text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .06s, box-shadow .06s; }
.ol-cap::before { content: ""; position: absolute; left: 5px; right: 6px; top: 3px; bottom: 12px; border-radius: 9px; z-index: -1;
  background: radial-gradient(130% 100% at 35% 25%, #fffef9 0%, #f8f0de 45%, #ecdfc4 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .95), inset -2px -3px 4px rgba(120, 90, 50, .22), 0 1px 0 rgba(255, 255, 255, .3); }
.ol-cap.space { width: 104px; }
.ol-cap.space::after { content: ""; width: 50px; height: 5px; border-radius: 3px; background: rgba(42, 33, 48, .3); margin-top: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
/* the key you're on: lifted, lit, with a hot-pink focus ring */
.ol-cap.cur { transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 2px rgba(70, 50, 25, .35), 0 5px 0 #5e4c36, 0 0 0 3px #ff3d7f, 0 0 22px rgba(255, 61, 127, .55), 0 14px 18px rgba(18, 10, 42, .5);
  animation: ol-cur .6s ease-in-out infinite alternate; }
.ol-cap.cur::before { background: radial-gradient(130% 100% at 35% 25%, #ffffff 0%, #fff6fa 50%, #f6dde8 100%); }
@keyframes ol-cur { to { transform: translateY(-6px); } }
/* typed: pressed down, lit acid green */
.ol-cap.ok { transform: translateY(4px); color: #263400; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); animation: none;
  background: linear-gradient(180deg, #b8dc2a 0%, #8fb400 60%, #6a8a00 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 2px rgba(30, 50, 0, .35), 0 1px 0 #3e5200, 0 2px 4px rgba(18, 10, 42, .45); }
.ol-cap.ok::before { background: radial-gradient(130% 100% at 35% 25%, #f8ffd2 0%, #dfff6a 45%, #c2ec26 100%); }
.ol-cap.press { animation: ol-press .18s var(--ease-pop); }
@keyframes ol-press { 0% { transform: translateY(7px) scale(.95); } 100% { transform: translateY(4px); } }
.ol-cap.bad { animation: ol-bad .3s; color: #fff3ef; text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, #e8533f 0%, #b52a1c 100%); }
.ol-cap.bad::before { background: radial-gradient(130% 100% at 35% 25%, #ff9a86 0%, #ff5a42 50%, #d8321f 100%); }
@keyframes ol-bad { 20% { transform: translateX(-6px) rotate(-5deg); } 60% { transform: translateX(5px) rotate(4deg); } }
.ol-next { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 17px; color: rgba(246, 239, 226, .8); }
.ol-next small { font-family: var(--font-ui); font-size: 9.5px; font-weight: 800; letter-spacing: .24em; opacity: .55; margin-right: 2px; }
.ol-next span { padding: 2px 10px 4px; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 0 rgba(0, 0, 0, .35); }
.ol-next span:first-of-type { color: #e4ff7a; background: linear-gradient(180deg, rgba(215, 255, 60, .22), rgba(215, 255, 60, .08)); }

/* speedometer (hidden: the athlete's pace already shows it) */
.ol-speed { display: none; }

/* ---------------------------------------------------------------- event banner: a broadcast lower-third */
.ol-banner { position: absolute; left: 50%; top: 120px; z-index: 5; transform: translate(-50%, -30px); display: flex; flex-direction: column; align-items: flex-start;
  min-width: 380px; padding: 10px 28px 13px 24px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .13); border-left: 0;
  background: linear-gradient(180deg, rgba(40, 33, 62, .97), rgba(14, 11, 24, .97)); color: #f6efe2;
  box-shadow: inset 7px 0 0 var(--sc, var(--hot)), inset 0 1px 0 rgba(255, 255, 255, .14), 0 20px 44px rgba(18, 10, 42, .55), 0 4px 8px rgba(18, 10, 42, .35);
  pointer-events: none; opacity: 0; }
.ol-banner::before { content: ""; position: absolute; left: 7px; right: 0; top: 0; height: 50%; border-radius: 0 12px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent); }
.ol-banner small { font-weight: 800; letter-spacing: .3em; font-size: 11px; color: var(--sc, var(--hot)); filter: brightness(1.15); }
.ol-banner b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.02; color: #fff; letter-spacing: .01em; }
.ol-banner span { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; margin-top: 5px; letter-spacing: .06em; color: rgba(246, 239, 226, .65); }
.ol-banner.show { animation: ol-banner 3.2s var(--ease-out) forwards; }
@keyframes ol-banner { 0% { transform: translate(-50%, -30px); opacity: 0; clip-path: inset(0 100% 0 0 round 12px); } 12% { transform: translate(-50%, 0); opacity: 1; clip-path: inset(0 0 0 0 round 12px); }
  86% { transform: translate(-50%, 0); opacity: 1; clip-path: inset(0 0 0 0 round 12px); } 100% { transform: translate(-50%, -14px); opacity: 0; clip-path: inset(0 0 0 0 round 12px); } }

/* ---------------------------------------------------------------- Barry, who should not be allowed near a microphone */
.ol-comm { position: absolute; left: 18px; top: 116px; z-index: 5; display: flex; align-items: flex-start; gap: 8px; pointer-events: none; opacity: 0; }
.ol-barry { position: relative; width: 78px; height: 78px; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(80% 80% at 35% 25%, #6fd6ff 0%, #2a8fd0 60%, #1a5a9a 100%);
  box-shadow: 0 0 0 3px #f6efe2, 0 0 0 5px rgba(23, 18, 31, .85), 0 10px 20px rgba(18, 10, 42, .5); }
.ol-barry::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(150deg, rgba(255, 255, 255, .28) 0 22%, transparent 40%); pointer-events: none; }
.ol-barry svg { width: 100%; height: 100%; display: block; }
.ol-comm-bubble { position: relative; max-width: 470px; margin-top: 10px; padding: 7px 15px 10px; border-radius: 4px 16px 16px 16px; color: #241c2c;
  background: linear-gradient(180deg, #fffaf0, #f4e9d4); box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(120, 90, 50, .25), 0 12px 24px rgba(18, 10, 42, .45); }
.ol-comm-bubble small { display: block; font-weight: 800; font-size: 9.5px; letter-spacing: .22em; color: #c81e5b; margin-bottom: 1px; }
.ol-comm-text { font-family: var(--font-display); font-size: 21px; line-height: 1.12; }
.ol-comm.talk { animation: ol-comm-life 3.6s ease forwards; }
.ol-comm.talk .ol-comm-bubble { animation: ol-talk .35s var(--ease-pop); }
.ol-comm.talk .ol-barry svg { animation: ol-bob .18s ease-in-out 4 alternate; }
@keyframes ol-comm-life { 0% { opacity: 0; transform: translateY(-8px); } 6% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ol-talk { from { transform: scale(.7); opacity: 0; transform-origin: left top; } }
@keyframes ol-bob { to { transform: translateY(-3px) rotate(-3deg); } }

/* ---------------------------------------------------------------- placement stamp + photo-finish polaroid */
.ol-place { position: absolute; right: 120px; top: 240px; z-index: 6; font-family: var(--font-display); font-size: 150px; line-height: 1; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, #fff6c8 0%, #ffd54a 38%, #e0a21a 52%, #ffe68a 64%, #b97a10 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 5px #2a1a08; paint-order: stroke fill; filter: drop-shadow(0 10px 12px rgba(18, 10, 42, .55)) drop-shadow(0 3px 0 #2a1a08); }
.ol-place[data-p="2"] { background-image: linear-gradient(180deg, #ffffff 0%, #dfe5f2 38%, #9aa3b8 52%, #e8edf6 64%, #7a8398 100%); -webkit-text-stroke-color: #1e2230; }
.ol-place[data-p="3"] { background-image: linear-gradient(180deg, #ffe0c4 0%, #e6a36b 38%, #a9622e 52%, #f0bb8a 64%, #7a4218 100%); -webkit-text-stroke-color: #2a1408; }
.ol-place[data-p="4"] { background-image: linear-gradient(180deg, #e6f8ff 0%, #8fdcff 40%, #2a9ad8 55%, #b4e8ff 66%, #1a6aa0 100%); font-size: 120px; -webkit-text-stroke-color: #0a2030; }
.ol-place.show { animation: ol-stamp .6s var(--ease-pop) forwards; }
@keyframes ol-stamp { 0% { transform: scale(2.6) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(-7deg); opacity: 1; } }
.ol-photo { position: absolute; right: 70px; top: 430px; z-index: 6; padding: 12px 12px 10px; opacity: 0; pointer-events: none;
  background: var(--tex-paper) 0 0 / 300px, linear-gradient(175deg, #fffdf7, #f1e9d8); background-blend-mode: multiply, normal;
  box-shadow: 0 1px 1px rgba(18, 10, 42, .25), 0 14px 30px rgba(18, 10, 42, .5), 0 4px 8px rgba(18, 10, 42, .3); }
.ol-photo::before { content: ""; position: absolute; left: 50%; top: -12px; width: 96px; height: 26px; margin-left: -48px; transform: rotate(-3deg);
  background: linear-gradient(180deg, rgba(250, 246, 232, .82), rgba(232, 224, 200, .78)); box-shadow: 0 1px 2px rgba(18, 10, 42, .2); }
.ol-photo canvas { display: block; width: 380px; height: 250px; background: #333; filter: saturate(1.1) contrast(1.05) sepia(.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.ol-photo-cap { margin-top: 8px; font-family: var(--font-display); font-size: 19px; color: #2a2230; text-align: center; letter-spacing: .02em; }
.ol-photo.show { animation: ol-photo .7s var(--ease-pop) forwards; }
@keyframes ol-photo { 0% { transform: translateX(500px) rotate(18deg); opacity: 0; } 100% { transform: rotate(3.5deg); opacity: 1; } }
