/* =============================================================================
   Salto-Lauf — mini game in the homepage countdown card (assets/js/salto-lauf.js).
   Everything of the game carries the sl- prefix; the card only gets .is-salto while it is open.
   ============================================================================= */

.glas-countdown__play {
  display: flex;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(25, 45, 90, 0.1);
}

/* the gymnast waits in his handstand; a tap opens the game around him */
.salto-teaser {
  display: inline-flex;
  align-items: center;
  flex: 1;
  gap: 0.85rem;
  margin: 0 -0.55rem;
  padding: 0.45rem 0.6rem 0.45rem 0.55rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text, #192d5a);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.salto-teaser:hover,
.salto-teaser:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.salto-teaser:focus-visible {
  outline: 2px solid #ff3c8e;
  outline-offset: 2px;
}

.salto-teaser__figure {
  position: relative;
  flex: none;
  width: 42px;
  height: 48px;
  color: #192d5a;
}

/* a soft shadow under his hands */
.salto-teaser__figure::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -3px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(25, 45, 90, 0.22), rgba(25, 45, 90, 0));
}

.salto-teaser__figure svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  animation: saltoBalance 3.4s ease-in-out infinite;
}

.salto-teaser:hover .salto-teaser__figure svg {
  animation: saltoHop 0.9s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}

.salto-teaser__text {
  flex: 1;
  display: grid;
  gap: 0.1rem;
  line-height: 1.25;
}

.salto-teaser__text strong {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.salto-teaser__text span {
  font-size: 0.82rem;
  color: var(--muted, #4a5a80);
}

/* round chevron on the right, like the homepage tiles */
.salto-teaser__go {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.4s ease;
}

.salto-teaser__go::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid #192d5a;
  border-right: 2px solid #192d5a;
  transform: translateX(-2px) rotate(45deg);
}

.salto-teaser:hover .salto-teaser__go {
  transform: translateX(3px);
}

.salto-teaser[aria-expanded="true"] .salto-teaser__go::before {
  transform: translateY(-2px) rotate(135deg);
}

/* balancing in the handstand */
@keyframes saltoBalance {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2deg); }
}

@keyframes saltoHop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(0) scale(1.05, 0.93); }
  50% { transform: translateY(-5px) scale(0.97, 1.04); }
}

/* the copy that flies between the card and the stage */
.sl-fly {
  position: fixed;
  z-index: 95;
  pointer-events: none;
  color: #192d5a;
  transform-origin: 0 0;
}

.sl-fly svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .salto-teaser__figure svg,
  .salto-teaser:hover .salto-teaser__figure svg {
    animation: none;
  }
}

/* open: the card takes the whole width of the hero and stops floating */
body[data-design="glas"]:not([data-admin-design]) .glas-hero.is-salto {
  grid-template-columns: minmax(0, 1fr);
}

body[data-design="glas"]:not([data-admin-design]) .glas-countdown.is-salto {
  animation: none;
}

/* full screen: fixed positioning only works without filters or transforms on the way up */
html.sl-has-full,
html.sl-has-full body {
  overflow: hidden;
}

body[data-design="glas"]:not([data-admin-design]) .glas-countdown:has(.sl-is-full) {
  animation: none;
  transform: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.sl-has-full .glas-reveal,
html.sl-has-full .glas-hero {
  transform: none !important;
}

.salto[hidden] {
  display: none;
}

.salto {
  --sl-navy: #192d5a;
  --sl-pink: #ff3c8e;
  --sl-info: #98a8f8;
  --sl-lilac: #dfe4fd;
  --sl-muted: #4a5a80;
  --sl-glass-strong: rgba(255, 255, 255, 0.86);
  --sl-edge: rgba(255, 255, 255, 0.8);
  --sl-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color: var(--sl-navy);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
}

.sl-game {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: clamp(320px, 42vw, 440px);
  background: var(--sl-lilac);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  overscroll-behavior: contain;
  cursor: pointer;
  outline: none;
}

/* full-screen play on phones: the game covers the whole screen */
.sl-game.sl-is-full {
  position: fixed;
  inset: 0;
  z-index: 1000;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

.sl-game.sl-is-full .sl-hud {
  top: max(10px, env(safe-area-inset-top, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
}

.sl-game.sl-is-full .sl-overlay {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* while the world builds or folds away: no frame, no controls, just him and the scenery */
.sl-game {
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.sl-game.sl-building {
  background-color: rgba(251, 250, 246, 0.72);
  cursor: default;
}

/* ----- The stage: the game opens over the page, grown out of the gymnast in the card ----- */
.salto.sl-stage {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sl-scrim {
  display: none;
}

.sl-stage .sl-scrim {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(223, 228, 253, 0.45);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.sl-stage.sl-shown .sl-scrim {
  opacity: 1;
}

.sl-stage .sl-game {
  width: min(1100px, 100%);
  height: min(580px, calc(100vh - 120px));
  height: min(580px, calc(100dvh - 120px));
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 40px 90px -40px rgba(25, 45, 90, 0.5);
}

/* phones: the whole screen, with a clear close button */
html.sl-has-stage,
html.sl-has-stage body {
  overflow: hidden;
}

.sl-stage.sl-phone {
  padding: 0;
}

.sl-stage.sl-phone .sl-game {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

.sl-stage.sl-phone .sl-hud {
  top: max(12px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  align-items: center;
}

.sl-stage.sl-phone #sl-full {
  display: none;
}

.sl-stage.sl-phone #sl-close {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px -8px rgba(25, 45, 90, 0.5);
}

.sl-stage.sl-phone #sl-close svg {
  width: 20px;
  height: 20px;
}

.sl-stage.sl-phone .sl-overlay {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

.sl-hud .sl-chip {
  transition: opacity 0.4s ease;
}

/* only the close button stays while the world builds */
.sl-game.sl-building .sl-hud .sl-chip:not(#sl-close) {
  opacity: 0;
  pointer-events: none;
}

#sl-ov-start:not([hidden]) {
  animation: slRise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes slRise {
  from { opacity: 0; transform: translateY(10px); }
}

.sl-game:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sl-pink);
}

.sl-game canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sl-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.sl-chips {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
}

.sl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sl-glass-strong);
  border: 1px solid var(--sl-edge);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.sl-chip b {
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.05rem;
}

.sl-chip svg {
  width: 14px;
  height: 16px;
}

.sl-chip.sl-pop {
  transform: scale(1.18);
}

.sl-chip--btn {
  pointer-events: auto;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sl-navy);
  padding: 5px 9px;
  min-height: 0;
}

.sl-chip--btn svg {
  width: 15px;
  height: 15px;
}

.sl-chip--btn .sl-x,
.sl-chip--btn.sl-off .sl-w,
.sl-chip--btn .sl-shrink,
.sl-is-full .sl-chip--btn .sl-grow {
  display: none;
}

.sl-chip--btn.sl-off .sl-x,
.sl-is-full .sl-chip--btn .sl-shrink {
  display: inline;
}

.sl-chip--btn.sl-off {
  color: var(--sl-muted);
}

.sl-chip--btn:focus-visible {
  outline: 2px solid var(--sl-pink);
  outline-offset: 2px;
}

.sl-toast {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translate(-50%, -8px);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sl-navy);
  color: #fff;
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 900;
  font-size: 0.98rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-toast.sl-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sl-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}

.sl-overlay[hidden] {
  display: none;
}

.sl-overlay--right {
  justify-items: end;
}

.sl-panel {
  pointer-events: auto;
  cursor: default;
  width: min(370px, 100%);
  box-sizing: border-box;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sl-edge);
  box-shadow: 0 24px 50px -28px rgba(25, 45, 90, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 18px 20px 20px;
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.sl-panel h3 {
  margin: 0;
  font-family: var(--sl-display);
  font-size: 1.7rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--sl-navy);
}

.sl-panel p {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.sl-eyebrow {
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 800;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sl-pink) !important;
}

.sl-moves {
  display: grid;
  gap: 4px;
  width: 100%;
  font-size: 0.82rem;
  text-align: left;
}

.sl-moves div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(223, 228, 253, 0.7);
}

.sl-moves span {
  color: var(--sl-muted);
}

.sl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.sl-stat {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 4px;
  display: grid;
}

.sl-stat b {
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sl-stat span {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--sl-muted);
}

.sl-stat--new {
  background: var(--sl-pink);
  color: #fff;
}

.sl-stat--new span {
  color: rgba(255, 255, 255, 0.85);
}

.sl-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.sl-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--sl-navy);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.sl-btn:hover {
  background: #24407c;
  transform: translateY(-1px);
}

.sl-btn--ghost {
  background: rgba(25, 45, 90, 0.08);
  color: var(--sl-navy);
}

.sl-btn--ghost:hover {
  background: rgba(25, 45, 90, 0.14);
}

.sl-btn:focus-visible {
  outline: 2px solid var(--sl-pink);
  outline-offset: 2px;
}

.sl-btn[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.sl-btn[hidden] {
  display: none;
}

.sl-panel .sl-hint {
  font-size: 0.78rem;
}

.sl-panel--share {
  gap: 8px;
  padding: 12px 14px 14px;
}

.sl-panel--share img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(190px, 34vh);
  border-radius: 16px;
  box-shadow: 0 10px 24px -14px rgba(25, 45, 90, 0.5);
}

.sl-panel--share p {
  font-size: 0.8rem;
}

/* club pick and the ranking */
.sl-panel--entry,
.sl-panel--board {
  max-height: calc(100% - 4px);
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 8px;
  padding: 14px 16px 16px;
}

.sl-panel--entry h3,
.sl-panel--board h3 {
  font-size: 1.35rem;
}

.sl-field {
  width: 100%;
  display: grid;
  gap: 3px;
  text-align: left;
}

.sl-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sl-muted);
  padding-left: 4px;
}

.sl-inp {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  color: var(--sl-navy);
  border: 1px solid rgba(25, 45, 90, 0.16);
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.sl-inp[hidden] {
  display: none;
}

.sl-inp:focus {
  border-color: var(--sl-info);
  box-shadow: 0 0 0 3px rgba(152, 168, 248, 0.35);
}

.sl-inp--area {
  resize: vertical;
  min-height: 72px;
  line-height: 1.4;
}

#sl-ban-form {
  width: 100%;
  display: grid;
  gap: 8px;
}

#sl-ban-form[hidden] {
  display: none;
}

.sl-panel--ban .sl-btn {
  width: 100%;
}

.sl-ban-done {
  font-weight: 600;
}

.sl-sug {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: grid;
  gap: 2px;
  max-height: 148px;
  overflow-y: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(25, 45, 90, 0.1);
}

.sl-sug[hidden] {
  display: none;
}

.sl-sug button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  color: var(--sl-navy);
  border: 0;
  border-radius: 10px;
  padding: 7px 9px;
  background: transparent;
  cursor: pointer;
}

.sl-sug button:hover,
.sl-sug button.sl-on {
  background: rgba(223, 228, 253, 0.9);
}

.sl-nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}

.sl-ort {
  color: var(--sl-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.sl-empty {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--sl-muted);
}

.sl-kt {
  flex: none;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--sl-navy);
  color: #fff;
}

.sl-picked {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 7px 8px 7px 12px;
  background: rgba(223, 228, 253, 0.9);
  font-weight: 700;
  font-size: 0.92rem;
}

.sl-picked[hidden] {
  display: none;
}

.sl-picked button {
  border: 0;
  background: rgba(25, 45, 90, 0.08);
  color: var(--sl-navy);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.sl-panel .sl-err {
  color: var(--sl-pink);
  font-size: 0.8rem;
  font-weight: 650;
  min-height: 1.2em;
}

.sl-link {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--sl-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.sl-panel .sl-lead {
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 40ch;
}

.sl-panel--entry .sl-btn {
  width: 100%;
}

.sl-panel .sl-clubline {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--sl-navy);
}

.sl-panel .sl-clubline[hidden] {
  display: none;
}

.sl-clubline b {
  font-weight: 750;
}

.sl-clubline .sl-link {
  font-size: 0.76rem;
  margin-left: 2px;
}

.sl-clubline.sl-clubline--err {
  color: var(--sl-pink);
}

/* podium: 2 · 1 · 3, the steps rise from bronze to gold */
.sl-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.sl-podium:empty {
  display: none;
}

.sl-pod {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 1px;
  min-width: 0;
  animation: slRise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--d, 0) * 0.14s + 0.05s);
}

.sl-pod-name {
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.sl-pod small {
  font-size: 0.7rem;
  color: var(--sl-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sl-medal {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-bottom: 2px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 4px 10px -5px rgba(25, 45, 90, 0.6);
}

.sl-medal--gold {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e9b949 55%, #c4912a);
}

.sl-medal--silber {
  background: radial-gradient(circle at 35% 30%, #ffffff, #c9d0dc 55%, #97a1b3);
}

.sl-medal--bronze {
  background: radial-gradient(circle at 35% 30%, #ffe0c4, #d08b52 55%, #a3622f);
}

.sl-step {
  width: 100%;
  margin-top: 5px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(223, 228, 253, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: start center;
  padding-top: 4px;
  box-sizing: border-box;
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--sl-muted);
  transform-origin: bottom;
  animation: slStep 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--d, 0) * 0.14s);
}

@keyframes slStep {
  from { transform: scaleY(0.2); opacity: 0; }
}

.sl-pod--1 .sl-step {
  height: 58px;
  background: linear-gradient(180deg, #ff6aa8, var(--sl-pink));
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 1.45rem;
}

.sl-pod--2 .sl-step {
  height: 40px;
}

.sl-pod--3 .sl-step {
  height: 28px;
}

.sl-pod--1 .sl-pod-name {
  font-size: 0.86rem;
}

.sl-pod--me .sl-pod-name {
  color: var(--sl-pink);
}

.sl-pod--me .sl-step {
  box-shadow: 0 0 0 2px var(--sl-navy);
}

.sl-pod--empty small {
  font-style: italic;
}

.sl-pod--empty .sl-step {
  opacity: 0.55;
}

/* where your own club stands */
.sl-mine {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--sl-navy);
  color: #fff;
  text-align: left;
  animation: slRise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both;
}

.sl-mine[hidden] {
  display: none;
}

.sl-mine-place {
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sl-mine-text {
  display: grid;
  line-height: 1.25;
  min-width: 0;
}

.sl-mine-text small {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sl-pink);
}

.sl-mine-text b {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-mine-text span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
}

.sl-panel [hidden] {
  display: none !important;
}

/* result of the run on top of the ranking */
.sl-result {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(25, 45, 90, 0.1);
}

.sl-panel .sl-result h3 {
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
}

.sl-panel .sl-result h3.sl-new {
  color: var(--sl-pink);
}

.sl-panel .sl-result-sub {
  font-size: 0.78rem;
  font-weight: 650;
}

.sl-result .sl-clubline {
  margin-top: 4px;
}

.sl-board-title {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.sl-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(25, 45, 90, 0.07);
}

.sl-tab {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 6px 8px;
  background: transparent;
  color: var(--sl-muted);
  cursor: pointer;
}

.sl-tab[aria-selected="true"] {
  background: #fff;
  color: var(--sl-navy);
  box-shadow: 0 4px 12px -8px rgba(25, 45, 90, 0.6);
}

.sl-panel .sl-tabnote {
  font-size: 0.76rem;
}

.sl-board {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 3px;
}

.sl-board li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.sl-rank {
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 900;
  color: var(--sl-muted);
  font-variant-numeric: tabular-nums;
}

.sl-board li.sl-me {
  background: var(--sl-navy);
  color: #fff;
}

.sl-board li.sl-me .sl-rank,
.sl-board li.sl-me small {
  color: rgba(255, 255, 255, 0.8);
}

.sl-who {
  min-width: 0;
  display: grid;
  line-height: 1.2;
}

.sl-who b,
.sl-who small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-who b {
  font-size: 0.88rem;
}

.sl-who small {
  font-size: 0.72rem;
  color: var(--sl-muted);
}

.sl-m {
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sl-board li.sl-none,
.sl-board li.sl-gap {
  display: block;
  padding: 10px;
  color: var(--sl-muted);
  font-size: 0.85rem;
  text-align: center;
  background: transparent;
}

.sl-board li.sl-gap {
  padding: 0;
  line-height: 1;
}

@media (max-width: 480px) {
  .sl-hud {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .sl-game {
    height: 360px;
  }

  .sl-toast {
    font-size: 0.84rem;
    top: 48px;
  }

  .sl-chip {
    padding: 4px 9px;
    font-size: 0.72rem;
    gap: 4px;
  }

  .sl-chip b {
    font-size: 0.92rem;
  }

  .sl-chips {
    gap: 4px;
  }

  .sl-chip--btn {
    padding: 4px 7px;
  }

  .sl-panel .sl-hint {
    display: none;
  }
}

@media (max-width: 400px) {
  .sl-lbl {
    display: none;
  }
}

@media (max-width: 360px) {
  .sl-chip--medals {
    display: none;
  }
}

/* after a run: the result and the ranking side by side where there is room */
.sl-ranks {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
}

@media (min-width: 760px) {
  .sl-panel--board.sl-with-result {
    width: min(720px, 100%);
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .sl-with-result .sl-result {
    position: sticky;
    top: 0;
    align-self: center;
    padding: 0 18px 0 0;
    border-bottom: 0;
    border-right: 1px solid rgba(25, 45, 90, 0.1);
    gap: 6px;
  }

  .sl-with-result .sl-result .sl-btns {
    flex-direction: column;
    width: 100%;
    margin-top: 6px;
  }
}

a.sl-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sl-btn--share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sl-btn--share svg {
  width: 15px;
  height: 15px;
  margin-top: -2px;
}

/* the menu's own cross: closes the panel, not the game */
.sl-x {
  position: sticky;
  top: 0;
  z-index: 2;
  grid-column: 1 / -1;
  justify-self: end;
  width: 32px;
  height: 32px;
  margin: -6px -8px -32px 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(25, 45, 90, 0.08);
  color: var(--sl-navy);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sl-x:hover {
  background: rgba(25, 45, 90, 0.14);
}

.sl-x svg {
  width: 14px;
  height: 14px;
}

.sl-panel--share {
  position: relative;
}

.sl-panel--share .sl-x {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}

/* the whole ranking */
.sl-panel--all {
  width: min(440px, 100%);
}

.sl-panel--all .sl-inp {
  font-size: 16px;
}

.sl-board--all li {
  grid-template-columns: minmax(28px, auto) minmax(0, 1fr) auto;
}

.sl-board--all .sl-rank {
  font-size: 0.9rem;
}

/* phones: the panels start below the bar with the game's own cross, so the two never overlap */
.sl-stage.sl-phone .sl-overlay {
  padding-top: calc(max(10px, env(safe-area-inset-top, 0px)) + 60px);
}
