@font-face {
  font-family: "Monocraft";
  src: url("assets/font/monocraft-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Monocraft";
  src: url("assets/font/monocraft-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #000;
  --deep: #1f1f1f;
  --d37: #373737;
  --g55: #555;
  --g8b: #8b8b8b;
  --face: #c6c6c6;
  --white: #fff;
  --label: #404040;
  --dim: #aaa;
  --hover: #ffffa0;
  --veil-top: rgba(16, 16, 16, 0.66);
  --veil-bottom: rgba(16, 16, 16, 0.84);

  --t1: #866526;
  --t2: #95918d;
  --t3: #e3826c;
  --t4: #d8d8d8;
  --t5: #eaee57;
  --t6: #a945eb;
  --t7: #ee9e20;
  --t8: #336aeb;
  --t9: #2fd86d;
  --t10: #ef000b;

  --px: 2px;
  --gutter: 40px;
  --shadow: 2px 2px 0 #3f3f3f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: #101010;
  scrollbar-color: var(--g8b) var(--deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font: 400 18px/28px "Monocraft", monospace;
  color: var(--white);
  text-shadow: var(--shadow);
  -webkit-font-smoothing: none;
  font-variant-numeric: tabular-nums;
}

img,
canvas {
  image-rendering: pixelated;
}

::selection {
  background: #2b2bd9;
  color: var(--white);
  text-shadow: none;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--deep);
}

::-webkit-scrollbar-thumb {
  background: var(--face);
  border: 2px solid var(--black);
  box-shadow: inset 2px 2px var(--white), inset -2px -2px var(--g55);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--hover);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.sprites {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.world {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--veil-top), var(--veil-bottom)), var(--world) center / cover no-repeat, #101010;
}

.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
  filter: drop-shadow(var(--shadow));
}

.dim {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.flag {
  width: 24px;
  height: 24px;
  image-rendering: auto;
  vertical-align: -5px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
}

.sword {
  width: 32px;
  height: 32px;
  flex: none;
}

/* top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  /* the links keep one row; the search gives way first, down to the width of its placeholder */
  grid-template-columns: auto minmax(340px, 480px) minmax(max-content, 1fr);
  align-items: center;
  gap: 32px;
  padding: 12px var(--gutter);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 2px solid var(--black);
}

/* the brand in two tight lines, so the bar keeps the height the search field gives it */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

/* the credit under it, typed out letter by letter with the chat's underscore caret */
/* 16.5px, a little under the brand at the user's request, the one size off the 9px grid */
.byline {
  min-height: 20px;
  font-size: 16.5px;
  line-height: 20px;
  font-weight: 400;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.byline .caret {
  animation: caret 530ms steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.bar nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.bar nav a[aria-current] {
  color: var(--hover);
}

/* the account at the end of the bar: Sign in, or the signed-in player's face and name */
.bar nav .account-item {
  display: flex;
  align-items: center;
}

.bar nav .account.button {
  padding: 0 12px 2px;
}

.bar nav .account:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bar nav .account .head {
  width: 24px;
  height: 24px;
}

/* signed in, the face and name open a small menu under them, in the tooltip's purple like the
   search results: who Discord says they are, their profile, Sign out */
.bar nav .account-item {
  position: relative;
}

.bar nav button.account {
  padding: 0;
  border: 0;
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  cursor: pointer;
}

.bar nav button.account .chev {
  width: 12px;
  height: 12px;
  rotate: 90deg;
}

.bar nav button.account[aria-expanded="true"] .chev {
  rotate: -90deg;
}

.account-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: 320px;
  padding: 6px 12px 10px;
  border-style: solid;
  border-width: 4px;
  border-image: url("assets/gui/tooltip.png") 2 fill / 4px stretch;
  image-rendering: pixelated;
  background: #100010;
  background-clip: padding-box;
}

.account-menu[hidden] {
  display: none;
}

.account-menu .button {
  width: 100%;
  padding: 2px 12px 4px;
}

.bar nav {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu {
  display: none;
}

.search {
  position: relative;
}

.search label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/field.png") 1 fill / 2px;
  image-rendering: pixelated;
  color: var(--dim);
}

.search label:focus-within {
  border-image-source: url("assets/gui/field-focus.png");
  color: var(--white);
}

.search label > .icon {
  cursor: pointer;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  caret-color: var(--white);
  outline: none;
}

.search input::placeholder {
  color: var(--g8b);
  text-shadow: none;
}

.results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 4px 6px 6px;
  border-style: solid;
  border-width: 4px;
  border-image: url("assets/gui/tooltip.png") 2 fill / 4px stretch;
  image-rendering: pixelated;
  /* it opens over the page, so its fill is solid: nothing reads through it */
  background: #100010;
  background-clip: padding-box;
  container-type: inline-size;
}

.results[hidden] {
  display: none;
}

.results > a,
.results > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
}

/* a flag takes a sword's width, so player and map names start on the same line */
.results .flag {
  margin: 0 4px;
}

.results .active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--hover);
}

.results .off {
  color: var(--g8b);
  text-shadow: none;
}

.results small {
  margin-left: auto;
  font-size: inherit;
  color: var(--dim);
}

/* in a narrow list (the bar's, or any on a phone) the detail goes under the name, so neither has
   to wrap in half the width */
@container (max-width: 560px) {
  .results > a,
  .results > span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 10px;
  }

  .results > :is(a, span) > :first-child {
    grid-row: span 2;
  }

  .results small {
    margin-left: 0;
  }
}

/* windows */

.win {
  border-style: solid;
  border-width: 8px;
  border-image: url("assets/gui/win.png") 4 fill / 8px;
  image-rendering: pixelated;
  padding: 4px 6px 8px;
}

/* tier material window */

.win.material {
  border-image: var(--frame) 4 / 8px;
  background: var(--tex) 0 0 / 32px 32px repeat;
  background-clip: padding-box;
}

/* the title and the swords are cut into the block, both as deep, the block's own texture
   showing through. Light comes from the top left: the top and left walls in shade, stepped
   darker toward the floor, the bottom and right ones lit, a shadow cast on the floor */
.win.material .win-title {
  margin: 2px 0 8px;
  padding: 0 8px 0 2px;
  border-style: solid;
  border-width: 12px 4px 4px 12px;
  border-image: url("assets/gui/carve.png") 6 2 2 6 fill / 12px 4px 4px 12px;
  image-rendering: pixelated;
  color: var(--white);
  text-shadow: var(--shadow);
}

.win.material .well {
  padding: 6px 14px 14px 6px;
  border-width: 12px 4px 4px 12px;
  border-image: url("assets/gui/carve.png") 6 2 2 6 fill / 12px 4px 4px 12px;
}

.win.material .win-title small {
  color: var(--face);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.win.m1 { --tex: url("assets/gui/mat-1.png"); --frame: url("assets/gui/matframe-1.png"); }
.win.m2 { --tex: url("assets/gui/mat-2.png"); --frame: url("assets/gui/matframe-2.png"); }
.win.m3 { --tex: url("assets/gui/mat-3.png"); --frame: url("assets/gui/matframe-3.png"); }
.win.m4 { --tex: url("assets/gui/mat-4.png"); --frame: url("assets/gui/matframe-4.png"); }
.win.m5 { --tex: url("assets/gui/mat-5.png"); --frame: url("assets/gui/matframe-5.png"); }
.win.m6 { --tex: url("assets/gui/mat-6.png"); --frame: url("assets/gui/matframe-6.png"); }
.win.m7 { --tex: url("assets/gui/mat-7.png"); --frame: url("assets/gui/matframe-7.png"); }
.win.m8 { --tex: url("assets/gui/mat-8.png"); --frame: url("assets/gui/matframe-8.png"); }
.win.m9 { --tex: url("assets/gui/mat-9.png"); --frame: url("assets/gui/matframe-9.png"); }
.win.m10 { --tex: url("assets/gui/mat-10.png"); --frame: url("assets/gui/matframe-10.png"); }

.win-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 8px;
  font-size: 18px;
  font-weight: 400;
  color: var(--label);
  text-shadow: none;
}

.win-title small {
  font-size: inherit;
  color: var(--label);
}

.well {
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/well.png") 1 fill / 2px;
  image-rendering: pixelated;
  padding: 16px;
}

.tooltip {
  position: fixed;
  z-index: 50;
  max-width: 420px;
  padding: 6px 10px 8px;
  border-style: solid;
  border-width: 4px;
  border-image: url("assets/gui/tooltip.png") 2 fill / 4px stretch;
  image-rendering: pixelated;
  pointer-events: none;
  line-height: 26px;
}

.tooltip[hidden] {
  display: none;
}

/* a map's screenshot at the end of its tooltip */
.tip-shot {
  margin-top: 8px;
}

.tip-shot img {
  display: block;
  width: 288px;
  max-width: 100%;
  height: auto;
}

.tooltip b {
  display: block;
  margin-bottom: 4px;
}

.tooltip p {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.tooltip .hint {
  margin-top: 4px;
  color: var(--g8b);
  text-shadow: none;
}

/* pills */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 2px 10px 2px 8px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/pill.png") 1 fill / 2px;
  image-rendering: pixelated;
  white-space: nowrap;
  cursor: default;
}

a.pill {
  cursor: pointer;
}

.pill:hover,
.pill:focus-visible {
  border-image-source: url("assets/gui/pill-hover.png");
  color: var(--white);
}

.pill.ghost {
  border-image-source: url("assets/gui/pill-ghost.png");
  border-image-slice: 1;
  color: var(--dim);
}

.pill .tok {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.dot {
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--c1, var(--g8b));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.dot.blend {
  background: linear-gradient(135deg, var(--c1), var(--c2) 70%, var(--c3, var(--c2)));
}

.ghost .dot {
  background: none;
  box-shadow: inset 0 0 0 2px var(--g55);
}

/* slots, tier ladder */

.slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/slot.png") 1 fill / 2px;
  image-rendering: pixelated;
}

.slot img {
  width: 32px;
  height: 32px;
}

.slot.part img,
.slot.empty img {
  opacity: 0.35;
}

.slot.empty img {
  opacity: 0.18;
}

.socket {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/slot.png") 1 fill / 2px;
  image-rendering: pixelated;
}

.socket:empty {
  border-image-source: url("assets/gui/well.png");
}

.slot.full:not(.held) img {
  opacity: 0.8;
}

.slot.held {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

.slot.held::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(115deg, transparent 38%, rgba(190, 130, 255, 0.6) 50%, transparent 62%) 0 0 / 300% 100%;
  -webkit-mask: var(--sword) center / var(--glint, 32px) no-repeat;
  mask: var(--sword) center / var(--glint, 32px) no-repeat;
  mix-blend-mode: screen;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  from { background-position-x: 100%; }
  to { background-position-x: -100%; }
}

.slot.none {
  border-image-source: url("assets/gui/well.png");
}

.slot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.wear {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 4px;
  background: var(--black);
}

.wear i {
  display: block;
  height: 2px;
  width: var(--w);
  background: hsl(calc(var(--r) * 120) 100% 50%);
}

.ladder {
  display: grid;
  grid-template-columns: 168px repeat(10, 40px);
  align-items: center;
  gap: 4px 8px;
}

.ladder + .ladder {
  margin-top: 8px;
}

.ladder.numerals {
  margin-bottom: -2px;
  text-align: center;
  line-height: 20px;
}

@media (max-width: 1300px) {
  .ladder.numerals > :not(:nth-child(2), :nth-child(6), :last-child) {
    visibility: hidden;
  }
}

.ladder.numerals + .ladder {
  margin-top: 0;
}

.help {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.ladder .mode {
  display: grid;
  line-height: 22px;
}

.ladder .mode small {
  font-size: inherit;
  white-space: nowrap;
}

/* the profile's hero: the player in 3D from their own skin, standing on a small floating island of
   their hardest badge's tier material with fragments broken off it, all drawn in the same 3D scene;
   its tip is level with the foot of Tiers acquired beside it (the user, 2026-10-17: "tipo un
   piedistallo", then "qualcosa di piu carino con frammenti") */

.player-stand {
  --cube: 40px;
  --cap: 10px;
  --slab: calc(var(--cube) + var(--cap));
  position: relative;
  width: 400px;
  height: var(--floor, 380px);
  margin: 0;
}

.player-stand.m1 { --tex: url("assets/gui/mat-1.png"); }
.player-stand.m2 { --tex: url("assets/gui/mat-2.png"); }
.player-stand.m3 { --tex: url("assets/gui/mat-3.png"); }
.player-stand.m4 { --tex: url("assets/gui/mat-4.png"); }
.player-stand.m5 { --tex: url("assets/gui/mat-5.png"); }
.player-stand.m6 { --tex: url("assets/gui/mat-6.png"); }
.player-stand.m7 { --tex: url("assets/gui/mat-7.png"); }
.player-stand.m8 { --tex: url("assets/gui/mat-8.png"); }
.player-stand.m9 { --tex: url("assets/gui/mat-9.png"); }
.player-stand.m10 { --tex: url("assets/gui/mat-10.png"); }

/* the player and the island, never taller than beside a three-row Tiers acquired: where its ladders
   stack and the column grows, the room left is over their head; a drag turns them */
.ps-model {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: min(640px, 100%);
  opacity: 0;
  transition: opacity 300ms ease-out;
  cursor: grab;
  touch-action: pan-y;
}

.ps-model.shown {
  opacity: 1;
}

.ps-model:active {
  cursor: grabbing;
}

.ps-model:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: -2px;
}

/* without 3D, a slab stands in for the island: its texture shaded on the face and lifted on the
   top, as a podium block's */
.ps-slab {
  position: absolute;
  inset: auto 0 0;
  height: var(--slab);
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    var(--tex, url("assets/gui/mat-1.png")) 0 var(--cap) / var(--cube) var(--cube) repeat;
  image-rendering: pixelated;
}

.ps-slab::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--cap);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    var(--tex, url("assets/gui/mat-1.png")) 0 0 / var(--cube) var(--cap) repeat-x;
  image-rendering: pixelated;
}

/* the player's shadow on the top */
.ps-slab::after {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: calc(var(--cap) + 4px);
  background: radial-gradient(50% 100% at 50% 0, rgba(0, 0, 0, 0.5), transparent);
}

/* without 3D, the player's face standing in for them above the slab */
.player-stand .ps-face {
  position: absolute;
  left: 50%;
  bottom: calc(var(--slab) + 48px);
  width: 192px;
  height: 192px;
  translate: -50% 0;
}

/* tiles */

.tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-style: solid;
  border-width: 8px;
  border-image: var(--frame, url("assets/gui/tile-0.png")) 4 / 8px;
  image-rendering: pixelated;
  background: var(--art) center / cover no-repeat, var(--d37);
  transition: translate 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

a.tile:hover,
a.tile:focus-visible {
  translate: 0 -4px;
}

.tile.t0 { --frame: url("assets/gui/tile-0.png"); }
.tile.t1 { --frame: url("assets/gui/tile-1.png"); }
.tile.t2 { --frame: url("assets/gui/tile-2.png"); }
.tile.t3 { --frame: url("assets/gui/tile-3.png"); }
.tile.t4 { --frame: url("assets/gui/tile-4.png"); }
.tile.t5 { --frame: url("assets/gui/tile-5.png"); }
.tile.t6 { --frame: url("assets/gui/tile-6.png"); }
.tile.t7 { --frame: url("assets/gui/tile-7.png"); }
.tile.t8 { --frame: url("assets/gui/tile-8.png"); }
.tile.t9 { --frame: url("assets/gui/tile-9.png"); }
.tile.t10 { --frame: url("assets/gui/tile-10.png"); }

.tile-mark {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--hover);
}

.tile-tier {
  position: absolute;
  top: 4px;
  right: 4px;
}

/* your maps in the catalog: green for the ones you beat, as the tier pages tick what you hold,
   and the flag of the profile's progress rail for the ones you are climbing */
.tile-mark.beaten,
.you-mark.beaten,
.tooltip .you-won {
  color: var(--t9);
}

.tooltip .you-on {
  color: var(--hover);
}

.you-mark {
  display: inline-flex;
  flex: none;
  color: var(--hover);
}

.meta-map {
  font-weight: 700;
  white-space: normal;
  min-height: 48px;
}

/* layout */

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px var(--gutter) 64px;
}

.hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 56px;
  align-items: start;
}

.hero-side {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding-top: 8px;
}

.hero h1 {
  --lift: 12px;
  width: fit-content;
  max-width: 100%;
  font-size: 108px;
  line-height: 108px;
  font-weight: 700;
  color: var(--c1, var(--white));
  text-shadow: var(--lift) var(--lift) 0 color-mix(in srgb, var(--c1, #fff) 25%, #000);
  overflow-wrap: anywhere;
}

/* gradient names */

.name {
  color: var(--c1);
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--c1) 25%, #000);
}

.name.blend,
.hero h1.blend {
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c1)) 0 0 / 200% 100% repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6));
}

/* big titles draw their shadow and glow as copies of the text behind them,
   so the glow can fade with opacity instead of a filter that jumps */
.hero h1.blend {
  position: relative;
  filter: none;
  animation: flow 3s linear infinite;
}

.hero h1.blend::before,
.hero h1.blend::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-shadow: none;
  pointer-events: none;
}

.hero h1.blend::before {
  color: rgba(0, 0, 0, 0.55);
  -webkit-text-fill-color: rgba(0, 0, 0, 0.55);
  transform: translate(var(--lift), var(--lift));
}

.hero h1.blend::after {
  color: var(--c2);
  -webkit-text-fill-color: var(--c2);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 450ms ease-in-out;
}

.hero h1.blend.holo:hover::after {
  opacity: 0.8;
  transition: opacity 280ms ease-out;
}

.name.blend:hover,
:is(a, li, .who, .results a):hover > .name.blend {
  animation: flow 3s linear infinite;
}

@keyframes flow {
  to { background-position: 200% 0; }
}

.hero h1.badge-name {
  --lift: 6px;
  font-size: 54px;
  line-height: 60px;
}

/* a long player name steps down the type scale until it holds on one line, rather than breaking
   in the middle (fitName() in profile.js) */
.hero h1.fit-72 {
  --lift: 8px;
  font-size: 72px;
  line-height: 80px;
}

.hero h1.fit-54 {
  --lift: 6px;
  font-size: 54px;
  line-height: 60px;
}

.hero h1.fit-45 {
  --lift: 5px;
  font-size: 45px;
  line-height: 52px;
}

.hero h1.fit-36 {
  --lift: 4px;
  font-size: 36px;
  line-height: 40px;
}

.hero h1.fit-27 {
  --lift: 3px;
  font-size: 27px;
  line-height: 36px;
}

.favourite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: -12px;
}

/* badges */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0 2px 10px;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--label);
  text-shadow: none;
}

.seg > span {
  margin-right: 6px;
}

/* a select on a window face takes the window's label colour, as the buttons' label does */
.toolbar .gui-select > span {
  color: var(--label);
  text-shadow: none;
}

.button[aria-pressed="true"] {
  border-image-source: url("assets/gui/button-hover.png");
  color: var(--hover);
}

button.pill {
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  cursor: pointer;
}

.pill.picked {
  outline: 2px solid var(--hover);
}

.pill .first,
/* the crown's 8 pixels land on whole screen pixels at 16px */
.first {
  width: 16px;
  height: 16px;
  color: var(--hover);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--label);
  text-shadow: none;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check .box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/slot.png") 1 fill / 2px;
  image-rendering: pixelated;
  color: var(--white);
}

.check .box .icon {
  visibility: hidden;
}

.check input:checked + .box .icon {
  visibility: visible;
}

.check input:focus-visible + .box {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* badge page */

.rarity {
  display: grid;
  gap: 12px;
}

.rarity strong {
  font-size: 54px;
  line-height: 60px;
}

.meter {
  display: block;
  height: 16px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/slot.png") 1 / 2px;
  image-rendering: pixelated;
  background: var(--deep);
}

.meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c1), var(--c2, var(--c1)));
}

.holders {
  columns: 2 520px;
  column-gap: 40px;
}

.holders li {
  display: grid;
  grid-template-columns: 40px 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  break-inside: avoid;
}

.holders .who {
  flex-wrap: wrap;
  min-width: 0;
}

.holders li.none {
  display: block;
}

.holders li.you a {
  color: var(--hover);
}

/* a map's victors: the date, and the fails under it where the map counts them */
.victors .when {
  display: grid;
  justify-items: end;
}

.victors .when small {
  font-size: inherit;
}

/* a map beaten by many keeps its window: the list scrolls inside the well, in one column,
   as columns in a box of fixed height run off to the side. The padding is room for the *
   that hangs after a date with no exact day */
.victors {
  columns: auto;
  padding-right: 1ch;
  max-height: 412px;
  overflow-y: auto;
}

/* beside the route the furthest players keep their step; the day is in their tooltip */
.split aside .furthest li {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.split aside .furthest li > :last-child {
  display: none;
}

.collection .tier-row {
  grid-template-columns: var(--rowhead, 52px) minmax(0, 1fr);
}

.collection.by-map,
.collection.by-rarity,
.collection.by-date,
.collection.by-custom {
  --rowhead: 220px;
}

.collection .tier-row.bare {
  grid-template-columns: minmax(0, 1fr);
}

.row-label {
  display: grid;
  align-content: start;
  line-height: 24px;
  padding-top: 2px;
}

/* The owner's own arrangement: the view visitors open, Custom, and its editor. A saved
   view is a status with a green tick, as the tier pages tick what you hold. */
.win-title .seen-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.win-title .seen-by .icon {
  color: var(--t9);
}

/* the site did not keep it: the red of a server that cannot be reached, as on the search page */
.win-title .not-saved {
  align-self: center;
  color: #ff5555;
  text-shadow: 2px 2px 0 #3f1515;
}

/* on a phone it gets its own line under the buttons, so they keep theirs */
@media (max-width: 760px) {
  .win-title .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .win-title .not-saved {
    order: 1;
    flex-basis: 100%;
    text-align: right;
  }
}

/* the filters that rest while Custom is shown */
.toolbar .off {
  filter: brightness(0.62);
}

.toolbar .off,
.toolbar .off select {
  cursor: default;
}

.custom-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.custom-empty p {
  max-width: 64ch;
}

/* dark labels on the window face take no shadow, or the letters smear */
.edit-hint {
  margin: 0 2px 10px;
  color: var(--label);
  text-shadow: none;
}

.group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
}

.group-head .field {
  box-sizing: border-box;
  width: 100%;
}

.toolbar[hidden] {
  display: none;
}

.group-tools {
  display: flex;
  gap: 6px;
}

.button.tool {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
}

.group-tools .icon.up {
  rotate: -90deg;
}

.group-tools .icon.down {
  rotate: 90deg;
}

.drop {
  position: relative;
  min-height: 32px;
}

.drop > [hidden] {
  display: none;
}

.collection.editing .drop:empty::after {
  content: "Empty: pick a badge below and click here";
  line-height: 32px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.collection.editing .tier-row + .new-group {
  margin-top: 16px;
}

.drop > .pill {
  cursor: grab;
}

.holding .drop,
.holding .drop > .pill {
  cursor: grabbing;
}

/* with a badge in hand every place it can go gets a dashed edge, the one it is in now lit */
.holding .drop {
  outline: 2px dashed rgba(170, 170, 170, 0.55);
  outline-offset: 4px;
}

.holding .drop:has(> .lifted) {
  outline-color: var(--hover);
}

/* the badge in hand: lifted a pixel row, with the door face drop under it */
.drop > .pill.lifted {
  border-image-source: url("assets/gui/pill-hover.png");
  outline: 2px solid var(--hover);
  translate: 0 -4px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.holding .tooltip {
  display: none;
}

.pool-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 18px 2px 10px;
  color: var(--label);
  text-shadow: none;
}

.pool-head small {
  font-size: inherit;
}

.pool-head .gui-select > span {
  color: var(--label);
  text-shadow: none;
}

.pool-head .field {
  width: 224px;
  margin-left: auto;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts strong {
  font-weight: 700;
}

.lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.block {
  margin-top: 40px;
}

.block > .win-title {
  margin: 0 0 12px;
  color: var(--white);
  text-shadow: var(--shadow);
}

.block > .win-title small {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

/* a column per tile, a sixth of the width at least, so a short rail keeps its tiles the usual size
   from the left; when they don't fit the rail scrolls sideways. The padding keeps a lifted tile
   and the focus outline inside what the scrolling box shows */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(180px, calc((100% - 5 * 16px) / 6));
  gap: 16px;
  overflow-x: auto;
  margin: -6px -4px 0;
  padding: 6px 4px 10px;
}

.rail li {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.rail .meta {
  display: grid;
  justify-items: start;
  gap: 4px;
  line-height: 24px;
}

.rail .date {
  white-space: nowrap;
}

.rail .pill {
  gap: 8px;
  padding: 2px 8px 2px 6px;
}

.tier-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tier-tag {
  display: grid;
  justify-items: center;
  gap: 2px;
  line-height: 20px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.tier-row + .tier-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--d37);
}

.tier-row .tier-tag {
  margin-top: -4px;
}

/* a page to read (Privacy): a comfortable measure, one window per topic */
.read {
  max-width: 880px;
}

.read > .win {
  margin-top: 24px;
}

.read-well {
  display: grid;
  gap: 12px;
  line-height: 28px;
}

/* a link inside a sentence is underlined, as the game's chat underlines one */
.read-well a,
.options-hint a {
  text-decoration: underline 2px;
  text-underline-offset: 4px;
}

.foot {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

.foot-links {
  display: flex;
  gap: 24px;
}

/* links, so they stand out from the words beside them */
.foot-links a {
  color: var(--white);
}

.foot-links a:hover {
  color: var(--hover);
}

.head {
  width: 24px;
  height: 24px;
  flex: none;
  background: #8b8b8b;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  image-rendering: pixelated;
}

.target-flag {
  color: var(--hover);
}

/* map page */

.sword.small {
  width: 24px;
  height: 24px;
}

.mode-chip {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/slot.png") 1 fill / 2px;
  image-rendering: pixelated;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
  margin-top: 48px;
}

.split aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 24px;
}

.leg + .leg {
  margin-top: 8px;
}

.leg[open] + .leg,
.leg + .leg[open] {
  margin-top: 16px;
}

.leg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 4px 8px 6px;
  border-bottom: 2px solid var(--d37);
  cursor: pointer;
  list-style: none;
}

.leg-head::-webkit-details-marker {
  display: none;
}

.leg-head:hover {
  background: rgba(255, 255, 255, 0.05);
}

.leg-head .count {
  margin-left: auto;
  color: var(--hover);
}

.leg-head .count.dim {
  color: var(--dim);
}

.fold {
  width: 12px;
  height: 12px;
  transition: rotate 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.leg[open] .fold {
  rotate: 90deg;
}

.leg[open] > ol {
  margin-top: 4px;
}

.button {
  padding: 2px 12px 4px;
  border-style: solid;
  border-width: 4px;
  border-image: url("assets/gui/button.png") 2 fill / 4px;
  image-rendering: pixelated;
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-image-source: url("assets/gui/button-hover.png");
  color: var(--hover);
}

.win-title .button {
  margin-left: auto;
}

.win-title:has(.button) {
  justify-content: flex-start;
}

.win-title .actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.win-title .actions .button {
  margin-left: 0;
}

/* map and badge pages lead with the title, no card */

.hero.map-hero,
.hero.badge-hero {
  grid-template-columns: minmax(0, 1fr);
}

/* splash text on the map title, like the yellow line on the game's title screen */

.title {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.splash {
  position: absolute;
  left: calc(100% - 48px);
  bottom: 22px;
  z-index: 1;
  font-size: 27px;
  line-height: 32px;
  font-weight: 700;
  color: #ffff00;
  text-shadow: 3px 3px 0 #3f3f00;
  white-space: nowrap;
  transform: rotate(-17deg);
  animation: splash 450ms ease-in-out infinite alternate;
  cursor: default;
}

/* under the end of a name too long to leave it room on the right, as on a phone */
.splash.low {
  left: auto;
  right: 0;
  bottom: -18px;
  font-size: 18px;
  line-height: 24px;
  text-shadow: 2px 2px 0 #3f3f00;
}

.map-hero .title:has(.splash.low) {
  margin-bottom: 28px;
}

@keyframes splash {
  from { transform: rotate(-17deg) scale(1); }
  to { transform: rotate(-17deg) scale(1.08); }
}

.route-note {
  margin-top: 12px;
  padding: 0 8px;
}

.map-hero .win,
.badge-hero .win {
  max-width: 880px;
}

/* tier page: the ten tiers as a row of slots with this one lit; its name in its colour under its
   sword and numeral; its badges in a window of its own material, easiest first, yours marked */
.tier-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tier-steps .slot {
  width: 48px;
  height: 48px;
}

.tier-steps .slot:not(.here) img {
  opacity: 0.5;
}

.tier-steps .slot:hover img,
.tier-steps .slot:focus-visible img {
  opacity: 1;
}

.tier-steps .slot.here {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.hero h1.tier-name {
  --lift: 8px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 72px;
  line-height: 80px;
}

.tier-name .sword {
  width: 72px;
  height: 72px;
  flex: none;
}

/* the facts in two columns, the players then the badges, the numbers white on grey words */
.tier-facts {
  display: grid;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  justify-content: start;
  gap: 0 72px;
  color: var(--dim);
}

.tier-facts li {
  display: block;
}

.tier-facts strong {
  font-weight: 400;
  color: var(--white);
}

/* the title of the badges, and the gamemodes on its right */
.tier-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  margin: 0 0 12px;
}

.tier-bar .win-title {
  margin: 0;
  color: var(--white);
  text-shadow: var(--shadow);
}

.tier-bar .lb-filters {
  margin: 0;
}

/* the header and the rows share the columns: number, tick, gamemode, badge, EXP, holders */
.tier-head,
.tier-badges li {
  display: grid;
  grid-template-columns: 40px 48px 96px minmax(0, 1fr) 112px 144px;
  align-items: center;
  gap: 12px 20px;
}

.no-held .tier-head,
.no-held .tier-badges li {
  grid-template-columns: 40px 96px minmax(0, 1fr) 112px 144px;
}

/* the leaderboards' table: their solid well, with the tier's material only as the frame around it
   (Texyle: the texture behind the rows was too much), striped rows lit under the pointer */
.win.material .well.lb-body {
  padding: 6px 10px 10px;
  border-width: 2px;
  border-image: url("assets/gui/well.png") 1 fill / 2px;
}

.tier-badges li {
  padding: 5px 10px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.tier-badges li:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.tier-badges li:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tier-head {
  padding: 4px 10px 8px;
  border-bottom: 2px solid var(--d37);
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
  white-space: nowrap;
}

.tier-head .c-sort {
  display: none;
}

.tier-head .c-held,
.tier-head .c-mode {
  text-align: center;
}

.tier-head .c-exp {
  text-align: right;
}

.tier-badges .pill {
  justify-self: start;
}

.tier-badges .mode-chip {
  justify-self: center;
}

.tier-badges .worth {
  text-align: right;
}

/* "100 players" stays on one line */
.tier-badges .worth,
.tier-badges .held-by {
  white-space: nowrap;
}

.tier-badges li.none {
  display: block;
  cursor: auto;
  background: none;
}

.tier-badges .mine {
  justify-self: center;
  display: inline-flex;
  padding: 4px;
  border: 0;
  color: var(--t9);
  background: none;
}

.tier-badges .mine .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tier-head .short {
  display: none;
}

/* between a phone and a wide screen the gamemode column is only as wide as "Mode", and a long
   badge takes two lines */
@media (min-width: 761px) and (max-width: 1100px) {
  .tier-head,
  .tier-badges li {
    grid-template-columns: 40px 48px 48px minmax(0, 1fr) 96px 120px;
    column-gap: 12px;
  }

  .no-held .tier-head,
  .no-held .tier-badges li {
    grid-template-columns: 40px 48px minmax(0, 1fr) 96px 120px;
  }

  .tier-head .long {
    display: none;
  }

  .tier-head .short {
    display: inline;
  }

  .tier-badges .pill {
    white-space: normal;
    align-items: start;
  }

  .tier-badges .pill .dot {
    margin-top: 8px;
  }
}

/* who stopped here: two columns only where a name and its badge fit side by side */
.holders.stopped {
  columns: 2 620px;
}

.tooltip .tip-pill {
  margin: 2px 0 4px;
}

/* a line left empty over it, where a map's tooltip used to say "Badge" */
.tooltip .tip-pill.apart {
  margin-top: 28px;
}

.tooltip .pill {
  color: var(--white);
  text-shadow: var(--shadow);
}

.step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto 104px 24px;
  align-items: center;
  gap: 4px 12px;
  padding: 4px 8px;
  scroll-margin-top: 140px;
}

.step:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.step-mark {
  display: grid;
  color: var(--hover);
}

.step-value {
  text-align: right;
}

.step-who {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-bottom: 4px;
}

.step.held {
  background: rgba(255, 255, 160, 0.06);
}

.step:target {
  background: rgba(255, 255, 160, 0.14);
  outline: 2px solid var(--hover);
  outline-offset: -2px;
}

.step.victor {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--d37);
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.furthest {
  display: grid;
  gap: 6px;
}

.furthest li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 140px;
  align-items: center;
  column-gap: 16px;
}

.furthest li > :last-child {
  text-align: right;
}

.empty {
  display: grid;
  gap: 12px;
}

.empty .big {
  font-size: 27px;
  line-height: 36px;
  font-weight: 700;
}

.closest {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px solid var(--d37);
}

.closest a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* leaderboards */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.page-title {
  font-size: 72px;
  line-height: 80px;
  font-weight: 700;
  text-shadow: 8px 8px 0 #3f3f3f;
}

.lb-boards {
  display: flex;
  gap: 6px;
  padding-bottom: 8px;
}

.board-tab {
  padding: 6px 18px 8px;
  font-weight: 700;
}

.board-tab[aria-selected="true"] {
  border-image-source: url("assets/gui/button-hover.png");
  color: var(--hover);
}

.lb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  margin: 18px 0 0;
}

.lb-filters .seg > span,
.gui-select > span {
  margin-right: 6px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.gui-select {
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-face {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.select-face select {
  appearance: none;
  border: 0;
  padding: 2px 36px 4px 12px;
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  background: transparent;
  cursor: pointer;
}

.select-face select option {
  background: var(--deep);
}

/* the arrow is white like the text, whatever colour the label beside it takes */
.select-face .chev {
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  rotate: 90deg;
  color: var(--white);
  pointer-events: none;
}

.mode-phone {
  display: none;
}

/* the Country select with the player's own face beside it, as tall as the select */
.country-pick {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.my-country {
  display: grid;
  place-items: center;
  padding: 0 8px;
}

.my-country .head {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .country-pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .find-buttons .country-pick {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
  }
}

/* podium: the top three standing on blocks of gold, iron and copper, as in a server lobby */

.podium {
  --cube: 64px;
  --cap: 16px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  align-items: end;
  margin: 24px 0 16px;
  /* the empty sides of the 3D canvases must not widen the page */
  overflow-x: clip;
}

.podium[hidden] {
  display: none;
}

/* with no podium (badges, or a reversed board) the table keeps its distance from the filters */
.podium[hidden] + .lb-window {
  margin-top: 24px;
}

.podium-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  justify-items: center;
  align-content: end;
  color: var(--white);
  text-shadow: var(--shadow);
}

.podium-visual,
.podium-label {
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-shadow: inherit;
  background: none;
  cursor: pointer;
}

.podium-visual {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  transition: translate 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* flags and screenshots lift on hover; the 3D players are drawn by the stage and stay put */
.podium:not(.podium-players) :is(.podium-visual:hover, .podium-visual:focus-visible),
.podium:not(.podium-players) .podium-step:has(.podium-label:hover, .podium-label:focus-visible) .podium-visual {
  translate: 0 -6px;
}

.podium-label {
  display: block;
  width: 100%;
}

/* the name tag floating over the head, as in the game */
.podium-plate {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 2px 10px 4px;
  background: rgba(0, 0, 0, 0.4);
}

.podium-name {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-weight: 700;
  white-space: nowrap;
}

.place1 .podium-name {
  font-size: 27px;
  line-height: 32px;
}

.podium-value {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.podium-value .pill {
  min-width: 0;
}

.place1 .podium-value {
  color: var(--hover);
}

/* a player drawn in 3D from their skin, in a parkour move */
.pose {
  position: relative;
  display: block;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
}

/* one canvas over the whole podium, reaching above it for the jumps; players fade in once drawn */
.podium-stage {
  position: absolute;
  top: -260px;
  bottom: -60px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: calc(100% + 320px);
  opacity: 0;
  transition: opacity 250ms ease-out;
  pointer-events: none;
}

.podium-stage.shown {
  opacity: 1;
}

/* the shadow under the feet shrinks and fades as the player goes up */
.pose-shadow {
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 92px;
  height: 18px;
  translate: calc(-50% + var(--slide, 0px)) 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35) 60%, transparent);
  scale: calc(1 - var(--air, 0) * 0.45);
  opacity: calc(1 - var(--air, 0) * 0.55);
  pointer-events: none;
}

/* players come on one at a time: until then the step is empty and its name tag hidden */
.podium-plate {
  transition: opacity 200ms ease-out;
}

.podium-step.waiting .podium-plate,
.podium-step.waiting .pose-shadow {
  opacity: 0;
}

/* the white puff the game shows when something spawns, in front of the player */
.poof {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.poof i {
  position: absolute;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.12);
  opacity: 0;
}

/* experience orbs, square and glowing like the game's */
.orb {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #b9f53a;
  box-shadow: inset -3px -3px 0 #5aa50a, inset 3px 3px 0 #f2ff9a, 0 0 10px 2px rgba(190, 255, 80, 0.55);
  pointer-events: none;
}

/* dust on take-off and landing, square like the game's particles */
.dust {
  position: absolute;
  bottom: 0;
  left: 50%;
}

.dust i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #d9d4c4;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18);
  opacity: 0;
  animation: dust 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dust i:nth-child(1) { --dx: -46px; --dy: -10px; }
.dust i:nth-child(2) { --dx: -30px; --dy: -24px; animation-delay: 30ms; }
.dust i:nth-child(3) { --dx: -12px; --dy: -14px; }
.dust i:nth-child(4) { --dx: 10px; --dy: -26px; animation-delay: 50ms; }
.dust i:nth-child(5) { --dx: 26px; --dy: -12px; }
.dust i:nth-child(6) { --dx: 44px; --dy: -20px; animation-delay: 20ms; }
.dust i:nth-child(7) { --dx: -2px; --dy: -32px; animation-delay: 60ms; }

@keyframes dust {
  0% { opacity: 0.9; translate: 0 0; scale: 1; }
  100% { opacity: 0; translate: var(--dx) var(--dy); scale: 0.4; }
}

/* without 3D the face stands on the step */
.pose.flat .podium-head {
  position: static;
  display: block;
  margin: 0 auto 8px;
  translate: none;
}

.podium-head {
  width: 96px;
  height: 96px;
}

.podium-flag {
  width: 96px;
  height: 96px;
  margin: 0 auto 4px;
}

/* big blocks with a flat top seen from a little above; second place is a block and a slab */
.podium-block {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  width: 100%;
  height: calc(var(--rows) * var(--cube) + var(--cap));
  padding-top: calc(var(--cap) + 4px);
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    var(--tex) center var(--cap) / var(--cube) var(--cube) repeat;
  image-rendering: pixelated;
}

.podium-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--cap);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    var(--tex) center 0 / var(--cube) var(--cap) repeat-x;
  image-rendering: pixelated;
}

.podium-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: calc(var(--cap) + 4px);
  background: radial-gradient(50% 100% at 50% 0, rgba(0, 0, 0, 0.5), transparent);
}

/* players cast their own shadow */
.podium-players .podium-block::after {
  display: none;
}

.podium-block.m5 { --tex: url("assets/gui/mat-5.png"); --rows: 2; }
.podium-block.m4 { --tex: url("assets/gui/mat-4.png"); --rows: 1.5; }
.podium-block.m3 { --tex: url("assets/gui/mat-3.png"); --rows: 1; }

.podium-rank {
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  text-shadow: 4px 4px 0 #000;
}

.place1 .podium-rank {
  font-size: 54px;
  line-height: 60px;
  text-shadow: 6px 6px 0 #000;
}

/* the table */

.lb-window .win-title {
  align-items: center;
}

.lb-window .win-title small {
  margin-right: auto;
}

/* Players by [EXP] [Highest first] */
.rank-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lb-window .win-title .button {
  margin-left: 0;
}

.order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px 4px;
}

.sort-arrow {
  flex: none;
  width: 12px;
  height: 12px;
  rotate: 90deg;
}

.sort-arrow.up {
  rotate: -90deg;
}

/* all four margins: the search page's .find window would centre it and push it down */
.lb-window .find {
  margin: 0 0 0 auto;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  padding: 3px 8px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/field.png") 1 fill / 2px;
  image-rendering: pixelated;
  color: var(--dim);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  caret-color: var(--white);
  outline: none;
}

.field:focus-within {
  border-image-source: url("assets/gui/field-focus.png");
}

.field input::placeholder {
  color: var(--g8b);
  text-shadow: none;
}

.lb-body {
  padding: 6px 10px 10px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.lb-table th {
  padding: 4px 10px 8px;
  border-bottom: 2px solid var(--d37);
  font-weight: 400;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
  text-align: right;
  white-space: nowrap;
}

.lb-table th.c-lead,
.lb-table th.c-wide,
.lb-table th.c-rank {
  text-align: left;
}

.lb-table th button,
.tier-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-shadow: inherit;
  background: none;
  cursor: pointer;
}

.lb-table th button:hover,
.tier-head button:hover {
  color: var(--white);
}

.lb-table th button.sorted,
.tier-head button.sorted {
  color: var(--hover);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lb-table td {
  padding: 5px 10px;
  text-align: right;
  white-space: nowrap;
}

.lb-table .c-rank {
  width: 64px;
  text-align: left;
}

.lb-table td.c-lead {
  padding: 0 4px;
  text-align: left;
}

.lb-table td.c-wide {
  max-width: 340px;
  text-align: left;
}

.lb-table td.on {
  color: var(--hover);
  font-weight: 700;
}

.lb-table td small {
  font-size: inherit;
  color: var(--dim);
  font-weight: 400;
}

.lb-table td.c-num .socket {
  width: 26px;
  height: 26px;
  margin-right: 6px;
  vertical-align: middle;
}

.lb-table td.c-num .socket .sword {
  width: 20px;
  height: 20px;
}

.rank-line {
  cursor: pointer;
  scroll-margin-top: 96px;
}

.rank-line:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.lb-table .rank-line:hover,
.lb-list .rank-line:hover .row-open {
  background: rgba(255, 255, 255, 0.08);
}

.rank-line.open,
.lb-list .rank-line.open .row-open {
  background: rgba(255, 255, 160, 0.12);
}

.rank-line.flash {
  animation: found 900ms ease-out;
}

@keyframes found {
  from { background: rgba(255, 255, 160, 0.4); }
}

.row-open {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  border: 0;
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  text-align: left;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}

.rank {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.top .rank {
  color: var(--white);
  font-weight: 700;
  text-shadow: var(--shadow);
}

.top .rank .first {
  width: 16px;
  height: 16px;
}

.group-row td,
li.group-row {
  padding: 14px 10px 6px;
  border-bottom: 2px solid var(--d37);
  font-weight: 700;
  text-align: left;
}

.group-row td {
  display: table-cell;
}

.group-row .socket {
  margin-right: 10px;
  vertical-align: middle;
}

li.group-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill.cut {
  min-width: 0;
  max-width: 100%;
}

.pill.cut .pill-map {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.pill.cut .tok {
  flex: none;
}

/* old labels of removed roles can be long in the token too */
.pill.ghost.cut .tok {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* cut text fades out at the edge instead of ending in dots */
.pill-map.overflow,
.tok.overflow,
.row-open > .overflow,
.lead > .overflow {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}

.rank-empty,
.find-miss {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 12px;
}

.find-miss > p {
  color: var(--hover);
}

/* the detail that opens under a row */

.detail-row > td {
  padding: 0 0 14px;
  text-align: left;
  white-space: normal;
}

/* the detail takes the width the table already has, it never widens it */
.detail-row > td > .inline-detail {
  width: 0;
  min-width: 100%;
}

li.detail-row {
  padding: 4px 0 14px;
}

.inline-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 18px 20px;
  border-top: 2px solid var(--hover);
  background: rgba(0, 0, 0, 0.35);
}

.detail-visual {
  display: grid;
  place-items: center;
  min-width: 96px;
}

.detail-visual .tile {
  width: 280px;
}

.head.big {
  width: 96px;
  height: 96px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5);
}

.detail-info {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.detail-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  line-height: 40px;
}

.detail-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

.detail-actions .close {
  padding: 2px 8px 4px;
}

.detail-stats {
  width: auto;
  border-collapse: collapse;
}

.detail-stats th {
  width: 170px;
  padding: 5px 12px 5px 0;
  font-weight: 400;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
  text-align: left;
  white-space: nowrap;
}

.detail-stats td {
  padding: 5px 0;
  text-align: left;
  white-space: normal;
}

.detail-stats tr + tr {
  border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.detail-stats .pos {
  min-width: 260px;
  padding-left: 28px;
  text-align: left;
  white-space: nowrap;
}

.detail-stats .pos button {
  padding: 0;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--white);
  text-shadow: var(--shadow);
  text-align: left;
  background: none;
  cursor: pointer;
}

.detail-stats .pos button:hover {
  color: var(--hover);
}

.detail-stats .pos small {
  display: block;
  font-size: inherit;
  font-weight: 400;
  color: var(--dim);
  white-space: normal;
}

.detail-stats .socket {
  vertical-align: middle;
}

.detail-more {
  display: grid;
  gap: 6px;
}

.mini-ranks {
  display: grid;
  gap: 4px;
}

.mini-ranks li {
  display: grid;
  grid-template-columns: 28px 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.mini-value {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.inline-detail .rarity {
  max-width: 420px;
}

/* animations off, from the settings */
html.calm .tile,
html.calm .podium-stage {
  transition: none;
}

html.calm .slot.held::after,
html.calm .rank-line.flash,
html.calm .splash,
html.calm .hero h1.blend,
html.calm .name.blend {
  animation: none !important;
}

/* the links and the account fold into the Menu once they no longer fit beside the search */
@media (max-width: 1300px) {
  .bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .menu {
    display: block;
  }

  .bar nav ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    padding: 6px 10px 8px;
    border-style: solid;
    border-width: 4px;
    border-image: url("assets/gui/tooltip.png") 2 fill / 4px stretch;
    image-rendering: pixelated;
  }

  .bar nav.open ul {
    display: flex;
    align-items: stretch;
  }

  .bar nav a {
    display: block;
    padding: 6px 4px;
  }

  .bar nav .account.button {
    padding: 4px 12px 6px;
    text-align: center;
  }

  /* inside the bar's menu the account's own menu is simply open */
  .bar nav .account-item {
    display: grid;
  }

  .bar nav button.account .chev {
    display: none;
  }

  .account-menu,
  .account-menu[hidden] {
    position: static;
    display: grid;
    width: auto;
    max-width: none;
    padding: 4px 4px 0;
    border: 0;
    background: none;
  }
}

/* the profile and map heroes step down while the big title and its facts would still crowd */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 340px 1fr;
    gap: 40px;
  }

  .player-stand {
    width: 340px;
  }

  /* tilted, the figure needs the frame a little wider than this column is for its full height */
  .ps-model {
    height: min(592px, 100%);
  }

  .splash {
    left: calc(100% - 24px);
    bottom: 14px;
    font-size: 18px;
    line-height: 24px;
    text-shadow: 2px 2px 0 #3f3f00;
  }

  .rail {
    grid-auto-columns: max(168px, calc((100% - 3 * 16px) / 4));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split aside {
    position: static;
  }

  .hero h1 {
    --lift: 8px;
    font-size: 72px;
    line-height: 80px;
  }

  .ladder {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px 4px;
  }

  .ladder .mode {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .ladder.numerals > :first-child {
    display: none;
  }

  .ladder.numerals {
    margin-bottom: 4px;
  }

  .ladder .slot {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .ladder .slot img {
    width: 80%;
    height: 80%;
  }

  .ladder .slot {
    --glint: 80%;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .bar {
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
  }

  .bar .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  main {
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .hero-side {
    width: 100%;
  }

  .player-stand {
    width: min(340px, 100%);
  }

  .hero h1 {
    --lift: 6px;
    font-size: 54px;
    line-height: 60px;
  }

  .rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .rail li {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  .furthest li > :nth-child(3) {
    grid-column: 2;
  }

  .well {
    padding: 12px;
  }

  .win.material .well {
    padding: 2px 10px 10px 2px;
  }

  .win.material .well.lb-body {
    padding: 12px;
  }

  .step {
    grid-template-columns: 16px minmax(0, 1fr) 88px 24px;
  }

  .step > :nth-child(3) {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .step > :nth-child(3):empty {
    display: none;
  }

  .splash {
    left: auto;
    right: 0;
    bottom: -18px;
    font-size: 18px;
    line-height: 24px;
    text-shadow: 2px 2px 0 #3f3f00;
  }

  /* room under the title for the splash's low end, so it never lands on the facts */
  .map-hero .title {
    margin-bottom: 28px;
  }

  .facts li.built {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .hero h1.badge-name {
    --lift: 4px;
    font-size: 36px;
    line-height: 40px;
  }

  .pill {
    white-space: normal;
    align-items: start;
  }

  .pill .dot {
    margin-top: 8px;
  }

  .collection:not(.by-tier) .tier-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pool-head .field {
    width: 100%;
    margin-left: 0;
  }

  .group-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .furthest li {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .furthest li > :last-child {
    display: none;
  }

  .holders li {
    grid-template-columns: 32px 24px minmax(0, 1fr);
    row-gap: 0;
  }

  .tier-facts {
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  /* only the sortable columns are left in the header, as a line of choices */
  .tier-head,
  .no-held .tier-head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 4px 6px 8px;
  }

  .tier-head .c-sort {
    display: inline;
  }

  .tier-head .c-n,
  .tier-head .c-mode,
  .tier-head .c-badge {
    display: none;
  }

  /* the badge gets the first line, its EXP, holders and a tick if it is yours the second */
  /* spaced as the leaderboards' rows on a phone */
  .tier-badges li,
  .no-held .tier-badges li {
    grid-template-columns: 28px auto minmax(0, 1fr) auto;
    gap: 0 10px;
    padding: 5px 6px;
  }

  .tier-badges li > :first-child {
    grid-area: 1 / 1;
  }

  .tier-badges .pill {
    grid-area: 1 / 2 / 2 / -1;
  }

  .tier-badges .mode-chip {
    display: none;
  }

  .tier-badges .worth {
    grid-area: 2 / 2;
    text-align: left;
  }

  .tier-badges .held-by {
    grid-area: 2 / 3;
  }

  .tier-badges .mine {
    grid-area: 2 / 4;
  }

  .hero h1.tier-name {
    --lift: 4px;
    font-size: 36px;
    line-height: 40px;
  }

  .hero h1.tier-name {
    gap: 12px;
  }

  .tier-name .sword {
    width: 36px;
    height: 36px;
  }

  /* the ten tiers keep to one row */
  .tier-steps {
    gap: 2px;
  }

  .tier-steps .slot {
    width: 32px;
    height: 32px;
  }

  .tier-steps .slot img {
    width: 24px;
    height: 24px;
  }

  .holders li > :last-child {
    grid-column: 3;
  }
}

/* the name gives way first, the numbers stay whole; maps have the most columns */
.board-maps td.c-lead {
  width: 100%;
  max-width: 0;
}

.board-maps .row-open > * {
  flex: none;
}

.board-maps .row-open > :nth-child(2) {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 1300px) {
  .lb-table td.c-lead {
    width: 100%;
    max-width: 0;
  }

  .lb-table .row-open > * {
    flex: none;
  }

  .lb-table .row-open > :nth-child(2):not(.pill) {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 1200px) {
  .lb-table .c-wide:not(.on) {
    display: none;
  }

  .lb-table td.c-wide {
    max-width: 240px;
  }

  .lb-table:has(.c-wide.on) .c-minor:not(.on) {
    display: none;
  }

  .board-maps td small {
    display: none;
  }

  .inline-detail {
    gap: 20px;
  }

  .detail-stats th {
    width: 140px;
  }

  .detail-stats .pos {
    min-width: 0;
    padding-left: 20px;
  }

  .detail-stats .pos small {
    min-width: 180px;
  }
}

@media (max-width: 1100px) {
  .page-title {
    font-size: 54px;
    line-height: 60px;
    text-shadow: 6px 6px 0 #3f3f3f;
  }

  .board-maps .row-open > .socket {
    display: none;
  }
}

@media (max-width: 1000px) {
  .detail-stats .pos small {
    display: none;
  }

  .lb-table .c-minor:not(.on) {
    display: none;
  }
}

/* below this the table becomes a list, as on phones */
@media (max-width: 900px) {
  .lb-list {
    display: grid;
  }

  .lb-list .row-open {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 2px;
    white-space: normal;
  }

  .lb-list .lead {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }

  .lb-list .lead > * {
    flex: none;
  }

  .lb-list .lead > .pill {
    flex: 0 1 auto;
  }

  .lb-list .lead > :nth-child(2):not(.pill) {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .lb-list .line-value {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dim);
  }

  .inline-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .lb-head {
    display: block;
  }

  .page-title {
    font-size: 36px;
    line-height: 40px;
    text-shadow: 4px 4px 0 #3f3f3f;
    margin-bottom: 12px;
  }

  .lb-boards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .board-tab {
    padding: 4px 0 6px;
  }

  .lb-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
  }

  .lb-filters .seg {
    display: none;
  }

  .mode-phone {
    display: block;
  }

  .gui-select {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .gui-select .select-face,
  .gui-select .select-face select {
    width: 100%;
  }

  .podium {
    --cube: 32px;
    --cap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 24px;
  }

  .pose-shadow {
    bottom: -4px;
    width: 40px;
    height: 8px;
  }

  /* the left column ends near the screen edge here, so the wheel turns a little to the right */
  .pose.aerial .dust,
  .pose.aerial .pose-shadow {
    left: calc(50% + 30px);
  }

  .podium-head,
  .podium-flag {
    width: 64px;
    height: 64px;
  }

  .podium-plate {
    padding: 2px 4px 4px;
  }

  .podium-name,
  .place1 .podium-name {
    font-size: 18px;
    line-height: 24px;
  }

  .podium-name {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .podium-value {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  /* a badge under a name breaks over lines instead of widening the step */
  .podium-value .pill {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 6px;
    padding: 0;
    border: 0;
    border-image: none;
    white-space: normal;
  }

  .podium-value .pill .tok {
    white-space: normal;
  }

  .podium-block {
    padding-top: calc(var(--cap) + 2px);
  }

  .podium-rank,
  .place1 .podium-rank {
    font-size: 27px;
    line-height: 32px;
    text-shadow: 3px 3px 0 #000;
  }

  .lb-window .win-title {
    flex-wrap: wrap;
  }

  .lb-window .win-title small {
    display: block;
    white-space: normal;
  }

  .lb-window .find,
  .field {
    width: 100%;
  }

  .inline-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 14px 12px;
  }

  .detail-visual .tile {
    width: 100%;
  }

  .detail-name {
    font-size: 27px;
    line-height: 32px;
  }

  .detail-top {
    flex-wrap: wrap;
  }

  .detail-top > div:first-child {
    flex: 1 1 180px;
  }

  .detail-stats th {
    width: auto;
  }

  .detail-stats tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 4px 0;
  }

  .detail-stats th,
  .detail-stats td {
    padding: 0;
  }

  .detail-stats td:not(.pos) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .detail-stats .pos {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-left: 0;
    text-align: right;
  }

  .detail-stats .pos small {
    display: none;
  }

  .pill.cut .pill-map {
    overflow: visible;
    white-space: normal;
  }

  /* in the list a badge name is the thing to read, so it wraps inside its pill like a line of text */
  .lb-list .pill.cut {
    display: block;
    white-space: normal;
  }

  .lb-list .pill.cut .dot {
    display: inline-block;
    margin-right: 8px;
    vertical-align: 1px;
  }

  .lb-list .pill.cut .pill-map {
    overflow: visible;
    white-space: normal;
  }
}

/* a day the bot did not record exactly */
/* the star hangs past the end, so starred and plain days keep their digits in one column */
.day {
  white-space: nowrap;
}

.star {
  margin-right: -1ch;
  cursor: help;
}

.star-note {
  margin: 8px 2px 0;
}

/* under a list on the window face it is a label like the window's others */
.win > .star-note {
  color: var(--label);
  text-shadow: none;
}

/* activity: the log in the leaderboards' window on the left (Texyle: the page's focus), the
   game's own HUD on the right, toasts and the scoreboard for the last 30 days */

.world {
  transition: opacity 1s ease-in-out;
}

.world.fresh {
  opacity: 0;
}

.act-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.act-window {
  min-width: 0;
}

.hud-side,
.score-boards {
  display: grid;
  gap: 24px;
}

/* what the column counts, level with the log's title */
.side-head {
  padding-top: 10px;
}

.side-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.side-head .score-scope {
  padding: 0;
  text-align: left;
}

/* Show and the search, under the log's title on the window face */
.act-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: 0 2px 8px;
}

.act-tools .dim {
  color: var(--label);
  text-shadow: none;
}

.chat-find {
  flex: 1 1 0;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 8px;
  border-style: solid;
  border-width: 2px;
  border-image: url("assets/gui/field.png") 1 fill / 2px;
  image-rendering: pixelated;
  color: var(--dim);
}

.chat-find:focus-within {
  border-image-source: url("assets/gui/field-focus.png");
  color: var(--white);
}

.chat-find input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  caret-color: var(--white);
  outline: none;
}

.chat-find input::placeholder {
  color: var(--g8b);
  text-shadow: none;
}

.chat-find input::-webkit-search-cancel-button {
  display: none;
}

.chat-find .clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  color: var(--dim);
  background: none;
  cursor: pointer;
}

.chat-find .clear[hidden] {
  display: none;
}

.chat-find .clear:hover {
  color: var(--hover);
}

.chat-find .clear .icon {
  width: 12px;
  height: 12px;
}

.chat-show {
  flex: none;
}

.act-day + .act-day {
  margin-top: 8px;
}

/* each day's bar stays under the top bar while its lines scroll by */
.day-bar {
  position: sticky;
  top: var(--bar, 70px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  padding: 6px 12px 8px;
  font-size: 18px;
  font-weight: 700;
  background: var(--deep);
  border-bottom: 2px solid var(--d37);
}

.day-bar .dim {
  font-weight: 400;
}

.act-lines {
  padding: 4px 0 8px;
}

.act-line {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 10ch;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
}

.act-line > .act-exp {
  grid-column: 3;
  justify-self: end;
}

/* the line between what is new and what was there at the last visit */
.seen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 0 12px;
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.seen-bar::after {
  content: "";
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: var(--hover);
}

.seen-bar .icon {
  rotate: -90deg;
}

/* at the top of the log: how much is new, and a way down to where it ends */
.seen-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 12px;
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
  background: rgba(255, 255, 160, 0.06);
}

/* the count of what is new, at the top of the log */
.news {
  margin-bottom: 8px;
}

.news:empty {
  display: none;
}

.new-tag {
  margin-left: 12px;
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.act-line:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.act-line:hover {
  background: rgba(255, 255, 255, 0.08);
}

.act-line.big {
  background: rgba(255, 255, 160, 0.06);
}

.act-line.big:hover {
  background: rgba(255, 255, 160, 0.1);
}

.act-line.flash {
  animation: found 900ms ease-out;
}

.act-text {
  min-width: 0;
  overflow-wrap: break-word;
}

.act-text .who {
  vertical-align: top;
}

.act-text .flag {
  margin-left: -2px;
}

a.bk:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.bk.plain {
  color: var(--white);
}

.act-note {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
  white-space: nowrap;
}

.act-note.crowned {
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.act-note .first,
.act-rank .first {
  margin-right: 6px;
  vertical-align: -1px;
}

.act-rank {
  font-weight: 700;
}

.act-rank.top {
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.builder {
  font-weight: 700;
}

/* EXP in the game's experience green */
.act-exp {
  color: #b9f53a;
  text-shadow: 2px 2px 0 #2e3d0e;
  white-space: nowrap;
}

.act-exp.total {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

/* advancement frames around the slot, as the game marks an advancement's kind: cut corners for
   a goal, spikes for a challenge. The slot inside stays as it is, so the sword reads the same */
.kind {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -4px;
  background: url("assets/gui/frame-goal.png") center / 40px 40px no-repeat;
  image-rendering: pixelated;
}

.kind.challenge {
  width: 48px;
  height: 48px;
  margin: -8px;
  background-image: url("assets/gui/frame-challenge.png");
  background-size: 48px 48px;
}

.kind .icon {
  rotate: -90deg;
}

.socket > .head {
  width: 24px;
  height: 24px;
  box-shadow: none;
}

/* a big moment's sword shines like an enchanted item. The shine is a violet copy of the sword
   seen through a moving band, so it needs no mask (masks are blocked on pages opened from disk) */
.glint {
  position: relative;
}

.glint .sheen {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  filter: grayscale(1) brightness(1.8) sepia(1) hue-rotate(225deg) saturate(4);
  opacity: 0.75;
  mix-blend-mode: screen;
  clip-path: polygon(-60% 0, -30% 0, -50% 100%, -80% 100%);
  animation: sheen 4s linear infinite;
  pointer-events: none;
}

@keyframes sheen {
  50%,
  to { clip-path: polygon(130% 0, 160% 0, 140% 100%, 110% 100%); }
}

.act-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 40px 24px 48px;
}

.act-empty .big {
  font-size: 27px;
  line-height: 36px;
  font-weight: 700;
}

.act-empty .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* toasts slide in from the right edge, as the game shows an advancement */
.toasts {
  display: grid;
  gap: 8px;
  margin: -4px;
  padding: 4px;
  overflow: clip;
}

.toasts[hidden] {
  display: none;
}

.toast {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: 6px 12px 8px 10px;
  border-style: solid;
  border-width: 6px;
  border-image: url("assets/gui/toast.png") 3 fill / 6px;
  image-rendering: pixelated;
  font: inherit;
  text-align: left;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  cursor: pointer;
  transition: translate 300ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: toast-in 500ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 160ms + 150ms) both;
}

.toast > :first-child {
  align-self: center;
}

.toast:hover,
.toast:focus-visible {
  translate: -6px 0;
}

.nowrap {
  white-space: nowrap;
}

@keyframes toast-in {
  from { translate: 110% 0; }
}

@keyframes toast-fade {
  from { opacity: 0; }
}

.toast-text {
  display: grid;
  min-width: 0;
}

.toast-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 12px;
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.toast-main {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.toast-sub {
  overflow-wrap: anywhere;
}

/* the moment: the map's screenshot in its tier frame, the player in 3D on a block of the tier's
   material in front of it, and its toast under them */
.moment {
  --cube: 32px;
  --cap: 8px;
  --figure: 210px;
  --spot-right: 40px;
  /* how far the ledge reaches below the screenshot's bottom edge */
  --overhang: 32px;
  display: grid;
  gap: calc(var(--overhang) + 12px);
  margin-bottom: 16px;
}

.moment[hidden] {
  display: none;
}

.moment-art {
  position: relative;
}

.moment-art > .tile {
  width: 100%;
}

/* the screenshot darkens toward the side the player stands on, so the player stands out from it */
.moment-art > .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(0, 0, 0, 0.6) 75%);
  pointer-events: none;
}

.moment-art .tile-tier {
  z-index: 1;
}

/* a ledge of the tier's blocks, shaded like the podium's, that the screenshot stands on and the
   player stands in front of; one texture pixel is one GUI pixel */
.moment-ledge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--overhang));
  height: calc(var(--cube) + var(--cap));
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    var(--tex) 0 var(--cap) / var(--cube) var(--cube) repeat;
  image-rendering: pixelated;
}

.moment-ledge.plain {
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(90deg, var(--g8b) 0 calc(var(--cube) - 2px), var(--g55) calc(var(--cube) - 2px) var(--cube));
}

.moment-ledge.plain::before {
  background: var(--face);
}

.moment-ledge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--cap);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    var(--tex) 0 0 / var(--cube) var(--cap) repeat-x;
  image-rendering: pixelated;
}

.moment-spot {
  position: absolute;
  right: var(--spot-right);
  bottom: calc(var(--cube) + var(--cap) - var(--overhang));
  width: var(--figure);
  height: var(--figure);
  pointer-events: none;
}

.moment-figure {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  opacity: 0;
  transition: opacity 250ms ease-out;
  pointer-events: none;
}

.moment-figure.shown {
  opacity: 1;
}

.moment-spot .pose-shadow {
  bottom: -6px;
  width: 56px;
  height: 12px;
}

/* the game's floating name tag over the player, on once the player is there */
.moment-tag {
  position: absolute;
  right: calc(var(--spot-right) + var(--figure) / 2);
  bottom: calc(var(--cube) + var(--cap) - var(--overhang) + var(--figure) * 0.85 + 6px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px 4px;
  translate: 50% 0;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 200ms ease-out;
  pointer-events: none;
}

.moment-art.here .moment-tag {
  opacity: 1;
}

.toast-title .act-exp.waiting {
  visibility: hidden;
}

/* the game's experience bar on the moment's toast: the place on the EXP board in green over a
   segmented bar, drawn here in the GUI ramp and the experience green */
.xp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.xp-level {
  min-width: 4ch;
  font-weight: 700;
  color: #b9f53a;
  text-shadow: 2px 2px 0 #2e3d0e;
}

.xp-bar {
  position: relative;
  flex: 1;
  height: 14px;
  border: 2px solid var(--black);
  background: var(--deep);
}

.xp-bar i {
  position: absolute;
  inset: 0;
  background: #b9f53a;
  box-shadow: inset 0 2px 0 #f2ff9a, inset 0 -2px 0 #5aa50a;
  transform-origin: left;
}

/* the bar's notches, as in the game */
.xp-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--black) calc(10% - 2px) 10%);
  pointer-events: none;
}

.socket.mode {
  font-weight: 700;
  color: var(--white);
}

.moment-head {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 64px;
  translate: -50% 0;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5);
}

/* the moment's own toast fades in with it; sliding would push past the page edge */
.moment .toast {
  animation-name: toast-fade;
}

/* the scoreboard, as a server shows it down the side: see-through black, a darker title row */
.score {
  background: rgba(0, 0, 0, 0.4);
}

.score-title {
  padding: 6px 12px 8px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  text-align: center;
  background: rgba(0, 0, 0, 0.62);
}

.score-sub,
.score-scope {
  padding: 8px 12px 0;
  text-align: center;
}

.score-scope {
  padding-top: 2px;
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.score-rows {
  display: grid;
  padding: 8px 12px 10px;
}

.score-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.score-rows li.none {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.score-rows b {
  font-weight: 700;
}

.score-rows li:has(.follow[aria-pressed="true"]) {
  margin: 0 -12px;
  padding: 0 12px;
  background: rgba(255, 255, 160, 0.12);
}

.score-none {
  padding: 12px 12px 14px;
  text-align: center;
}

.follow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  font: inherit;
  text-align: left;
  color: var(--white);
  text-shadow: var(--shadow);
  background: none;
  cursor: pointer;
}

.follow:hover > span:not(.name, .socket) {
  color: var(--hover);
}

.follow:hover > .name.blend {
  animation: flow 3s linear infinite;
}

/* animations off, from the settings */
html.calm .world,
html.calm .toast {
  transition: none;
}

html.calm .toast,
html.calm .moment-figure,
html.calm .moment-tag,
html.calm .glint .sheen,
html.calm .act-line.flash,
html.calm .follow:hover > .name.blend {
  animation: none;
}

/* narrower, the last 30 days come first, the log under them: a log that grows as it scrolls
   would leave anything under it out of reach */
@media (max-width: 1100px) {
  .act-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "head head" "art hero" "art toasts" "boards boards" "log log";
  }

  .hud-side,
  .moment {
    display: contents;
  }

  .side-head {
    grid-area: head;
    padding-top: 0;
  }

  .moment-art {
    grid-area: art;
    margin-bottom: var(--overhang);
  }

  .moment > .toast {
    grid-area: hero;
  }

  .toasts {
    grid-area: toasts;
    align-content: start;
  }

  .score-boards {
    grid-area: boards;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .act-window {
    grid-area: log;
  }
}

@media (max-width: 760px) {
  .act-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "moment" "toasts" "boards" "log";
  }

  .moment {
    --figure: 150px;
    --spot-right: 24px;
    display: grid;
    grid-area: moment;
    margin-bottom: 0;
  }

  .moment-art,
  .moment > .toast {
    grid-area: auto;
    margin-bottom: 0;
  }

  /* the name tag stands where the tier socket would be; the toast shows the tier */
  .moment-art .tile-tier {
    display: none;
  }

  .act-note {
    white-space: normal;
  }

  /* the toasts become a row to swipe, the next one peeking in */
  .toasts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow: auto hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  /* in a row that scrolls, sliding in from the side would scroll it, so they fade in */
  .toast {
    scroll-snap-align: start;
    animation-name: toast-fade;
  }

  /* the three scoreboards are a swipe row too, so the log is not pushed far down */
  .score-boards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 8px;
    overflow: auto hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  .score-boards > .score {
    scroll-snap-align: start;
  }

  .chat-show {
    flex: 1 1 100%;
  }

  .act-tools .seg {
    display: none;
  }

  .act-tools .mode-phone .gui-select {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .day-bar {
    padding: 6px 10px 8px;
  }

  .act-line {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 2px 12px;
    padding: 8px 10px;
  }

  .act-line > .act-exp {
    grid-column: 2;
  }
}

/* maps: the server's map list as framed screenshots, grouped by gamemode in the bot's order */

.lb-count {
  margin-top: 12px;
}

.map-tools {
  gap: 10px 12px;
}

.map-tools .find {
  margin: 0 0 0 auto;
}

.map-tools .tools-break {
  flex-basis: 100%;
}

.map-tools .find .field {
  width: 224px;
}

/* the tier select keeps one width instead of growing to its longest name */
.map-tools .tier .select-face {
  width: 200px;
}

.map-tools .tier select {
  width: 100%;
  /* a long tier name fades out before the arrow, as cut text does everywhere on the site */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent calc(100% - 36px));
  mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent calc(100% - 36px));
}

/* group heads stick under the top bar while their maps scroll by, as Activity's day bars do
   (Texyle's request), so the eye always knows which list it is in */
.map-group {
  margin-top: 40px;
}

.map-group:first-child {
  margin-top: 24px;
}

.list-head {
  position: sticky;
  top: var(--bar, 70px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 16px;
  padding: 6px 12px 8px;
  background: var(--deep);
  border-bottom: 2px solid var(--d37);
  font-size: 27px;
  line-height: 36px;
  font-weight: 700;
  text-shadow: 3px 3px 0 #3f3f3f;
}

.list-head .dim {
  font-size: 18px;
  font-weight: 400;
  text-shadow: 2px 2px 0 #2a2a2a;
}

/* a sub-group's heading stops right under its group's heading */
.sub-head {
  position: sticky;
  top: calc(var(--bar, 70px) + var(--group-head, 52px));
  z-index: 1;
  margin: 24px 0 12px;
  padding: 4px 12px 6px;
  font-size: 18px;
  font-weight: 700;
  background: var(--deep);
  border-bottom: 2px solid var(--d37);
}

.sub-head span {
  font-weight: 400;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}

.map-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.map-card .meta {
  display: grid;
  justify-items: start;
  gap: 2px;
  line-height: 24px;
}

.map-link {
  display: block;
}

a.map-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.map-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.map-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.unbeaten,
.map-facts .on {
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

/* "7 victors, 23 climbing" or "Furthest" is the card's line in bold, not the builders (Texyle) */
.map-facts {
  font-weight: 700;
}

/* the open challenges: the unbeaten maps, with who stands furthest on each */
.challenges .who {
  gap: 6px;
  min-width: 0;
}

.challenges .who .head {
  width: 20px;
  height: 20px;
}

.map-card .builder {
  max-width: 100%;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
}

.map-card .builder.cut {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}

/* a map with no screenshot yet keeps its frame, with the words where the picture would be */
.tile.blank {
  display: grid;
  place-items: center;
  text-align: center;
}

.tile.blank > .dim {
  padding: 0 12px;
}

/* list view: the window keeps the same distance from the tools as the first group head */
#catalog > .lb-window {
  margin-top: 24px;
}

/* fixed columns, so the map name is what gives way, cut with the site's fade */
.map-table {
  table-layout: fixed;
}

.col-hardest { width: 96px; }
.col-exp { width: 72px; }
.col-victors { width: 100px; }
.col-players { width: 112px; }
.col-steps { width: 80px; }
.col-avg { width: 120px; }
.col-fails { width: 84px; }
.col-newest { width: 142px; }
.col-builder { width: 160px; }

.map-table td.c-lead {
  padding: 3px 4px;
}

.map-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.map-cell .map-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.map-cell .map-name.cut {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}

.map-cell .dim {
  flex: none;
}

.thumb {
  flex: none;
  width: 48px;
  height: 30px;
  border: 2px solid var(--d37);
  background: var(--art, none) center / cover no-repeat, var(--d37);
}

/* a long builder list is cut with the site's fade, never with dots */
.map-table td.c-wide > span {
  display: block;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
}

.map-table td.c-wide > span.cut {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}

@media (max-width: 1100px) {
  .map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-table .c-wide,
  .map-table col:last-child,
  .map-table th:nth-child(7),
  .map-table td:nth-child(7),
  .map-table col:nth-child(7),
  .map-table th:nth-child(8),
  .map-table td:nth-child(8),
  .map-table col:nth-child(8) {
    display: none;
  }
}

@media (max-width: 760px) {
  .map-tools .tools-break {
    display: none;
  }

  .map-tools {
    display: grid;
    gap: 10px;
  }

  .map-tools .seg {
    display: none;
  }

  .map-tools .find,
  .map-tools .field,
  .map-tools .find .field,
  .map-tools .tier .select-face {
    width: 100%;
    margin-left: 0;
  }

  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  /* a narrow blank tile keeps its words clear: the frame colour already says the tier */
  .tile.blank .tile-tier {
    display: none;
  }

  .list-head {
    flex-wrap: nowrap;
    padding: 4px 10px 6px;
    font-size: 18px;
    line-height: 28px;
    text-shadow: 2px 2px 0 #3f3f3f;
  }

  .list-head > span {
    white-space: nowrap;
  }

  .head-more {
    display: none;
  }

  .sub-head {
    padding: 4px 10px 6px;
  }

  /* on a phone the sub-head keeps to its name, so it stays one line; each map's tooltip says what the list is */
  .sub-head > span {
    display: none;
  }

  /* phones keep the map, its tier and its victors */
  .map-table th:nth-child(n + 5),
  .map-table td:nth-child(n + 5),
  .map-table col:nth-child(n + 5),
  .map-table th:nth-child(3),
  .map-table td:nth-child(3),
  .map-table col:nth-child(3) {
    display: none;
  }

  .col-hardest {
    width: 72px;
  }

  .col-victors {
    width: 84px;
  }

  .map-table .thumb {
    display: none;
  }

  /* on a phone the name wraps instead of being cut */
  .map-table td.c-lead,
  .map-cell .map-name {
    white-space: normal;
    overflow: visible;
  }

  .map-cell {
    padding: 4px 0;
  }
}

/* home: a stage that turns through the six hardest maps, over the world of the one shown; then the
   search, a door to each part of the site, the newest victories as a hotbar and a beacon */

/* the world of the map on the stage, veiled by its brightness (index.js) and darker still on the
   left, behind the words, so the sharp picture in its frame is the brightest thing on the page */
.home .world {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0) 62%),
    linear-gradient(var(--home-veil, rgba(16, 16, 16, 0.6), rgba(16, 16, 16, 0.8))),
    var(--world) center / cover no-repeat,
    #101010;
}

/* past the stage the world darkens, as the game's panorama does behind its other screens */
.home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(16, 16, 16, 0.5);
  pointer-events: none;
  transition: opacity 600ms ease-out;
}

.home.stage-on::after {
  opacity: 0;
}

/* the bar is solid here, so the screens scrolling under it never mix with its text */
.home .bar {
  background: #0c0c0c;
}

/* the bar's search button, for phones only */
.bar-find {
  display: none;
  place-items: center;
  padding: 4px 10px 6px;
}

.bar-find .icon {
  width: 20px;
  height: 20px;
}

/* the top bar's search waits while the big one is on screen */
.home .bar .search {
  transition: opacity 200ms ease-out, visibility 200ms;
}

.home.hero-search-on .bar .search {
  visibility: hidden;
  opacity: 0;
}

/* the tier materials, for the beacon's layers */
.home .m1 { --mat: url("assets/gui/mat-1.png"); }
.home .m2 { --mat: url("assets/gui/mat-2.png"); }
.home .m3 { --mat: url("assets/gui/mat-3.png"); }
.home .m4 { --mat: url("assets/gui/mat-4.png"); }
.home .m5 { --mat: url("assets/gui/mat-5.png"); }
.home .m6 { --mat: url("assets/gui/mat-6.png"); }
.home .m7 { --mat: url("assets/gui/mat-7.png"); }
.home .m8 { --mat: url("assets/gui/mat-8.png"); }
.home .m9 { --mat: url("assets/gui/mat-9.png"); }
.home .m10 { --mat: url("assets/gui/mat-10.png"); }

/* The home is a column of sections, each opened by a centred heading: the title, then the six
   hardest maps, then the search and doors, then the newest victories and the climb. Sections stand
   56px apart near the top and 96px further down, the things inside one 12 to 20px apart, so the
   eye sees the blocks before the things in them.
   The stage shows one of the six hardest maps at a time. Its world fills the page behind; under its
   heading, its sharp picture sits in a frame on the right with the player in front of it, and the
   words on the left say how much of it is left, or who beat it first. The words keep the height of
   the longest of the six (index.js), so nothing under the stage moves when it turns. */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 600px);
  grid-template-areas: "title title" "words side";
  justify-content: space-between;
  align-items: start;
  gap: 20px 72px;
  max-width: 1240px;
  margin: 56px auto 0;
}

.stage-title {
  grid-area: title;
  justify-self: center;
  text-align: center;
}

.stage-side {
  grid-area: side;
  display: grid;
  gap: 20px;
}

.stage-words {
  grid-area: words;
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 20px;
}

/* the map's name is the stage's heading, a step under the site's title above it */
.stage-name {
  --lift: 6px;
  margin: 0;
  font-size: 54px;
  line-height: 60px;
  font-weight: 700;
}

/* a name that would take three lines steps down a size */
.stage-name.long {
  --lift: 5px;
  font-size: 45px;
  line-height: 52px;
}

.stage-name a {
  color: inherit;
}

/* the game's shadow: one glyph pixel down and right, a quarter of the name's own brightness */
.stage-name .name {
  text-shadow: none;
  filter: drop-shadow(var(--lift) var(--lift) 0 color-mix(in srgb, var(--c1) 25%, #000));
}

.stage-sub {
  margin: 0;
  color: var(--face);
}

.stage-line {
  display: flex;
  justify-content: space-between;
  color: var(--face);
}

.stage-line b {
  color: var(--white);
}

/* the boss bar, large: the share still to beat in the map's VICTOR colours, notched in twenty */
.stage-bar {
  position: relative;
  display: block;
  height: 24px;
  background: #1e1e1e;
  border: 3px solid var(--black);
}

.stage-bar i {
  display: block;
  width: var(--left);
  height: 100%;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  box-shadow: inset 0 3px rgba(255, 255, 255, 0.4), inset 0 -3px rgba(0, 0, 0, 0.3);
}

.stage-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 3px), rgba(0, 0, 0, 0.55) calc(5% - 3px) 5%);
}

.stage-faces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-faces .head {
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.stage-faces a:hover .head,
.stage-faces a:focus-visible .head {
  outline: 2px solid var(--white);
}

.stage-faces a:focus-visible {
  outline: none;
}

.stage-who {
  margin: 0;
  color: var(--face);
  font-size: 27px;
  line-height: 36px;
}

.stage-who .head {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  vertical-align: -6px;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.stage-actions .button {
  padding: 6px 20px 8px;
}

/* the map itself, sharp, in the frame of its tier as on the Maps page; a new picture fades in over
   the one before */
.stage-view {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--d37);
  border-style: solid;
  border-width: 8px;
  border-image: var(--frame, url("assets/gui/tile-0.png")) 4 / 8px;
  image-rendering: pixelated;
}

.stage-shot {
  position: absolute;
  inset: 0;
  background: var(--shot) center / cover no-repeat;
  image-rendering: auto;
  transition: opacity 600ms ease-out;
}

.stage-shot.fresh {
  opacity: 0;
}

/* the player stands in front of the frame's lower left corner, as if stepping out of the map */
.stage-player {
  position: absolute;
  z-index: 2;
  left: -112px;
  bottom: -6px;
  width: 200px;
  height: 300px;
  pointer-events: none;
}

.stage-figure {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  opacity: 0;
  transition: opacity 250ms ease-out;
  pointer-events: none;
}

.stage-figure.shown {
  opacity: 1;
}

.stage-player .pose-shadow {
  bottom: -6px;
  width: 64px;
  height: 14px;
}

/* the game's floating name tag over the player */
.stage-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  translate: -50% 0;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.stage-flat {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
}

.stage-flat .head {
  width: 96px;
  height: 96px;
}

/* the maps under the frame, the one on the stage framed like a picked slot; each keeps the size of
   a sixth of the row, however many there are, so the stage keeps its height, and they sit in the
   middle */
.stage-picks {
  display: grid;
  gap: 22px;
}

.stage-picks ol {
  display: grid;
  grid-template-columns: repeat(var(--picks, 6), calc((100% - 50px) / 6));
  justify-content: center;
  gap: 10px;
}

.stage-picks li {
  position: relative;
}

/* the time to the next turn under the shown map, filling like the game's experience bar */
.pick-time {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -14px;
  height: 6px;
  background: #1e1e1e;
  border: 1px solid var(--black);
}

.pick-time i {
  display: block;
  height: 100%;
  background: #e9e9e9;
  transform-origin: left;
  transform: scaleX(var(--time, 0));
  transition: transform 100ms linear;
}

.stage-pick {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: var(--shot) center / cover no-repeat, var(--d37);
  border: 2px solid var(--black);
  box-shadow: inset 0 0 0 2px rgba(139, 139, 139, 0.5);
  filter: brightness(0.7);
  cursor: pointer;
}

.stage-pick:hover,
.stage-pick:focus-visible {
  filter: none;
  outline: 2px solid var(--white);
}

.stage-pick[aria-pressed="true"] {
  filter: none;
  outline: 4px solid #e9e9e9;
  outline-offset: 2px;
}

.stage-pick[aria-pressed="true"]:focus-visible {
  outline-color: var(--hover);
}

.stage-pick i {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 6px;
  background: #1e1e1e;
  border: 1px solid var(--black);
}

.stage-pick i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--left);
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
}

.stage-pick b {
  position: absolute;
  right: 4px;
  bottom: 0;
  font-size: 18px;
  text-shadow: 2px 2px 0 #3f3f3f;
}

/* under the stage: the site's name and what it is, the big search, and a door to each part of it */
/* the figures' canvases are wider than the figures; they never widen the page */
body.home {
  overflow-x: clip;
}

/* the site's name first, over the stage: room above it, under the top bar, for the jumps and
   Texyle's sideflip as the title is written */
.home-intro {
  display: grid;
  gap: 4px;
  max-width: 1240px;
  margin: 160px auto 0;
  text-align: center;
}

/* "Welcome to" small before "Parkour Progress!" on one line; on a phone the two parts stack.
   antoultrav writes the second part running along it and Texyle brings "Welcome to" (index.js).
   They are as tall as two of its letters, as a player is two blocks tall, so they can jump on it
   under the top bar */
.home-name {
  --tall: 117px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 16px;
  margin: 0 0 6px;
  font-weight: 700;
}

/* a click has antoultrav and Texyle write it (index.js) */
.home-name.replay {
  cursor: pointer;
}

.welcome {
  font-size: 27px;
  line-height: 36px;
  font-weight: 400;
  color: var(--face);
  text-shadow: 3px 3px 0 #2a2a2a;
}

/* without Texyle it fades in once the title is built */
.home-name:not(.building) .welcome {
  transition: opacity 500ms ease-out;
}

.build-line {
  position: relative;
  /* its own stack, so the glint blends with its letters only */
  isolation: isolate;
  font-size: 72px;
  line-height: 80px;
  text-shadow: 8px 8px 0 #3f3f3f;
  white-space: pre;
}

/* "Parkour Progress!" is enchanted: once the title is built, the game's glint, a slow purple sheen
   in two layers, drifts over its letters and only them (a copy of the line clipped to its glyphs) */
.build-line::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  text-shadow: none;
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(160, 96, 255, 0.6) 46%, transparent 54%),
    linear-gradient(72deg, transparent 56%, rgba(112, 72, 232, 0.45) 63%, transparent 70%);
  background-size: 250% 100%, 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 1;
  transition: opacity 900ms ease-out;
  /* started 2.5s in, so the first sheen is already on the first letters and not 2s away */
  animation: enchant 9s -2.5s linear infinite;
}

.home-name.building .build-line::after {
  opacity: 0;
  transition: none;
}

@keyframes enchant {
  from { background-position: 100% 0, 0% 0; }
  to { background-position: 0% 0, 100% 0; }
}

html.calm .build-line::after {
  display: none;
}

/* while the title is built, "Welcome to" waits for Texyle to bring it, and each letter waits to be
   set down like a block, from one glyph pixel up (index.js) */
.home-name.building .welcome:not(.placed) {
  opacity: 0;
}

/* in Texyle's hand as he glides: behind both of them and the line, so where he flies over
   antoultrav the sign hanging under him reads as further back */
.welcome.carried {
  position: relative;
}

.home-name.building .welcome.carried {
  opacity: 1;
}

.letter {
  display: inline-block;
}

.home-name.building .letter:not(.set) {
  opacity: 0;
}

.letter.set {
  animation: set-down 160ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes set-down {
  from { opacity: 0; translate: 0 -0.11em; }
}

/* antoultrav and Texyle: index.js moves each box, whose bottom is where the feet are */
.title-builder {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 0;
  height: var(--tall);
  pointer-events: none;
}

/* a square one and a half figures wide, around the middle of the figure, with room for the glide;
   a seated figure can be hit, and index.js checks the click lands on its body */
.title-figure {
  position: absolute;
  bottom: calc(var(--tall) * -0.2575);
  left: calc(var(--tall) * -0.75);
  width: calc(var(--tall) * 1.5);
  height: calc(var(--tall) * 1.5);
  opacity: 0;
  transition: opacity 200ms ease-out;
  pointer-events: auto;
}

.title-figure.shown {
  opacity: 1;
}

.title-tag {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  translate: -50% 0;
  padding: 0 6px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  text-shadow: 2px 2px 0 #2a2a2a;
  background: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* below 960px the 72px line no longer fits its column with antoultrav beside it */
@media (max-width: 960px) {
  .home-name {
    --tall: 88px;
  }

  .build-line {
    font-size: 54px;
    line-height: 60px;
    text-shadow: 6px 6px 0 #3f3f3f;
  }
}

/* dust where a letter is set down and where "Welcome to" is placed */
.scrape {
  position: absolute;
  background: #d9d4c4;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* the signed-out door: the faces of players already on the list, behind its words */
.door {
  isolation: isolate;
}

.door > .face-wall {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  image-rendering: pixelated;
}

.face-wall img {
  width: 100%;
  aspect-ratio: 1;
}

/* the words keep clear of the strip, however much they wrap */
.door.faces {
  padding-top: 56px;
}

.home-under {
  display: grid;
  /* one column the width of the page: the search field would otherwise ask for 600px */
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 56px auto 0;
}

/* two short lines: what the site is, then its numbers, each wrapped evenly on a phone */
.home-intro .dim {
  display: grid;
  margin: 0;
  color: var(--face);
  text-wrap: balance;
}

/* two doors a row, wide enough for their lines to be read whole */
.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* the two doors of a row keep one height */
.doors > li {
  display: grid;
}

.door {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 168px;
  padding: 14px 16px;
  overflow: hidden;
  color: var(--white);
  background: var(--art) center / cover no-repeat, var(--d37);
  border: 2px solid var(--black);
  box-shadow: inset 0 0 0 2px rgba(139, 139, 139, 0.55);
}

.door::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 70%);
}

.door > * {
  position: relative;
}

.door b {
  font-size: 27px;
  line-height: 36px;
}

/* a door's lines wrap whole when they don't fit, and the door grows with them; nothing is cut */
.door-line {
  color: var(--face);
  text-wrap: pretty;
}

.door b {
  margin-bottom: 2px;
}

/* the badge pill inside a door line, small enough for the line */
.door-pill {
  gap: 6px;
  padding: 0 8px 0 6px;
  vertical-align: 2px;
}

.door-pill .dot {
  width: 10px;
  height: 10px;
}

/* what is new or notable, in the game's hover yellow */
.home .hl {
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.door:hover,
.door:focus-visible {
  outline: 2px solid var(--white);
  color: var(--white);
}

.door:hover b,
.door:focus-visible b {
  color: var(--hover);
}

/* the leaderboards' door: the top three on a dark royal gold, as on the podium */
.door.gold {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("assets/gui/mat-5.png") 0 0 / 48px 48px;
  image-rendering: pixelated;
}

.door-podium {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.door-place {
  display: grid;
  justify-items: center;
}

.door-place img {
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

/* each face stands on a block of its place's material, the first highest */
.door-place i {
  display: block;
  width: 56px;
  height: var(--rise);
  background: var(--mat) 0 0 / 28px 28px;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.3), inset 0 -2px rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
}

.door-place.p1 { --rise: 30px; --mat: url("assets/gui/mat-5.png"); }
.door-place.p2 { --rise: 20px; --mat: url("assets/gui/mat-4.png"); }
.door-place.p3 { --rise: 12px; --mat: url("assets/gui/mat-3.png"); }

.door-face {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

@media (max-width: 1180px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    column-gap: 48px;
  }

  .stage-who {
    font-size: 18px;
    line-height: 28px;
  }

  .stage-who .head {
    width: 24px;
    height: 24px;
    vertical-align: -5px;
  }

  /* the two buttons share a line in the narrower words column */
  .stage-actions .button {
    padding: 4px 14px 6px;
  }

  .stage-player {
    left: -36px;
    width: 160px;
    height: 230px;
  }
}

/* on a short desktop screen the title steps down to 54px, so the whole stage still shows under it */
@media (min-width: 961px) and (max-height: 940px) {
  .home-intro {
    margin-top: 108px;
  }

  .home-name {
    --tall: 88px;
  }

  .build-line {
    font-size: 54px;
    line-height: 60px;
    text-shadow: 6px 6px 0 #3f3f3f;
  }

  .home-intro .dim {
    line-height: 24px;
  }

  /* still clearly further apart than the things inside a section */
  .stage {
    margin-top: 32px;
    row-gap: 12px;
  }

  /* under a 54px title the map's name goes down too */
  .stage-name {
    --lift: 5px;
    font-size: 45px;
    line-height: 52px;
  }

  .stage-name.long {
    --lift: 4px;
    font-size: 36px;
    line-height: 40px;
  }
}

/* narrower, the picture comes first and the words follow under it */
@media (max-width: 960px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "side" "words";
    row-gap: 16px;
  }

  /* under the 54px title */
  .stage-name {
    --lift: 5px;
    font-size: 45px;
    line-height: 52px;
  }

  .stage-name.long {
    --lift: 4px;
    font-size: 36px;
    line-height: 40px;
  }

  .stage-words {
    padding-top: 8px;
  }

  /* the player stands inside the frame, its feet on the frame's lower edge, clear of the picks */
  .stage-player {
    left: 8px;
    bottom: 4px;
  }
}

/* above the doors, so its results open over them */
.hero-search {
  z-index: 5;
  width: 100%;
  margin-top: 8px;
}

.hero-search label {
  padding: 10px 14px;
  font-size: 27px;
  line-height: 36px;
}

.hero-search .icon {
  width: 24px;
  height: 24px;
}

.hero-search .results {
  text-align: left;
}

/* the screens further down: a white title over each, as on the game's own screens */
.screen {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin: 96px auto 0;
  text-align: center;
}

.screen-title {
  margin: 0 0 4px;
  font-size: 27px;
  line-height: 36px;
  font-weight: 700;
  text-shadow: 3px 3px 0 #3f3f3f;
}

/* Featured: the biggest of the last 30 days, a card each (the map's screenshot in its tier frame,
   its name, and who did what), and the newest victories under */
.featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.feature {
  display: grid;
  align-content: start;
  gap: 4px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.feature .tile {
  margin-bottom: 8px;
}

.feature:hover .tile,
.feature:focus-visible .tile {
  translate: 0 -4px;
}

.feature-map {
  font-weight: 700;
}

.feature-who .head {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  vertical-align: -5px;
}

.newest {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* narrower, the three cards share the width; on a phone each is a row, its picture on the left */
@media (max-width: 960px) {
  .featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .feature {
    grid-template-columns: 128px minmax(0, 1fr);
    column-gap: 12px;
  }

  .feature .tile {
    grid-row: span 2;
    margin: 0;
  }
}

/* The hotbar: nine slots in the game's dark strip, the selected one in its white frame and its
   name over the strip, as the game shows an item's name when you pick it. */
.item-name {
  min-height: 28px;
  margin: 0;
}

.item-name .flag {
  margin: 0 4px;
}

.hotbar {
  --slot: 72px;
  display: flex;
  padding: 2px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--black);
  box-shadow: inset 0 0 0 2px #6b6b6b;
}

.hotbar li {
  padding: 4px;
  box-shadow: inset 0 0 0 2px rgba(139, 139, 139, 0.45);
}

.hot-slot {
  position: relative;
  display: block;
  width: var(--slot);
  height: var(--slot);
  background: var(--art) center / cover no-repeat, var(--d37);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5);
}

.hot-slot .head {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

/* the victor number sits where the game puts a stack's count */
.hot-count {
  position: absolute;
  right: 4px;
  bottom: 0;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 0 #3f3f3f;
}

.hot-slot.first-victor .hot-count {
  color: var(--hover);
  text-shadow: 2px 2px 0 #404028;
}

.hot-slot.selected::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 4px solid #e9e9e9;
  box-shadow: 0 0 0 2px var(--black), inset 0 0 0 2px var(--black);
}

.hot-slot:focus-visible {
  outline: none;
}

/* The beacon: a layer per tier of the tier's own blocks, Tier X the beacon block on top with its
   beam, the label of each layer just past its right end and "you" just past its left. At rest it
   steps in a block a side per layer, as a beacon does in the game; hovered, or with its button,
   each layer eases to the width of the players who reached its tier or higher (index.js), so the
   widths are seen to mean something. --at is the width in blocks it is at now. */
@property --at {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

.beacon {
  --block: 24px;
  position: relative;
  display: grid;
  width: 100%;
  padding-top: 240px;
}

.beacon-row {
  --at: var(--w, 1);
  position: relative;
  display: flex;
  justify-content: center;
  height: var(--block);
  transition: --at 520ms cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--i, 0) * 30ms);
}

/* pointed: the mouse is on the pyramid (index.js) */
.beacon.counted .beacon-row,
.beacon.pointed .beacon-row {
  --at: var(--p, 1);
}

html.calm .beacon-row {
  transition: none;
}

/* lit from above like a block in the game, so even the dark netherite layer keeps its edges */
.layer {
  position: relative;
  display: block;
  width: calc(var(--at) * var(--block));
  height: var(--block);
  /* the blocks are laid out from the middle, so a narrower layer loses them at both ends */
  background: var(--mat) 50% 0 / var(--block) var(--block);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.3), inset 0 -2px rgba(0, 0, 0, 0.45), 0 2px rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
}

.layer:hover,
.layer:focus-visible {
  z-index: 1;
  filter: brightness(1.25);
  outline: 2px solid var(--white);
}

/* the beam rises from the beacon block once the beacon comes into view, and its light runs up */
.beacon-row.summit .layer::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: calc(var(--block) * 0.6);
  margin-left: calc(var(--block) * -0.3);
  height: 240px;
  background:
    linear-gradient(to top, rgba(255, 220, 220, 0.75), rgba(255, 255, 255, 0) 80%) center / 34% 100% no-repeat,
    repeating-linear-gradient(to top, rgba(255, 255, 255, 0.08) 0 16px, rgba(255, 255, 255, 0) 16px 48px),
    linear-gradient(to top, rgba(255, 40, 40, 0.95), rgba(239, 0, 11, 0.5) 60%, rgba(239, 0, 11, 0));
  background-position: center 0, 0 0, 0 0;
  /* the whole beam fades out at its top, its light with it */
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: beam 1.6s linear infinite;
  pointer-events: none;
}

.beacon.lit .beacon-row.summit .layer::before {
  transform: scaleY(1);
}

@keyframes beam {
  to { background-position: center 0, 0 -96px, 0 0; }
}

/* the beam's glow, a wider and fainter column around it */
.beacon-row.summit .layer::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: calc(var(--block) * 1.4);
  margin-left: calc(var(--block) * -0.7);
  height: 240px;
  background: linear-gradient(to top, rgba(239, 0, 11, 0.4), rgba(239, 0, 11, 0) 85%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.beacon.lit .beacon-row.summit .layer::after {
  transform: scaleY(1);
}

html.calm .beacon-row.summit .layer::before,
html.calm .beacon-row.summit .layer::after {
  transition: none;
  animation: none;
}

.layer-label,
.beacon-tags {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: min(18px, var(--block));
  line-height: var(--block);
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
}

/* the label opens the tier's page too, an easy target when its layer is thin */
.layer-label {
  left: calc(50% + var(--at) * var(--block) / 2 + 12px);
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.layer-label:hover .layer-name {
  color: var(--hover);
}

.layer-label .sword {
  width: min(20px, var(--block));
  height: min(20px, var(--block));
}

.layer-name,
.layer-count {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.layer-count {
  color: var(--white);
  text-shadow: var(--shadow);
}

.beacon.short .layer-name {
  display: none;
}

.beacon-tags {
  right: calc(50% + var(--at) * var(--block) / 2 + 12px);
  gap: 12px;
}

/* on a phone the labels give way to a key under the pyramid */
.beacon-key {
  display: none;
}

.beacon.legend .layer-label {
  display: none;
}

.beacon.legend .beacon-tags {
  font-size: 14px;
  line-height: 18px;
}

.beacon.legend .beacon-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 24px;
  text-align: left;
}

.beacon-key a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.beacon-key .sword {
  width: 20px;
  height: 20px;
}

.beacon-key .layer-count {
  margin-left: auto;
}

/* a name tag as the game draws one over a player: white on a dark wash */
.beacon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.45);
}

.beacon-tag .head {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  /* on a phone the big search is the search; the bar's own waits for the next page */
  .home .bar .search {
    display: none;
  }

  .home:not(.hero-search-on) .bar-find {
    display: inline-grid;
  }

  /* brand, search button and Menu share the bar down to 360px */
  .home .bar {
    column-gap: 8px;
  }

  .home .bar nav {
    gap: 8px;
  }

  .bar-find {
    padding: 4px 8px 6px;
  }

  .hero-search label {
    padding: 6px 10px;
    font-size: 18px;
    line-height: 28px;
  }

  /* room for Texyle's sideflip with the sign held up, under the top bar */
  .home-intro {
    margin-top: 72px;
  }

  .stage {
    margin-top: 40px;
    row-gap: 12px;
  }

  /* on a phone "Welcome to" sits over the line the two of them sit on, and they are a little
     larger beside the smaller title */
  .home-name {
    --tall: 59px;
    flex-direction: column;
    align-items: center;
  }

  .welcome {
    font-size: 18px;
    line-height: 28px;
    text-shadow: 2px 2px 0 #2a2a2a;
  }

  .build-line {
    font-size: 27px;
    line-height: 36px;
    text-shadow: 3px 3px 0 #3f3f3f;
  }

  /* section headings step down to 18px, under the 27px title */
  .screen-title {
    font-size: 18px;
    line-height: 28px;
    text-shadow: 2px 2px 0 #3f3f3f;
  }

  /* the title's own 27px: there is no nine pixel size between it and the body's 18px, and on a
     phone the title already leads from the top of the screen, the name being under the picture */
  .stage-name,
  .stage-name.long {
    --lift: 3px;
    font-size: 27px;
    line-height: 36px;
  }

  .stage-faces .head {
    width: 32px;
    height: 32px;
  }

  /* on a phone the page scrolls anyway: the picks share the row */
  .stage-picks ol {
    grid-template-columns: repeat(var(--picks, 6), minmax(0, 1fr));
    gap: 6px;
  }

  .stage-pick b {
    font-size: 14px;
  }

  .stage-player {
    width: 120px;
    height: 170px;
  }

  .stage-actions .button {
    padding: 4px 12px 6px;
  }

  .home-under {
    margin-top: 40px;
  }

  /* one door a row on a phone, each tall enough for its title and line under the face */
  .doors {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  /* on a phone a door grows with its lines, which wrap instead of fading, under the face */
  .door {
    height: auto;
    min-height: 128px;
    padding: 64px 12px 10px;
  }

  .door-line {
    white-space: normal;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .door-podium {
    top: 10px;
    right: 10px;
  }

  .door-place img {
    width: 24px;
    height: 24px;
  }

  .door-place i {
    width: 30px;
    background-size: 15px 15px;
  }

  .door-place.p1 { --rise: 18px; }
  .door-place.p2 { --rise: 12px; }
  .door-place.p3 { --rise: 6px; }

  .door b {
    font-size: 18px;
    line-height: 28px;
  }

  .door-face {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .screen {
    margin-top: 64px;
  }

  /* on a phone the slots keep a readable size and the strip scrolls sideways */
  .hotbar {
    --slot: 56px;
    max-width: 100%;
    padding: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--g8b) transparent;
  }

  .hotbar li {
    scroll-snap-align: center;
  }

  .hot-slot .head {
    width: 20px;
    height: 20px;
  }

  .beacon {
    padding-top: 160px;
  }

  .beacon-row.summit .layer::before,
  .beacon-row.summit .layer::after {
    height: 160px;
  }
}

/* the top bar's search list ends with a way to every result, badges too */
.results > a.all {
  display: flex;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--dim);
}

.results > a.all .icon {
  margin: 0 8px;
}

/* alone, with nothing typed, it needs no line over it */
.results > a.all:only-child {
  margin-top: 0;
  padding-top: 4px;
  border-top: 0;
}

/* search: the game's Multiplayer server list, with the creative inventory's tabs on its top edge */

.find-page .page-title {
  font-size: 54px;
  line-height: 60px;
  text-align: center;
  overflow-wrap: anywhere;
}

.find {
  max-width: 936px;
  margin: 28px auto 0;
}

/* the tabs: the picked one is part of the window and covers its edge, the others sit behind it */
.find-tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px;
}

.find-tab {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -8px;
  padding: 4px 14px 14px;
  border-style: solid;
  border-width: 8px 8px 0;
  border-image: url("assets/gui/win.png") 4 fill / 8px 8px 0;
  image-rendering: pixelated;
  font: inherit;
  color: var(--label);
  text-shadow: none;
  background: none;
  cursor: pointer;
  filter: brightness(0.72);
  translate: 0 3px;
}

.find-tab:hover,
.find-tab:focus-visible {
  filter: brightness(0.86);
}

.find-tab[aria-selected="true"] {
  z-index: 2;
  filter: none;
  translate: 0 0;
}

.find-tab small {
  font-size: inherit;
  color: var(--g55);
}

.find-tab-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.find-tab-icon > img,
.find-tab-icon > .head {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.find-tab-icon > .icon {
  width: 18px;
  height: 18px;
  filter: none;
}

.find-win {
  position: relative;
  z-index: 1;
  padding: 8px 10px 10px;
}

.find-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2px 2px 10px;
}

.find-field {
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
  padding: 5px 10px;
}

.find-field input {
  width: 100%;
}

.find-count {
  color: var(--label);
  text-shadow: none;
  white-space: nowrap;
}

/* the list scrolls inside itself, as the game's does, so the buttons stay under it */
.find-list {
  height: clamp(300px, calc(100vh - 420px), 640px);
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.find-group + .find-group {
  margin-top: 8px;
}

.find-group-title {
  margin: 6px 10px 4px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.find-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 6px 12px 6px 6px;
  color: var(--white);
  scroll-margin: 4px;
}

.find-row:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* the game's outline on the picked server: white, with black inside it */
.find-row.on {
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 4px #000;
}

.find-row:focus-visible {
  outline: none;
}

.find-row.off {
  cursor: default;
}

.find-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.find-icon > img,
.find-icon > .head {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

/* over the icon of a row that opens, the game's play arrow */
.find-play {
  position: absolute;
  inset: 12px;
  width: 24px;
  height: 24px;
  opacity: 0;
}

.find-row:is(.on, :hover) .find-icon:has(.find-play)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.find-row:is(.on, :hover) .find-play {
  z-index: 1;
  opacity: 1;
}

.find-icon:hover .find-play {
  color: var(--hover);
}

.find-text {
  display: grid;
  min-width: 0;
}

/* a player's name with their hardest badge beside it, as Discord shows a role */
.find-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  min-width: 0;
}

.find-name > .pill {
  max-width: 100%;
}

.find-facts {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.find-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 56px;
  justify-content: flex-end;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.find-tier .sword {
  width: 24px;
  height: 24px;
}

.find-blank {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.3);
}

.find-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border: 0;
  font: inherit;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
  background: none;
  cursor: pointer;
}

.find-more:hover,
.find-more:focus-visible {
  color: var(--hover);
}

.find-more .chev {
  width: 12px;
  height: 12px;
}

/* a search that finds nothing: the game's server that cannot be reached */
.find-row.none .find-facts {
  color: #ff5555;
}

.find-unknown {
  width: 32px;
  height: 32px;
  color: var(--g8b);
}

.find-cross {
  width: 18px;
  height: 18px;
  color: #ff5555;
}

/* under the list, the game's button row: Open, then the filters */
.find-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 10px;
}

.find-buttons .gui-select > .dim {
  color: var(--label);
  text-shadow: none;
}

.find-open {
  min-width: 198px;
}

/* the page's field is the search: the bar's waits while it is on screen */
.finding.field-on .bar .search {
  visibility: hidden;
  opacity: 0;
  width: 16px;
  height: 16px;
}

.find-open:disabled {
  color: var(--g8b);
  filter: brightness(0.62);
  cursor: default;
}

@media (max-width: 760px) {
  .finding .bar .search {
    display: none;
  }

  .finding:not(.field-on) .bar-find {
    display: inline-grid;
  }

  .finding .bar {
    column-gap: 8px;
  }

  .finding .bar nav {
    gap: 8px;
  }

  .find-page .page-title {
    font-size: 36px;
    line-height: 44px;
  }

  .find {
    margin-top: 18px;
  }

  .find-tabs {
    gap: 3px;
    padding: 0 4px;
  }

  /* on a phone the tabs are icons and counts, as the game's are icons, and share the width */
  .find-tab {
    flex: 1 1 0;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 4px 4px 14px;
  }

  .find-tab > span:not(.find-tab-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .find-head {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  /* the list flows with the page, and the button row stays at the bottom of the screen */
  .find-list {
    height: auto;
    overflow: visible;
  }

  .find-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    column-gap: 10px;
    padding: 6px 8px 6px 6px;
  }

  .find-icon,
  .find-icon > img,
  .find-icon > .head,
  .find-blank {
    width: 32px;
    height: 32px;
  }

  .find-play {
    inset: 8px;
    width: 16px;
    height: 16px;
  }

  .find-tier {
    min-width: 0;
  }

  .find-tier span {
    display: none;
  }

  /* a badge goes on its own line under the name, and wraps there whole as in the collections */
  .find-name > .pill {
    flex-basis: auto;
  }

  .find-buttons {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 10px -10px -10px;
    padding: 10px;
    background: #c6c6c6;
    box-shadow: 0 -2px 0 #555;
  }

  /* a tap opens a row, so the phone keeps only the filters at the bottom, on one line, their
     labels said by their first option */
  .find-open {
    display: none;
  }

  .find-buttons {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .find-buttons .gui-select {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
  }

  .find-buttons .gui-select > .dim {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .find-buttons .select-face {
    flex: 1;
    min-width: 0;
  }

  .find-buttons .select-face select {
    width: 100%;
    max-width: none;
    padding-right: 30px;
  }

  .find-clear {
    display: grid;
    place-items: center;
    flex: none;
    align-self: stretch;
    padding: 0 10px;
  }

  .find-clear .icon {
    width: 16px;
    height: 16px;
  }

  .find-country {
    display: none;
  }
}

/* not found: the game's death screen. Its own red wash (from 60500000 at the top to a0803030 at the
   foot, as the game draws it) over the world, "You Died!", the cause of death and the score, then
   its two buttons stacked at the game's width */

.died {
  min-height: calc(100vh - var(--bar, 72px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 40px 16px 96px;
  text-align: center;
}

.died::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(80, 0, 0, 0.38), rgba(128, 48, 48, 0.63));
  pointer-events: none;
}

/* a sign in that did not work uses the same screen without the death wash */
.died.lost::before {
  display: none;
}

.died-title {
  margin: 0;
  font-size: 72px;
  line-height: 80px;
  font-weight: 700;
  text-shadow: 8px 8px 0 #3f3f3f;
}

.died-cause,
.died-score {
  margin: 0;
  font-size: 27px;
  line-height: 36px;
  text-shadow: 3px 3px 0 #3f3f3f;
  overflow-wrap: anywhere;
}

.died-score span {
  color: #ffff55;
  text-shadow: 3px 3px 0 #3f3f15;
}

.died-buttons {
  display: grid;
  gap: 8px;
  width: min(400px, 100%);
  margin-top: 24px;
}

.died-buttons .button {
  padding: 6px 12px 8px;
  text-decoration: none;
}

.died-buttons .button[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .died-title {
    font-size: 54px;
    line-height: 60px;
    text-shadow: 6px 6px 0 #3f3f3f;
  }

  .died-cause,
  .died-score {
    font-size: 18px;
    line-height: 28px;
    text-shadow: 2px 2px 0 #3f3f3f;
  }
}

/* the eye: the map behind the page, sharp and bright, with the page out of the way */

.eye {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.eye .icon {
  width: 16px;
  height: 16px;
}

.eye[aria-pressed="true"] {
  border-image-source: url("assets/gui/button-hover.png");
  color: var(--hover);
}

.world-sharp {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--world, none) center / cover no-repeat, #101010;
  opacity: 0;
  transition: opacity 400ms ease-out;
  pointer-events: none;
}

.bare .world-sharp {
  z-index: 40;
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

html.calm .world-sharp {
  transition: none;
}

/* the search page's buttons stick to the foot of a phone's screen, so the eye sits above them */
@media (max-width: 760px) {
  .finding .eye {
    bottom: 80px;
  }
}

/* the progress timeline on a map page (Texyle's idea): the map replayed from its release, in an
   inventory window like the route's, dark inside as Texyle asked: the light face is only the
   frame, and every control, scoreboard and the board sit in wells, where the players race, the
   furthest on the left */

.timeline {
  margin-top: 48px;
}

/* Route and Timeline as two tabs of one place, on a map with a timeline */
.map-tabs {
  margin-top: 48px;
}

.map-tabs[hidden],
.split[hidden] {
  display: none;
}

.map-tabs:not([hidden]) + .split,
.map-tabs:not([hidden]) ~ .timeline {
  margin-top: 4px;
}

.tl {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "deck deck" "side main";
  gap: 8px;
}

.tl-deck {
  grid-area: deck;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 264px;
  align-items: start;
  gap: 8px 20px;
  padding: 14px 18px 12px;
}

/* over the controls, across the well: who is followed, and Find */
.tl-deck > .tl-bar {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--d37);
}

/* Play and the speed line up with the day's slider, under the month bars */
.tl-play {
  min-width: 104px;
  margin-top: 56px;
  padding: 8px 12px 10px;
}

.tl-scrub,
.tl-speed {
  display: grid;
  min-width: 0;
}

.tl-speed {
  margin-top: 56px;
}

/* level with the day's axis, which sits under the row of dots */
.tl-speed .tl-axis {
  margin-top: 24px;
}

/* the month bars: how many steps were reached each month, each as wide as its days, inset by half
   the slider's handle so a day on the bars sits over the same day on the slider. Two copies, the
   lit one cut off at the day shown, so exactly what the replay has passed is lit. A victory is a
   line on its day in the VICTOR badge's colour; a followed player's steps are hover-yellow marks */
.tl-bars {
  height: 48px;
  margin-bottom: 8px;
  padding: 0 8px;
}

.tl-bars-in {
  position: relative;
  height: 100%;
}

.tl-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.tl-layer.lit {
  clip-path: inset(0 calc((1 - var(--now, 1)) * 100%) 0 0);
}

.tl-month {
  flex: var(--days) 1 0px;
  min-width: 0;
  height: calc(2px + var(--h, 0) * (100% - 2px));
  background: linear-gradient(90deg, var(--d37) calc(100% - 2px), transparent 0);
}

.lit .tl-month {
  background-image: linear-gradient(90deg, var(--g8b) calc(100% - 2px), transparent 0);
}

.tl-win {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--at) * 100% - 1px);
  width: 2px;
  background: var(--victor);
  opacity: 0.35;
}

.lit .tl-win {
  opacity: 1;
}

/* over each victory line, a wider target for its tooltip and click */
.tl-hits {
  position: absolute;
  inset: 0;
}

.tl-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--at) * 100% - 6px);
  width: 12px;
  cursor: pointer;
}

.tl-hit:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* the followed player's steps under the slider: hover-yellow dots, dim while still ahead */
.tl-dots {
  position: relative;
  height: 12px;
  margin: 6px 8px 0;
}

.tl-dot {
  position: absolute;
  top: 0;
  left: calc(var(--at) * 100% - 6px);
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #404028;
  background: var(--hover);
  cursor: pointer;
}

.tl-dot.ahead {
  opacity: 0.35;
}

.tl-dot:hover,
.tl-dot:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 0;
}

/* the game's slider: a dark button with its value written on it, and a button for a handle */
.tl-slider {
  position: relative;
  display: block;
  height: 40px;
}

.tl-slider input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  background: none;
  cursor: pointer;
}

.tl-slider input::-webkit-slider-runnable-track {
  height: 40px;
  border-style: solid;
  border-width: 4px;
  border-image: url("assets/gui/button.png") 2 fill / 4px;
  image-rendering: pixelated;
  filter: brightness(0.55);
}

.tl-slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 40px;
  margin-top: -4px;
  border-style: solid;
  border-width: 4px;
  border-image: url("assets/gui/button.png") 2 fill / 4px;
  image-rendering: pixelated;
  filter: brightness(1.82);
}

.tl-slider input::-moz-range-track {
  height: 32px;
  border: 4px solid #2a2a2a;
  background: #2f2f2f;
}

.tl-slider input::-moz-range-thumb {
  width: 8px;
  height: 32px;
  border: 4px solid #000;
  border-radius: 0;
  background: var(--g8b);
}

.tl-slider input:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 0;
}

.tl-day {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  text-shadow: var(--shadow);
  white-space: nowrap;
  pointer-events: none;
}

.tl-axis {
  position: relative;
  height: 24px;
  margin-top: 6px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.tl-axis span {
  position: absolute;
  top: 0;
  left: calc(var(--at) * 100%);
  translate: -50% 0;
  white-space: nowrap;
}

.tl-axis span:first-child {
  translate: 0 0;
}

.tl-axis span:last-child {
  translate: -100% 0;
}

/* the scoreboard of the day shown and the victors so far, down the side; the side and the board
   end level, so no bare window face shows under either */
.tl-side {
  grid-area: side;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.tl-side .score {
  padding: 0;
  background: none;
}

.tl-score .score-rows {
  margin: 0;
  list-style: none;
}

.tl-score li.tl-who {
  justify-content: flex-start;
  gap: 8px;
  min-height: 32px;
}

/* five victors in view, then the list scrolls (Texyle) */
.tl-victors {
  display: grid;
  gap: 8px;
  max-height: 274px;
  margin: 0;
  padding: 10px 12px 12px;
  overflow: auto;
  list-style: none;
}

/* a victor is followed with a click, as on the board: lit under the pointer, washed yellow while
   followed, like a followed scoreboard entry */
.tl-victors li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  margin: 0 -12px;
  padding: 2px 12px;
  line-height: 22px;
  cursor: pointer;
}

.tl-victors li:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tl-victors li.on {
  background: rgba(255, 255, 160, 0.12);
}

.tl-victors li:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

.tl-won {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl-victors li[hidden],
.tl-none[hidden] {
  display: none;
}

.tl-none {
  margin: 0;
  padding: 10px 12px 12px;
  text-align: center;
}

.tl-main {
  grid-area: main;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.tl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.tl-lock {
  flex: 1;
  margin: 0;
}

.tl .check {
  color: var(--white);
  text-shadow: var(--shadow);
  white-space: nowrap;
}

.tl-find {
  width: 260px;
}

/* the board scrolls inside its well, both ways, with the steps and the players kept in view;
   it never grows past the window, so following someone keeps them on screen */
.tl-well {
  max-height: min(560px, calc(100svh - var(--bar, 70px) - 24px));
  overflow: auto;
  padding: 0;
  scroll-margin: calc(var(--bar, 70px) + 12px) 0 12px;
}

/* sized in characters by timeline.js: the step column to the longest step plus its count, a
   player's column to the longest name; with nametags hidden a column is just wide enough for a
   face */
.tl-grid.bare {
  --col: 48px;
  --head: 52px;
}

.tl-grid {
  --lead: max(132px, calc((var(--code) + 2) * 1ch + 92px));
  --col: max(56px, calc((var(--name) * 1ch + 12px) / 2));
  --head: 96px;
  --row: 44px;
  position: relative;
  display: grid;
  grid-template-columns: var(--lead) calc(var(--cols) * var(--col));
  grid-template-rows: var(--head) repeat(var(--rows), var(--row));
  width: max-content;
}

.tl-corner,
.tl-heads,
.tl-step {
  background: var(--deep);
}

/* the steps and the line-up stay over every face, the followed one too, as the board scrolls
   under them */
.tl-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 7;
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  border-bottom: 2px solid var(--d37);
  box-shadow: inset -2px 0 var(--d37);
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.tl-heads {
  position: sticky;
  top: 0;
  z-index: 6;
  grid-row: 1;
  grid-column: 2;
  border-bottom: 2px solid var(--d37);
}

/* the line-up: every player's face and name in race order, changing places as they pass each
   other */
.tl-head {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: var(--col);
  height: 100%;
  padding: 0 0 8px;
  border: 0;
  font: inherit;
  background: none;
  cursor: pointer;
  translate: calc(var(--c, 0) * var(--col)) 0;
  transition: translate 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-head .head {
  width: 32px;
  height: 32px;
}

/* the names at full size, on two lines turn about, so each may run over its neighbours' columns
   and the columns stay half a name wide: twice the players in view (Texyle found four too few, and
   9px too small); the first column's name starts at its edge, clear of the steps */
.tl-name {
  position: absolute;
  top: 8px;
  left: 50%;
  line-height: 20px;
  white-space: nowrap;
  color: var(--white);
  text-shadow: var(--shadow);
  translate: -50% 0;
  transition: top 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-head.low .tl-name {
  top: 30px;
}

.tl-head.first .tl-name {
  left: 4px;
  translate: 0 0;
}

.tl-grid.bare .tl-name {
  display: none;
}

.tl-head.lit {
  background: rgba(255, 255, 255, 0.08);
}

.tl-head:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

.tl-head.on {
  box-shadow: inset 0 0 0 2px var(--hover);
}

.tl-head.gone,
.tl-lane.gone,
.tl-chip.gone {
  display: none;
}

.tl-row {
  grid-column: 1 / -1;
}

.tl-row.even {
  background: rgba(255, 255, 255, 0.03);
}

/* a step: its tier's colour down the edge and its sword in a socket, as the route has it */
.tl-step {
  position: sticky;
  left: 0;
  z-index: 6;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px 0 16px;
  white-space: nowrap;
  box-shadow: inset 4px 0 var(--c1, transparent), inset -2px 0 var(--d37);
}

.tl-step.even {
  background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), var(--deep);
}

.tl-step strong {
  flex: 1;
  min-width: 0;
}

.tl-count {
  color: var(--hover);
  font-weight: 700;
  text-shadow: 2px 2px 0 #404028;
}

/* a player's lane down the board, moving with them: lit under the pointer, washed yellow while
   they are followed; a click on it follows them */
.tl-lane {
  position: absolute;
  top: var(--head);
  left: var(--lead);
  width: var(--col);
  height: calc(var(--rows) * var(--row));
  cursor: pointer;
  translate: calc(var(--c, 0) * var(--col)) 0;
  transition: translate 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-lane.lit {
  background: rgba(255, 255, 255, 0.08);
}

.tl-lane.on {
  background: rgba(255, 255, 160, 0.06);
}

/* the locked player's climb, hanging from their first step on record: a hover-yellow mark on
   each step reached, joined by a line that grows with their chip */
.tl-trail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  translate: calc(var(--lead) + var(--c, 0) * var(--col) + var(--col) / 2) calc(var(--head) + var(--low, 0) * var(--row) + var(--row) / 2);
  transition: translate 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-climb {
  position: absolute;
  bottom: 0;
  left: -1px;
  width: 2px;
  height: calc(var(--len, 0) * var(--row));
  background: rgba(255, 255, 160, 0.5);
  transition: height 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-trail b {
  position: absolute;
  top: calc(var(--up) * var(--row) * -1 - 4px);
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--hover);
  box-shadow: 2px 2px 0 #404028;
}

.tl-trail.jump,
.tl-trail.jump .tl-climb {
  transition: none;
}

/* a chip: the player's face, outlined in black like an item, on the step they had reached that
   day; it glides to its place and flashes when it steps up */
.tl-chip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 2px;
  background: var(--black);
  cursor: pointer;
  translate: calc(var(--lead) + (var(--col) - 36px) / 2 + var(--c, 0) * var(--col)) calc(var(--head) + (var(--row) - 36px) / 2 + var(--r, 0) * var(--row));
  transition: translate 450ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out;
}

.tl-chip .head {
  display: block;
  width: 32px;
  height: 32px;
}

.tl-chip.off {
  opacity: 0;
  pointer-events: none;
}

.tl-chip.locked {
  z-index: 4;
}

.tl-chip.lit {
  z-index: 5;
  background: var(--white);
}

.tl-chip.on {
  background: var(--hover);
}

/* the game's name tag over the face: the name and the day they got there. It starts at the
   face and runs right, so the first column's never covers the steps; on the top step it hangs
   under the face, clear of the line-up */
.tl-tag {
  position: absolute;
  bottom: calc(100% + 6px);
  left: -2px;
  display: none;
  align-items: baseline;
  gap: 10px;
  padding: 2px 8px 4px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
}

.tl-chip.top .tl-tag {
  top: calc(100% + 6px);
  bottom: auto;
}

/* the locked player's tag stays only while names are hidden, as the line-up names them
   otherwise (Texyle); under the pointer it always shows, for the day */
.tl-grid.bare .tl-chip.locked .tl-tag,
.tl-chip.lit .tl-tag {
  display: flex;
}

.tl-when {
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
}

.tl-chip.flash::after,
.tl-victors li.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 160, 0.4);
  pointer-events: none;
  animation: tl-flash 900ms ease-out forwards;
}

@keyframes tl-flash {
  to {
    opacity: 0;
  }
}

html.calm .tl-head,
html.calm .tl-lane,
html.calm .tl-chip,
html.calm .tl-trail,
html.calm .tl-climb {
  transition: none;
}

html.calm .tl-chip.flash::after,
html.calm .tl-victors li.flash::after {
  display: none;
}

@media (max-width: 1100px) {
  .tl-deck {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tl-speed {
    grid-column: 2;
    width: min(100%, 360px);
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .tl {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "deck" "main" "side";
  }

  .tl-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

/* phones: the follow line, the day, then Play and the speed, each across the well so the speed's words fit;
   the board before the scoreboards, a step on two lines at most and its count gone, as the chips
   show it */
@media (max-width: 760px) {
  .tl-deck {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "bar" "scrub" "play" "speed";
    gap: 12px;
    padding: 12px;
  }

  .tl-scrub {
    grid-area: scrub;
  }

  .tl-play {
    grid-area: play;
    margin-top: 0;
  }

  .tl-speed {
    grid-area: speed;
    width: auto;
  }

  /* shorter on a phone: the speed says itself, and the follow line shows only while following */
  .tl-speed .tl-axis,
  .tl-lock.idle,
  .tl-dots:empty {
    display: none;
  }

  .tl-deck > .tl-bar {
    grid-area: bar;
  }

  .tl-axis span:not(:first-child):not(:last-child) {
    display: none;
  }

  .tl-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-find {
    width: 100%;
  }

  .tl-grid {
    --lead: max(96px, calc(var(--code2) * 1ch + 32px));
  }

  .tl-step {
    padding: 0 8px 0 12px;
  }

  .tl-step .tl-socket,
  .tl-count {
    display: none;
  }

  /* the name tag stacks the day under the name, to fit beside the steps */
  .tl-tag {
    flex-direction: column;
    gap: 0;
    line-height: 22px;
  }

  .tl-step strong {
    white-space: normal;
    line-height: 18px;
  }
}

/* a button that cannot be pressed now: the game's flat grey, no bevel, no hover */
.button:disabled,
.button:disabled:hover {
  border-image-source: url("assets/gui/button-off.png");
  color: var(--g8b);
  text-shadow: 2px 2px 0 #232323;
  cursor: default;
}

/* Settings: the game's Options screen. One centred column on the world, the size of the game's
   two buttons side by side; each setting is a button that says its value, a dim line under it */

main.options {
  display: grid;
  gap: 40px;
  width: min(620px, calc(100% - 2 * var(--gutter)));
  padding: 64px 0 96px;
  text-align: center;
}

.options-title {
  margin: 0;
  font-size: 54px;
  line-height: 60px;
  font-weight: 700;
  text-shadow: 6px 6px 0 #3f3f3f;
}

.options-said {
  margin: -16px 0 0;
}

.options-said:empty {
  display: none;
}

.options-body {
  display: grid;
  gap: 40px;
}

.options-group {
  display: grid;
  gap: 12px;
}

.options-group h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.options .button {
  display: block;
  width: 100%;
  padding: 6px 12px 8px;
  text-align: center;
}

.options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.options-form {
  display: grid;
}

.options-hint {
  margin: 0;
  color: var(--dim);
  text-shadow: 2px 2px 0 #2a2a2a;
  text-wrap: pretty;
}

.options-hint a {
  color: var(--white);
  text-shadow: var(--shadow);
}

.options-hint a:hover {
  color: var(--hover);
}

/* the name as it will look, painted live while a badge is picked */
.options-name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  min-width: 0;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.options-name > span {
  text-shadow: 4px 4px 0 #3f3f3f;
}

.options-name > .name {
  text-shadow: 4px 4px 0 color-mix(in srgb, var(--c1) 25%, #000);
}

.options-name > .name.blend {
  text-shadow: none;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.55));
}

/* whole face pixels: 5 screen pixels each, 4 on phones */
.options-name .head {
  flex: none;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.options-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.options .options-pick .button {
  width: auto;
}

.options-pick .select-face {
  display: flex;
  min-width: 0;
  padding: 0;
}

/* a long badge name fades out before the arrow, as cut text does everywhere */
.options-pick select {
  width: 100%;
  min-width: 0;
  padding: 6px 36px 8px 12px;
  text-align: left;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent calc(100% - 36px));
  mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent calc(100% - 36px));
}

@media (max-width: 760px) {
  main.options {
    gap: 32px;
    padding: 40px 0 64px;
  }

  .options-title {
    font-size: 36px;
    line-height: 40px;
    text-shadow: 4px 4px 0 #3f3f3f;
  }

  .options-said {
    margin-top: -8px;
  }

  .options-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .options-name {
    font-size: 27px;
    line-height: 36px;
  }

  .options-name > span {
    text-shadow: 3px 3px 0 #3f3f3f;
  }

  .options-name > .name {
    text-shadow: 3px 3px 0 color-mix(in srgb, var(--c1) 25%, #000);
  }

  .options-name > .name.blend {
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.55));
  }

  .options-name .head {
    width: 32px;
    height: 32px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  }
}
