/* ==========================================================================
   Race mode — board styles

   Direction: read the board as a circuit map, not a flowchart. Links are laid
   as road (dark casing, lighter core) rather than drawn as wires; start and
   finish are marked with chequer rather than a caption; and the standings are
   a timing tower, which is the one loud element on the page. Everything else
   stays quiet.

   Palette and type are the site's own — warm dark, gold for action, Cinzel for
   display, Nunito for everything else. The two team colours come from the event
   record, so they're set inline from race.js, never hard-coded here.
   ========================================================================== */

/* Broadcast layout.
   
   The page's main element caps at 1100px, which is right for a bingo grid and
   far too narrow for a circuit, so the board breaks out of that cap and centres
   itself instead. 3rem of slack keeps it clear of a scrollbar, since 100vw
   counts one in some browsers. */
.race-layout {
  width: min(calc(100vw - 3rem), 1560px);
  margin-left: calc(50% - min(calc(50vw - 1.5rem), 780px));
}
@media (max-width: 1040px) {
  .race-layout { width: auto; margin-left: 0; }
}

/* Event name, state and dates, sitting in the page header beside the logo. */
#race-header-meta {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  min-width: 0;
  margin-left: .9rem;
  padding-left: .9rem;
  border-left: 1px solid var(--border);
}
#race-header-meta b {
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#race-header-meta span:last-child { font-size: .72rem; color: var(--text3); white-space: nowrap; }
@media (max-width: 760px) {
  #race-header-meta { display: none; }
}

/* Which team you're racing for, beside the nav. */
#race-team-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  padding: .25rem .7rem;
  border: 1px solid var(--border2);
  background: var(--bg2);
}
#race-team-pill.on-team {
  color: var(--c, var(--text));
  border-color: color-mix(in srgb, var(--c, #888) 55%, transparent);
  background: color-mix(in srgb, var(--c, #888) 12%, var(--bg2));
}
#race-team-pill.on-team i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, currentColor); flex-shrink: 0;
}
#race-team-pill.no-team { color: var(--text3); font-weight: 600; }
#race-team-pill.no-team a { color: var(--gold2); text-decoration: none; }
#race-team-pill.no-team a:hover { text-decoration: underline; }

.race-shell {
  /* #board-wrap is display:flex. Without a definite basis a flex item sizes to
     its content, and since the <svg> now has no width/height attributes it has
     no intrinsic size to give — so the panel collapsed and width:100% on the
     svg had nothing to resolve against. flex-basis:100% makes the basis the
     flex container's width, which is what the svg then fills. */
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  position: relative;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(232, 168, 80, .06), transparent 65%),
    linear-gradient(180deg, #151a23 0%, #0f131a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem .75rem 1rem;
  overflow: hidden;
}

/* Asphalt grain. Two very low-contrast diagonal washes; enough to stop the
   panel reading as flat fill, not enough to notice as a pattern. */
.race-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(58deg, rgba(255, 255, 255, .009) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(-58deg, rgba(0, 0, 0, .09) 0 3px, transparent 3px 14px);
}

/* The board scales to whatever room it's given rather than scrolling inside a
   box. With no width/height attributes on the <svg>, the viewBox is the only
   thing setting its size, so width:100% plus height:auto makes it fit the panel
   at the right aspect ratio. The max-height stops a tall circuit pushing the
   timing tower off screen; preserveAspectRatio letterboxes rather than
   stretching when that bites. */
.race-scroll { position: relative; width: 100%; }

/* Monza's bounding box is an L: the top right of it is empty at every size, so
   the timing tower lives in that gap. Sized as a share of the panel rather than
   in pixels, so it keeps its proportion as the board scales. On anything narrow
   it drops back into the flow above the track — overlapping is worse than
   scrolling. */
.race-overlay {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: clamp(230px, 30%, 330px);
  z-index: 2;
}
@media (max-width: 900px) {
  .race-overlay { position: static; width: auto; margin: 0 0 .75rem; }
}

.race-svg {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-height: min(80vh, 900px);
}
.race-svg text { font-family: 'Nunito', sans-serif; }

/* ── Track ───────────────────────────────────────────────────────────────── */
/* Each link is two strokes: a dark casing that separates it from the panel, and
   a lighter core on top. Drawn as road, so branches read as junctions. */
.race-casing { stroke: #0c1016; stroke-width: 13; stroke-linecap: round; }
.race-core   { stroke: #2b3545; stroke-width: 7;  stroke-linecap: round; }

/* A link open from where the focused team stands. Colour is set inline to that
   team's; the dashes crawl toward the tile you'd be moving to. */
.race-core.open {
  stroke-dasharray: 9 9;
  animation: race-crawl 1.1s linear infinite;
}
@keyframes race-crawl { to { stroke-dashoffset: -18; } }

/* The road already travelled, drawn over the core on its own layer. */
.race-route { stroke-width: 7; stroke-linecap: round; }

@media (prefers-reduced-motion: reduce) {
  .race-core.open { animation: none; }
  .race-ring-glow.live { animation: none; }
}

/* ── Hexes ───────────────────────────────────────────────────────────────── */
.race-node { cursor: default; }

.hex-shadow { fill: #05070a; opacity: .55; }
.hex-plate  { fill: url(#racePlate); }
.hex-sheen  { fill: url(#raceSheen); pointer-events: none; }
.hex-rim    { fill: none; stroke: #3a4557; stroke-width: 2; }
.hex-art    { opacity: .97; }

.race-node.locked .hex-plate  { fill: url(#racePlateLocked); }
.race-node.locked .hex-rim    { stroke: #262f3d; }
.race-node.locked .hex-art    { opacity: .1; filter: grayscale(1); }
.race-node.locked .hex-label  { fill: #5c6676; }
.race-node.locked .hex-shadow { opacity: .3; }

/* Submittable now. Gold is the action colour across the whole site, so it means
   the same here as it does on a button. */
.race-node.eligible { cursor: pointer; }
.race-node.eligible .hex-rim { stroke: var(--gold2); stroke-width: 3; }
/* Drawn as a real path rather than a drop-shadow filter: filters are dropped by
   some renderers and are a known jank source on mobile Safari. */
.hex-halo { fill: none; stroke: var(--gold2); stroke-width: 9; opacity: .22; }

/* A tile the focused team has already cleared sits back a little. */
.race-node.cleared .hex-plate { fill: url(#racePlateDone); }

.hex-label {
  fill: var(--text);
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}
.hex-plate-label { fill: rgba(6, 9, 13, .78); }

/* Start and finish are marked with chequer above the hex rather than a caption;
   the flag says it faster than the word does. */
.hex-flag-dark  { fill: #0c1016; }
.hex-flag-light { fill: #e9edf2; }

/* Team position. Two half-perimeters, so when both markers share a tile each
   team owns exactly half the outline — one stroke can't express that. */
.race-ring { fill: none; stroke-width: 4; stroke-linecap: butt; }
.race-ring-glow { fill: none; stroke-width: 10; opacity: .18; }
@keyframes race-pulse { 0%, 100% { opacity: .2; } 50% { opacity: .46; } }
.race-ring-glow.live { animation: race-pulse 2.6s ease-in-out infinite; }

/* Completion chips, drawn only for a team that has cleared the tile. */
.race-chip { stroke: rgba(4, 7, 11, .6); stroke-width: 1.5; }
.race-chip-mark { font-size: 10px; font-weight: 800; text-anchor: middle; pointer-events: none; }

.race-bar-track { fill: rgba(3, 6, 10, .7); }
.race-bar-fill  { fill: var(--gold2); }

/* ── Timing tower ────────────────────────────────────────────────────────── */
.race-tower {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 32, 43, .97), rgba(15, 19, 26, .97));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
}
.race-tower-head {
  font-family: 'Cinzel', serif;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  padding: .35rem .7rem;
  border-bottom: 1px solid var(--border);
  order: -1;
}
.race-tower-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .5rem .7rem .5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.race-tower-row:last-child { border-bottom: none; }
.race-tower-pos {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0f15;
  background: var(--c, var(--border2));
  margin: -.5rem 0;
}
.race-tower-name {
  min-width: 0;
  font-weight: 700; font-size: .88rem; color: var(--text); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.race-tower-nums { text-align: right; }
.race-tower-gap {
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  color: var(--text2);
  white-space: nowrap;
  /* The delta ticks constantly — tabular figures stop the row twitching as
     digits change width. */
  font-variant-numeric: tabular-nums;
}
.race-tower-row.leading .race-tower-gap { color: var(--gold2); }
.race-tower-tiles { font-size: .7rem; color: var(--text3); }
.race-tower-tiles span { opacity: .6; }
.race-tower-prog {
  position: absolute; left: 38px; bottom: 0; height: 2px;
  background: var(--c, var(--gold)); opacity: .55;
}

/* ── Legend, feed, chrome ────────────────────────────────────────────────── */
/* Key, stacked under the timing tower inside the track. */
.race-legend {
  margin-top: .55rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .7rem;
  line-height: 1.35;
  color: var(--text3);
  background: linear-gradient(180deg, rgba(26, 32, 43, .92), rgba(15, 19, 26, .92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .7rem;
}
.race-legend span { display: inline-flex; align-items: flex-start; gap: .4rem; }
.race-legend i {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
  border: 2px solid currentColor; font-style: normal; flex-shrink: 0;
  margin-top: .22em;
}

.race-feed {
  margin: .9rem 0 0;
  padding: .6rem .9rem;
  max-height: 190px;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
}
.race-feed h4 {
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  color: var(--text2);
  margin-bottom: .55rem;
}
.race-feed-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text2);
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
}
.race-feed-row:last-child { border-bottom: none; }
.race-feed-row .at { margin-left: auto; color: var(--text3); font-size: .7rem; white-space: nowrap; }

.race-winner {
  max-width: 620px;
  margin: 0 auto 1.1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 200, 66, .15), rgba(245, 200, 66, .03));
}
/* Chequer strip across the top of the banner. */
.race-winner::before {
  content: '';
  display: block;
  height: 10px;
  background-image:
    linear-gradient(45deg, #e9edf2 25%, transparent 25%, transparent 75%, #e9edf2 75%),
    linear-gradient(45deg, #e9edf2 25%, transparent 25%, transparent 75%, #e9edf2 75%);
  background-color: #0c1016;
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}
.race-winner p {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold2);
  text-align: center;
  padding: .7rem 1rem;
}


@media (max-width: 560px) {
  .race-tower-row { grid-template-columns: 38px 1fr auto; gap: .5rem; }
  .race-tower-pos { font-size: 1rem; }
  .race-tower-prog { left: 38px; }
}

/* ── Circuit ─────────────────────────────────────────────────────────────── */
/* Drawn the way a broadcast circuit map is: one flat line, a dark halo to lift
   it off the panel, and a soft bloom under both. Deliberately not a road. */
.track-bloom { fill: none; stroke: #7e9ccc; stroke-width: 30; opacity: .07;
               stroke-linejoin: round; stroke-linecap: round; }
.track-halo  { fill: none; stroke: #070a0f; stroke-width: 23;
               stroke-linejoin: round; stroke-linecap: round; }
.track-line  { fill: none; stroke: #55637c; stroke-width: 15;
               stroke-linejoin: round; stroke-linecap: round; }
.track-sector { stroke: rgba(150, 170, 200, .5); stroke-width: 2; }
.track-cheq   { fill: #e9edf2; }

/* Position dots. The glow is what makes them read at a glance on a busy map. */
.race-car .car-glow { opacity: .3; }
.race-car .car-dot  { stroke: #05080c; stroke-width: 2; }
.race-car .car-pip  { fill: #05080c; opacity: .75; }

/* ── Circuit markers ─────────────────────────────────────────────────────── */
/* The tile choices. No plate, no frame, no always-on label: the boss art is
   what people recognise, so it does the work and the chrome comes off. */
.mark-shadow { fill: #05070a; opacity: .45; }
.mark-plate  { fill: #1b2230; }
.mark-rim    { fill: none; stroke: #46536b; stroke-width: 2.2; }
.mark-art    { opacity: .97; }
.mark-initial {
  fill: var(--text2); font-size: 17px; font-weight: 800;
  text-anchor: middle; font-family: 'Cinzel', serif;
}

.race-node.locked .mark-plate { fill: #141a24; }
.race-node.locked .mark-rim   { stroke: #2b3546; }
.race-node.locked .mark-art   { opacity: .34; filter: grayscale(.85); }

.race-node.eligible .mark-rim { stroke: var(--gold2); stroke-width: 3; }
.mark-halo { fill: none; stroke: var(--gold2); stroke-width: 9; opacity: .24; }

.mark-chip { stroke: #06090d; stroke-width: 1.5; }
.mark-stalk { stroke: #46536b; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.mark-stalk.open { stroke-width: 3; opacity: 1; }

.mark-name-plate { fill: rgba(6, 9, 13, .82); }
.mark-name {
  fill: var(--text); font-size: 10px; font-weight: 700;
  text-anchor: middle; pointer-events: none;
}
.mark-role {
  fill: var(--gold2); font-size: 9px; font-weight: 700; letter-spacing: .09em;
  text-anchor: middle; pointer-events: none; font-family: 'Cinzel', serif;
}

/* The alternatives in a sector, joined so the pair reads as one decision. */
.choice-link  { stroke: var(--gold2); stroke-width: 2.5; stroke-dasharray: 6 6; opacity: .65; }
.choice-plate { fill: rgba(6, 9, 13, .92); stroke: var(--gold2); stroke-width: 1.4; }
.choice-label {
  fill: var(--gold2); font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-anchor: middle; pointer-events: none; font-family: 'Cinzel', serif;
}

/* ── Progress rings ──────────────────────────────────────────────────────── */
/* Each team's cleared route, hugging the outside of the circuit. Thin enough to
   read as an annotation on the track rather than a second track. */
.race-ring-progress {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .85;
}

/* A sector tick, once both teams have been through it, tinted to whoever was
   first. Grey until then. */
.track-sector.timed { stroke-width: 3.5; opacity: .95; }

/* ── The approval moment ─────────────────────────────────────────────────── */
/* A tile going green is the only dramatic beat in a three-day event, so it gets
   one: the marker pops, the stretch of track it sits on lights up in the team's
   colour, and the timing row flashes. All three decay on their own. */
@keyframes race-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.race-node.just-cleared .mark-plate,
.race-node.just-cleared .mark-rim,
.race-node.just-cleared .mark-art {
  animation: race-pop 900ms cubic-bezier(.2, 1.4, .4, 1);
  transform-origin: center;
}
.race-node.just-cleared .mark-rim { stroke: var(--gold2); stroke-width: 3.5; }

@keyframes race-sector-sweep {
  0%   { opacity: 0; }
  18%  { opacity: .95; }
  100% { opacity: 0; }
}
.race-flash-sector {
  fill: none;
  stroke-width: 17;
  stroke-linecap: round;
  opacity: 0;
  animation: race-sector-sweep 3s ease-out forwards;
  pointer-events: none;
}

@keyframes race-row-flash {
  0%, 100% { background: transparent; }
  20%      { background: rgba(245, 200, 66, .18); }
}
.race-tower-row.just-scored { animation: race-row-flash 2.4s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .race-node.just-cleared .mark-plate,
  .race-node.just-cleared .mark-rim,
  .race-node.just-cleared .mark-art,
  .race-tower-row.just-scored { animation: none; }
  .race-flash-sector { animation: none; opacity: .5; }
}

/* ── How to Play ─────────────────────────────────────────────────────────── */
/* A forced walkthrough on first visit after being drafted. There is no close
   button: the only way out is through it, which is the point — nobody submits
   until they have read the standards. */
body.tour-open { overflow: hidden; }

/* The header stays live above the walkthrough. Being unable to log out, switch
   event or reach the nav while a forced modal is up is its own trap — and it's
   the header, not the board, that people need during it. It lifts above the
   dimming rather than through a hole in it, so it reads as site chrome that
   simply isn't part of the tour. */
body.tour-open header { z-index: 4100; }

#race-tour { position: fixed; inset: 0; z-index: 4000; }

/* The spotlight. One ring with an enormous shadow dims everything outside it,
   which needs no mask and no scrim panels to keep in sync. */
.tour-spot {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(3, 6, 11, .8), 0 0 0 2px var(--gold2) inset;
  transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease;
  pointer-events: none;
}
/* With no target the whole screen dims instead. */
.tour-spot[style*="display: none"] + .tour-card::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 11, .8);
  z-index: -1;
}

.tour-card {
  position: absolute;
  width: min(380px, calc(100vw - 24px));
  background: linear-gradient(180deg, #1b2230, #12171f);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
  padding: 1rem 1.1rem 0.85rem;
}
.tour-card.centred {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
}
.tour-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold2);
  margin: .15rem 0 .5rem;
}
.tour-card p { font-size: .84rem; line-height: 1.55; color: var(--text2); }
.tour-step {
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text3); font-weight: 700;
}

.tour-standards { margin: .6rem 0 .2rem; padding: 0; list-style: none; }
.tour-standards li {
  position: relative;
  padding: .35rem 0 .35rem 1.25rem;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.tour-standards li:last-child { border-bottom: none; }
.tour-standards li::before {
  content: '✓';
  position: absolute; left: 0; top: .35rem;
  color: var(--gold2); font-weight: 700; font-size: .8rem;
}
/* Qualifications sit under their point rather than becoming points of their
   own — the list should read as six rules, not ten. */
.tour-standards li span {
  display: block;
  margin-top: .15rem;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--text3);
}
.tour-standards li.warn { color: #f8a09a; }
.tour-standards li.warn::before { content: '!'; color: var(--danger, #f85149); }
.tour-standards li.warn span { color: #c9847f; }

/* The worked example. Hidden until the image actually loads, so a missing file
   degrades to text instead of a broken box. */
.tour-example { margin: .7rem 0 0; }
.tour-example img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border2);
}
.tour-example figcaption {
  margin-top: .35rem;
  font-size: .72rem;
  line-height: 1.4;
  color: var(--text3);
}

/* The standards step is the long one; let it scroll rather than run off screen. */
.tour-card.centred { max-height: 86vh; overflow-y: auto; }

/* While the walkthrough is showing the real submit form, it sits under the
   spotlight and can't be sent. */
#submit-modal.tour-demo { z-index: 3900; }
#submit-modal.tour-demo .modal { pointer-events: none; }

.tour-ack {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: .8rem 0 .6rem;
  padding: .6rem .7rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(245, 200, 66, .07);
  font-size: .8rem; line-height: 1.45; color: var(--text);
  cursor: pointer;
}
.tour-ack input { margin-top: .2rem; accent-color: var(--gold2); flex-shrink: 0; }

.tour-nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: .75rem; }
.tour-nav .btn:disabled { opacity: .45; cursor: not-allowed; }

.tour-dots { display: flex; gap: .3rem; justify-content: center; margin-top: .7rem; }
.tour-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border2); display: block;
}
.tour-dots i.on { background: var(--gold2); }

@media (prefers-reduced-motion: reduce) {
  .tour-spot { transition: none; }
}

/* ── Example screenshot, full size ───────────────────────────────────────── */
.tour-example-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.tour-example-zoom {
  position: absolute;
  right: .4rem;
  bottom: .4rem;
  font-size: .66rem;
  color: var(--text);
  background: rgba(6, 9, 13, .8);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: .15rem .5rem;
  pointer-events: none;
}
.tour-example-btn:hover img { opacity: .85; }
.tour-example-btn:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }

/* Sits above the tour, because that's what it opens from. */
#shot-viewer {
  position: fixed;
  inset: 0;
  z-index: 4500;
  background: rgba(3, 6, 11, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
#shot-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
#shot-viewer .shot-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font: inherit;
  font-size: .76rem;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: .3rem .8rem;
  cursor: pointer;
}
#shot-viewer .shot-close:hover { color: var(--text); border-color: var(--gold2); }
