/* Downhill Dash interface. Sizes in vmin (short side of the screen). Colors in variables.*/
@font-face {
  font-family: 'Baloo 2';
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/font/baloo2-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/font/baloo2-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4;
}
:root {
  /* size unit for the whole interface: 1% of the shorter side of a 16:9 screen that fits inside this one (portrait: 9:16) */
  --u: min(1vh, calc(100vw / 177.8));
  --navy: #3b2414;
  --white: #fff;
  --gold: #ffd83a;
  --row: #f3dcb0;
  --rowline: #d9b47c;
  --blue: #1e8ff5;
  --green: #58c81a;
  --off: #9aa9c4;
  --s: clamp(0.62px, calc(var(--u) * 100 / 640), 1.35px); /* same scale as the canvas HUD (hs() in game.js) */
  --font:
    'Baloo 2', 'Trebuchet MS', 'Hiragino Sans', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Malgun Gothic', system-ui,
    sans-serif;
}
@media (orientation: portrait) {
  :root {
    --u: min(1vw, calc(100vh / 177.8));
  }
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1a2e;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  outline: none;
}
#fx {
  pointer-events: none;
  z-index: 2;
}
#ui canvas {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  cursor: inherit;
  pointer-events: none;
} /* shop previews (the rule above applies only to the game canvases) */
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: var(--font);
  font-weight: 800;
  color: var(--white);
  overflow: hidden;
}
:where(#ui) button {
  font: inherit;
  color: inherit;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}
#ui button:focus-visible,
#ui input:focus-visible {
  outline: calc(0.6 * var(--u)) solid var(--gold);
  outline-offset: calc(0.4 * var(--u));
}
#ui img {
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
[hidden] {
  display: none !important;
}
/* white text with navy outline, as in the design */
.ol {
  -webkit-text-stroke: calc(0.95 * var(--u)) var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 calc(0.45 * var(--u)) 0 var(--navy);
  line-height: 1.05;
}
[data-fit] {
  white-space: nowrap;
  min-width: 0;
}
.ol {
  padding: 0 calc(0.55 * var(--u));
} /* padding so the letter outline does not touch or get cut off */
/* 9-slice piece assembled on a canvas by nine.js (no 1 px seam) */
.nine {
  border-image: none !important;
  background-size: 100% 100% !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  background-repeat: no-repeat !important;
}

/* ---------- buttons ---------- */
.rbtn {
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  min-width: 44px;
  min-height: 44px;
  background: url(../assets/img/round-blue.webp) center/contain no-repeat;
  display: grid;
  place-items: center;
  transition:
    transform 0.08s,
    filter 0.08s;
}
.rbtn.red {
  background-image: url(../assets/img/round-red.webp);
}
.rbtn img {
  width: 56%;
  height: 56%;
  object-fit: contain;
}
/* wide button in 3 slices: the round ends stay whole and only the middle stretches (the artwork is never squashed) */
.btn {
  width: 100%;
  height: calc(12.2 * var(--u));
  box-sizing: border-box;
  border-style: solid;
  border-color: transparent;
  border-width: 0 calc(6 * var(--u));
  border-image-source: url(../assets/img/btn-blue.webp);
  border-image-slice: 0 74 fill;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(2.2 * var(--u));
  padding: 0 0 calc(1 * var(--u));
  font-size: calc(7 * var(--u));
  transition:
    transform 0.08s,
    filter 0.08s;
}
.btn.green {
  border-image-source: url(../assets/img/btn-green.webp);
}
.btn img {
  height: calc(7.6 * var(--u));
  flex: none;
  margin-left: calc(-2.5 * var(--u));
} /* icon and text go slightly into the round ends, as in the design */
.btn span {
  margin-right: calc(-2.5 * var(--u));
}
.btn:active,
.rbtn:active,
.pill:active {
  transform: translateY(3%) scale(0.97);
  filter: brightness(0.88);
}
.pill {
  background: linear-gradient(#f4faff, #cfe6ff);
  border: calc(0.55 * var(--u)) solid var(--blue);
  border-radius: calc(9 * var(--u));
  color: var(--navy);
  font-size: calc(4 * var(--u));
  height: calc(6.8 * var(--u));
  padding: 0 calc(2.6 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(1.5 * var(--u));
  box-sizing: border-box;
  box-shadow: 0 calc(0.5 * var(--u)) 0 var(--navy);
}
.pill img {
  height: calc(2.7 * var(--u));
  filter: brightness(0) saturate(100%) invert(13%) sepia(60%) saturate(2500%) hue-rotate(215deg);
}
#ui .mute .off,
#ui.muted .mute .on {
  display: none;
}
#ui.muted .mute .off {
  display: block;
}

/* ---------- start ---------- */
#title {
  position: absolute;
  inset: 0;
  display: none;
}
[data-screen='title'] #title {
  display: block;
}
[data-screen='title']:not([data-panel='']) #title > :not(.corner) {
  visibility: hidden;
}
[data-panel='shop'] #title .corner {
  visibility: hidden;
}
.logo {
  position: absolute;
  left: 50%;
  top: calc(2vh + env(safe-area-inset-top));
  width: min(74vw, 64vh);
  translate: -50% 0;
  animation: floaty 3.2s ease-in-out infinite;
}
.tts {
  position: absolute;
  left: 50%;
  top: 67vh;
  translate: -50% 0;
  width: max-content;
  max-width: 94vw;
  display: flex;
  align-items: center;
  gap: calc(2.4 * var(--u));
  font-size: calc(8.4 * var(--u));
  color: var(--gold);
  animation: pulse 1.7s ease-in-out infinite;
}
.tts span {
  transform: skewX(-8deg);
  padding: 0 calc(0.6 * var(--u));
}
/* yellow rays on both sides (artwork; the right one is the same, mirrored) */
.rays::before,
.rays::after {
  content: '';
  flex: none;
  height: 0.9em;
  aspect-ratio: 1;
  background: url(../assets/img/rays.webp) center/contain no-repeat;
}
.rays::after {
  transform: scaleX(-1);
}
.panel .ribbon.rays::before,
.panel .ribbon.rays::after {
  position: absolute;
  top: -12%;
  height: 1.9em;
  left: calc(var(--rh) * -2);
}
.panel .ribbon.rays::after {
  left: auto;
  right: calc(var(--rh) * -2);
}
/* best-score badge: dark blue pill with a white ring (flat color, so it is CSS) */
.chip {
  position: absolute;
  left: 50%;
  top: 79vh;
  translate: -50% 0;
  height: calc(8.6 * var(--u));
  min-width: calc(46 * var(--u));
  max-width: 90vw;
  box-sizing: border-box;
  padding: 0 calc(4 * var(--u)) calc(0.3 * var(--u));
  border-radius: calc(6 * var(--u));
  background: linear-gradient(#3a8cf0, #2468d8);
  border: calc(0.7 * var(--u)) solid #fff;
  box-shadow:
    0 0 0 calc(0.55 * var(--u)) var(--navy),
    0 calc(1 * var(--u)) 0 calc(0.2 * var(--u)) rgba(10, 20, 70, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--u));
  font-size: calc(4.8 * var(--u));
}
.chip img {
  height: calc(6.2 * var(--u));
  flex: none;
}
.chip b {
  flex: none;
}
.chip .ol {
  -webkit-text-stroke-width: calc(0.7 * var(--u));
  text-shadow: none;
}
.corner {
  position: absolute;
  display: flex;
  gap: calc(1.6 * var(--u));
  right: calc(2.4 * var(--u) + env(safe-area-inset-right));
  top: calc(2.4 * var(--u) + env(safe-area-inset-top));
}
.corner .rbtn {
  width: calc(10 * var(--u));
  height: calc(10 * var(--u));
}
@media (orientation: portrait) {
  .logo {
    top: calc(1.5vh + env(safe-area-inset-top));
  }
  .tts {
    top: 70vh;
  }
  .chip {
    top: 77.5vh;
    height: calc(10.6 * var(--u));
    min-width: calc(51 * var(--u));
    font-size: calc(5.4 * var(--u));
  }
  .corner .rbtn {
    width: calc(12 * var(--u));
    height: calc(12 * var(--u));
  }
  #settings .row {
    height: calc(10.5 * var(--u));
  }
}
@keyframes pulse {
  50% {
    scale: 1.05;
  }
}
@keyframes floaty {
  50% {
    translate: -50% calc(-1.2 * var(--u));
  }
}

/* ---------- HUD buttons (the formulas match hudLay() in game.js) ---------- */
#hud {
  position: absolute;
  display: none;
  gap: calc(10 * var(--s));
  top: calc(7 * var(--s) + env(safe-area-inset-top));
  right: calc(7 * var(--s) + env(safe-area-inset-right));
}
[data-screen='play'] #hud {
  display: flex;
}
[data-panel='clear'] #hud {
  display: none;
} /* with a panel open the buttons stay in place, darkened (as in the design) */
#hud .rbtn {
  width: max(calc(64 * var(--s)), 44px);
  height: max(calc(64 * var(--s)), 44px);
}
@media (orientation: portrait) {
  #hud {
    top: calc(104 * var(--s) + env(safe-area-inset-top));
    right: calc(18 * var(--s) + env(safe-area-inset-right));
  }
}

/* ---------- panels ----------
   The panel is a 9-piece art. The drawn border is thick (15/9/9 vmin), so the content
   goes a little into it: up 4.9, 4.5 wider on each side and down 4.*/
#shade {
  position: absolute;
  inset: 0;
  background: rgba(40, 20, 8, 0.66);
  display: none;
  pointer-events: auto;
}
#ui:not([data-panel='']) #shade {
  display: block;
}
.panel {
  --pw: calc(84.8 * var(--u));
  --py: 55.5%;
  position: absolute;
  left: 50%;
  top: var(--py);
  width: var(--pw);
  max-width: 96vw;
  translate: -50% -50%;
  display: none;
  flex-direction: column;
  gap: calc(1.4 * var(--u));
  box-sizing: border-box;
  pointer-events: auto;
  border-style: solid;
  border-color: transparent;
  border-width: calc(15 * var(--u)) calc(9 * var(--u)) calc(9 * var(--u));
  border-image-source: url(../assets/img/panel.webp);
  border-image-slice: 150 90 90 90 fill;
}
/* width and height of each panel, measured from the design (landscape / portrait) */
#pause {
  --pw: calc(65.4 * var(--u));
  --py: 58.5%;
}
#over {
  --pw: calc(84 * var(--u));
  --py: 54%;
}
@media (orientation: portrait) {
  .panel {
    --pw: calc(80 * var(--u));
    --py: 47%;
  }
  #pause {
    --pw: calc(55.3 * var(--u));
    --py: 55%;
  }
  #over {
    --pw: calc(74.9 * var(--u));
    --py: 43%;
  }
}
.panel::before {
  content: '';
  margin-top: calc(-4.9 * var(--u));
}
.panel > :not(.ribbon):not(.close):not(.badge) {
  margin-left: calc(-4.5 * var(--u));
  margin-right: calc(-4.5 * var(--u));
}
.panel > :last-child {
  margin-bottom: calc(-4 * var(--u));
}
[data-panel='pause'] #pause,
[data-panel='over'] #over,
[data-panel='clear'] #clear,
[data-panel='champ'] #champ,
[data-panel='shop'] #shop,
[data-panel='settings'] #settings,
[data-panel='langs'] #langs {
  display: flex;
  animation: pop 0.26s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes pop {
  from {
    scale: 0.86;
    opacity: 0;
  }
}
/* Straight title ribbon in 3 pieces: the rounded ends stay whole and the middle shrinks or stretches.
   --rw (width) is set per panel; the close X uses the same height to line up.*/
.panel {
  --rw: calc(56 * var(--u));
  --rh: calc(var(--rw) / 3.8);
}
#pause {
  --rw: calc(60 * var(--u));
}
#over {
  --rw: calc(66 * var(--u));
}
@media (orientation: portrait) {
  #pause {
    --rw: calc(56 * var(--u));
  }
  #over {
    --rw: calc(70 * var(--u));
  }
}
.ribbon {
  position: absolute;
  left: 50%;
  top: calc(calc(-10 * var(--u)) - var(--rh));
  width: var(--rw);
  height: var(--rh);
  translate: -50% 0;
  box-sizing: border-box;
  border-style: solid;
  border-color: transparent;
  border-width: 0 calc(var(--rh) * 0.88);
  border-image-slice: 0 150 fill;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--rh) * 0.5);
  padding-top: calc(var(--rh) * 0.16);
}
.ribbon span {
  flex: none;
  max-width: calc(var(--rw) - var(--rh) * 1.5);
  margin: 0 calc(var(--rh) * -1);
} /* text may enter the end-cap area, but not the folds */
.ribbon.blue {
  border-image-source: url(../assets/img/ribbon-wood.webp);
} /* wooden plank (map, pause, settings)*/
.ribbon.blue span {
  color: #fff;
}
#settings .ribbon span,
#langs .ribbon span {
  color: #fff;
}
.ribbon.red {
  border-image-source: url(../assets/img/ribbon-red.webp);
}
.close {
  position: absolute;
  right: calc(-8.5 * var(--u));
  top: calc(calc(-10 * var(--u)) - var(--rh) / 2 - calc(4 * var(--u)));
  width: calc(9.4 * var(--u));
  height: calc(9.4 * var(--u));
} /* at banner height, against the right edge */
#pause {
  gap: calc(1.9 * var(--u));
}
#pause > .btn {
  width: auto;
  margin-left: calc(-2.6 * var(--u));
  margin-right: calc(-2.6 * var(--u));
} /* stretches to the panel's negative margin */

/* game over */
.score {
  align-self: center;
  font-size: calc(15.7 * var(--u));
  margin-top: calc(-2 * var(--u));
  -webkit-text-stroke-width: calc(1.5 * var(--u));
  text-shadow: 0 calc(0.8 * var(--u)) 0 var(--navy);
}
.scoreLabel {
  align-self: center;
  font-size: calc(5.2 * var(--u));
  margin-top: calc(-3.2 * var(--u));
}
.rows {
  display: flex;
  flex-direction: column;
  gap: calc(1.3 * var(--u));
}
.row {
  display: flex;
  align-items: center;
  gap: calc(2.4 * var(--u));
  background: var(--row);
  border-radius: calc(5 * var(--u));
  padding: 0 calc(3 * var(--u));
  height: calc(6.2 * var(--u));
  font-size: calc(4.4 * var(--u));
  box-sizing: border-box;
}
.row > img {
  height: calc(5.3 * var(--u));
  width: calc(8 * var(--u));
  object-fit: contain;
  flex: none;
}
.row span {
  flex: 0 1 auto;
  margin-right: auto;
}
.row b {
  flex: none;
  font-size: calc(5 * var(--u));
}
.row .ol {
  -webkit-text-stroke-width: calc(0.65 * var(--u));
  text-shadow: none;
}
.best {
  align-self: center;
  font-size: calc(3.6 * var(--u));
  -webkit-text-stroke-width: calc(0.65 * var(--u));
  text-shadow: none;
}
.rec .best {
  display: none;
}
.btns {
  display: flex;
  gap: calc(1.6 * var(--u));
  align-items: center;
}
#over .btns {
  margin-left: calc(-2.6 * var(--u));
  margin-right: calc(-2.6 * var(--u));
} /* inside the panel frame */
.btns .btn {
  height: calc(12 * var(--u));
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  font-size: calc(5.6 * var(--u));
  gap: calc(1.4 * var(--u));
}
.btns .btn.green {
  flex: 1.7 1 0;
  font-size: calc(6.4 * var(--u));
}
.btns .btn img {
  height: calc(6 * var(--u));
}
@media (orientation: portrait) {
  .btns {
    flex-direction: column;
    gap: calc(1.8 * var(--u));
  }
  .btns .btn {
    flex: none;
    width: 87%;
    height: calc(13.6 * var(--u));
    font-size: calc(7 * var(--u));
    gap: calc(2.2 * var(--u));
  }
  .btns .btn.green {
    flex: none;
    width: 100%;
    height: calc(16 * var(--u));
    font-size: calc(7.6 * var(--u));
  }
  .btns .btn img {
    height: calc(9 * var(--u));
  }
}
.badge {
  position: absolute;
  right: calc(-14.5 * var(--u));
  top: calc(-11 * var(--u));
  width: calc(24 * var(--u));
  font-size: calc(4.1 * var(--u)) !important;
  aspect-ratio: 225/214;
  background: url(../assets/img/badge.webp) center/contain no-repeat;
  display: none;
  place-items: center;
  text-align: center;
  font-size: calc(4.2 * var(--u));
  rotate: 9deg;
  padding: calc(3 * var(--u));
  box-sizing: border-box;
  z-index: 1;
}
.badge .ol {
  -webkit-text-stroke-width: calc(0.8 * var(--u));
  text-shadow: none;
  line-height: 0.95;
  white-space: normal;
}
.rec .badge {
  display: grid;
  animation: stamp 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.badge::before,
.badge::after {
  content: '';
  position: absolute;
  width: calc(5.2 * var(--u));
  aspect-ratio: 132/200;
  background: url(../assets/img/rays.webp) center/contain no-repeat;
}
.badge::before {
  left: calc(-3 * var(--u));
  bottom: calc(-1 * var(--u));
  rotate: -40deg;
}
.badge::after {
  right: calc(-3.4 * var(--u));
  top: calc(-1 * var(--u));
  rotate: 140deg;
}
@keyframes stamp {
  from {
    rotate: -20deg;
    scale: 2;
    opacity: 0;
  }
}
@media (orientation: portrait) {
  .badge {
    right: calc(-12 * var(--u));
    top: calc(-5.8 * var(--u));
    width: calc(21 * var(--u));
    font-size: calc(3.4 * var(--u)) !important;
  }
  .rec .score {
    translate: calc(-3.5 * var(--u)) 0;
  }
}

/* settings */
#settings .row {
  height: calc(9.6 * var(--u));
  background: #fbeacb;
  border: calc(0.45 * var(--u)) solid var(--rowline);
  border-radius: calc(6 * var(--u));
  padding: 0 calc(2.3 * var(--u)) 0 calc(0.6 * var(--u));
  gap: calc(2.6 * var(--u));
}
#settings .row span {
  font-size: calc(4.6 * var(--u));
}
#settings label.row span {
  flex: none;
  width: calc(21 * var(--u));
  margin-right: 0;
} /* rows with volume bar: fixed-width label, aligned bars */
.ico {
  flex: none;
  width: calc(9.3 * var(--u));
  height: calc(9.3 * var(--u));
  margin: calc(-0.6 * var(--u)) 0;
  background: url(../assets/img/round-blue.webp) center/contain no-repeat;
  display: grid;
  place-items: center;
}
.ico img {
  width: 64%;
  height: 64%;
  object-fit: contain;
}
#settings input[type='range'] {
  flex: 1;
  min-width: 0;
  height: calc(7 * var(--u));
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  --v: 50%;
}
input[type='range']::-webkit-slider-runnable-track {
  height: calc(2.6 * var(--u));
  border-radius: calc(2 * var(--u));
  border: calc(0.5 * var(--u)) solid var(--navy);
  background: linear-gradient(90deg, var(--blue) var(--v), #aebfd6 var(--v));
}
input[type='range']::-moz-range-track {
  height: calc(1.6 * var(--u));
  border-radius: calc(2 * var(--u));
  border: calc(0.5 * var(--u)) solid var(--navy);
  background: linear-gradient(90deg, var(--blue) var(--v), #aebfd6 var(--v));
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  margin-top: calc(-2.2 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #dfe9f7);
  border: calc(0.55 * var(--u)) solid var(--navy);
  box-shadow: 0 calc(0.4 * var(--u)) 0 rgba(22, 36, 92, 0.5);
}
input[type='range']::-moz-range-thumb {
  width: calc(5 * var(--u));
  height: calc(5 * var(--u));
  border-radius: 50%;
  background: #fff;
  border: calc(0.55 * var(--u)) solid var(--navy);
}
.toggle {
  flex: none;
  width: calc(15 * var(--u));
  height: calc(6.8 * var(--u));
  border-radius: calc(5 * var(--u));
  background: var(--off);
  border: calc(0.55 * var(--u)) solid var(--navy);
  position: relative;
  box-sizing: border-box;
  transition: background 0.15s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: calc(0.3 * var(--u));
  left: calc(0.4 * var(--u));
  width: calc(5.1 * var(--u));
  height: calc(5.1 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #dfe9f7);
  box-shadow: 0 calc(0.3 * var(--u)) 0 rgba(22, 36, 92, 0.45);
  transition: transform 0.15s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.toggle[aria-checked='true'] {
  background: var(--green);
}
.toggle[aria-checked='true']::after {
  transform: translateX(calc(8 * var(--u)));
}
#settings .pill {
  flex: none;
  width: calc(27.4 * var(--u));
  justify-content: space-between;
  padding: 0 calc(2.6 * var(--u)) 0 calc(3.6 * var(--u));
}
#settings .pill span {
  flex: 0 1 auto;
  margin: 0;
  font-size: calc(4.6 * var(--u));
}

/* languages */
.langGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(1.3 * var(--u)) calc(2 * var(--u));
}
.langGrid .pill {
  width: 100%;
  height: calc(7.6 * var(--u));
  font-size: calc(3.9 * var(--u));
}
.langGrid .pill.sel {
  background: linear-gradient(#ffe98a, #ffc928);
  border-color: var(--navy);
}

/* reduced motion: no pulse, no spring entrance */
.less * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .tts,
  .logo {
    animation: none;
  }
}

/* ================= Tour mode ================= */
.btn.yellow {
  border-image-source: url(../assets/img/btn-yellow.webp);
  border-image-slice: 0 62 fill;
}
.ribbon.green {
  border-image-source: url(../assets/img/ribbon-green.webp);
}
.ribbon.yellow {
  border-image-source: url(../assets/img/ribbon-yellow.webp);
}
/* counter (coins, stars): blue pill with white ring, like the best-score badge */
.count {
  position: absolute;
  top: calc(calc(2.4 * var(--u)) + env(safe-area-inset-top));
  height: calc(9 * var(--u));
  min-width: calc(30 * var(--u));
  box-sizing: border-box;
  padding: 0 calc(3 * var(--u)) 0 calc(1.2 * var(--u));
  border-radius: calc(6 * var(--u));
  background: linear-gradient(#3a8cf0, #2468d8);
  border: calc(0.6 * var(--u)) solid #fff;
  box-shadow:
    0 0 0 calc(0.5 * var(--u)) var(--navy),
    0 calc(0.8 * var(--u)) 0 calc(0.2 * var(--u)) rgba(10, 20, 70, 0.3);
  display: flex;
  align-items: center;
  gap: calc(1.6 * var(--u));
  font-size: calc(5.4 * var(--u));
}
.count img {
  height: calc(7 * var(--u));
  flex: none;
}
.count .ol {
  -webkit-text-stroke-width: calc(0.7 * var(--u));
  text-shadow: none;
}
.count.coins {
  left: calc(calc(2.6 * var(--u)) + env(safe-area-inset-left));
}
.count.stars {
  right: calc(calc(2.6 * var(--u)) + env(safe-area-inset-right));
}
/* mode buttons on the start screen */
.modes {
  position: absolute;
  left: 50%;
  top: 63vh;
  translate: -50% 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: calc(2.4 * var(--u)) calc(3 * var(--u));
  width: min(92vw, calc(104 * var(--u)));
}
.modes .btn {
  height: calc(16.4 * var(--u));
  font-size: calc(7 * var(--u));
}
.modes .btn img {
  height: calc(10 * var(--u));
}
.modes .btn.yellow {
  grid-column: 1/3;
  justify-self: center;
  width: calc(42 * var(--u));
  height: calc(12.5 * var(--u));
  font-size: calc(6 * var(--u));
  margin-top: calc(1.4 * var(--u));
}
@media (orientation: portrait) {
  .modes {
    top: 57.5vh;
    grid-template-columns: 1fr;
    width: 56vw;
    gap: calc(2.4 * var(--u));
  }
  .modes .btn {
    height: calc(16 * var(--u));
    font-size: calc(7 * var(--u));
  }
  .modes .btn.yellow {
    grid-column: 1;
    width: 84%;
    height: calc(13.3 * var(--u));
    margin-top: calc(0.6 * var(--u));
  }
  [data-screen='title'] .logo {
    width: 62vw;
    top: calc(15 * var(--u) + env(safe-area-inset-top));
  }
  .count {
    height: calc(9 * var(--u));
    min-width: calc(26 * var(--u));
    font-size: calc(5 * var(--u));
  }
  .count img {
    height: calc(6 * var(--u));
  }
}

/* ---------- map ---------- */
#map {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: auto;
  overflow: hidden;
  background: #bfe0ff;
}
[data-screen='map'] #map {
  display: block;
}
[data-screen='map'] #title {
  display: none;
}
.mapArt {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  aspect-ratio: 16/9;
  width: max(100vw, 177.8vh);
}
@media (orientation: portrait) {
  .mapArt {
    aspect-ratio: 9/16;
    width: max(100vw, 56.25vh);
  }
}
.mapBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nodes {
  position: absolute;
  inset: 0;
}
.node {
  position: absolute;
  width: calc(15 * var(--u));
  aspect-ratio: 300/222;
  translate: -50% -66%;
  background: center/contain no-repeat;
  display: grid;
  place-items: center;
  padding-bottom: calc(1.4 * var(--u));
  box-sizing: border-box;
  transition: scale 0.12s;
}
.node.done {
  background-image: url(../assets/img/node-done.webp);
}
.node.lock {
  background-image: url(../assets/img/node-lock.webp);
  cursor: default;
  width: calc(12.5 * var(--u));
  aspect-ratio: 300/221;
}
.node.cur {
  background-image: url(../assets/img/node-cur.webp);
  width: calc(17.5 * var(--u));
  aspect-ratio: 300/239;
  animation: bob 1.4s ease-in-out infinite;
  z-index: 2;
}
/* number at the center of the dome (the artwork has the dirt base below, so the center sits at ~42% of the height) */
.node b {
  position: absolute;
  left: 50%;
  top: 33%;
  translate: -50% -50%;
  font-size: calc(4.9 * var(--u));
  line-height: 1;
  padding: 0;
  -webkit-text-stroke-width: calc(0.75 * var(--u));
  text-shadow: 0 calc(0.3 * var(--u)) 0 var(--navy);
}
.node.cur b {
  top: 41%;
  font-size: calc(6.6 * var(--u));
}
.node b {
  font-size: calc(5.4 * var(--u));
}
.node.lock b {
  top: 28%;
  font-size: calc(4.2 * var(--u));
  color: #e6ecf5;
}
.node .nst {
  position: absolute;
  left: 50%;
  bottom: calc(-3.4 * var(--u));
  translate: -50% 0;
  display: flex;
  gap: calc(0.2 * var(--u));
}
.node .nst img {
  width: calc(4.2 * var(--u));
}
.node.done:hover {
  scale: 1.08;
}
@keyframes bob {
  50% {
    translate: -50% -72%;
  }
}
/* golden rays on both sides of the current track */
.node.cur::before,
.node.cur::after {
  content: '';
  position: absolute;
  top: 8%;
  width: 30%;
  aspect-ratio: 132/200;
  background: url(../assets/img/rays.webp) center/contain no-repeat;
  left: -24%;
}
.node.cur::after {
  left: auto;
  right: -24%;
  transform: scaleX(-1);
}
#map .mapRibbon span {
  color: #fff;
  text-transform: uppercase;
}
#map .mapRibbon.rays::before,
#map .mapRibbon.rays::after {
  position: absolute;
  top: 8%;
  height: 1.3em;
  left: calc(var(--rh) * -1.9);
}
#map .mapRibbon.rays::after {
  left: auto;
  right: calc(var(--rh) * -1.9);
}
@media (orientation: portrait) {
  #map .mapRibbon.rays::before {
    left: calc(var(--rh) * -2.4);
  }
  #map .mapRibbon.rays::after {
    right: calc(var(--rh) * -2.4);
  }
}
#map .mapRibbon {
  --rw: calc(72 * var(--u));
  --rh: calc(var(--rw) / 4.8);
  top: calc(calc(0 * var(--u)) + env(safe-area-inset-top));
}
#map .count.coins {
  left: calc(calc(15 * var(--u)) + env(safe-area-inset-left));
}
.mapBack {
  position: absolute;
  top: calc(calc(2 * var(--u)) + env(safe-area-inset-top));
  left: calc(calc(2.4 * var(--u)) + env(safe-area-inset-left));
  width: calc(10 * var(--u));
  height: calc(10 * var(--u));
}
#ui .mapBack img {
  width: 66%;
  height: 66%;
  filter: drop-shadow(0 0 calc(0.3 * var(--u)) var(--navy));
}
#map .arrow {
  position: absolute;
  top: 47%;
  translate: 0 -50%;
  width: calc(13.5 * var(--u));
  height: calc(13.5 * var(--u));
}
#map .arrow img {
  width: 46%;
  height: 46%;
}
#map .arrow.left {
  left: calc(calc(2.4 * var(--u)) + env(safe-area-inset-left));
}
#map .arrow.left img {
  transform: scaleX(-1);
}
#map .arrow.right {
  right: calc(calc(4.4 * var(--u)) + env(safe-area-inset-right));
}
#map .arrow .lk {
  display: none;
  position: absolute;
  right: calc(-0.6 * var(--u));
  bottom: calc(-0.6 * var(--u));
  width: calc(5.4 * var(--u));
  height: auto;
}
#map .arrow.lockd .lk {
  display: block;
}
.mapPlay {
  position: absolute;
  left: 50%;
  bottom: calc(calc(3 * var(--u)) + env(safe-area-inset-bottom));
  translate: -50% 0;
  width: calc(44 * var(--u)) !important;
  height: calc(14 * var(--u));
  font-size: calc(8 * var(--u));
}
.mapPlay:disabled {
  filter: grayscale(1) brightness(0.85);
  cursor: default;
}
.mapLock {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  align-items: center;
  gap: calc(2 * var(--u));
  padding: calc(2 * var(--u)) calc(5 * var(--u));
  border-radius: calc(5 * var(--u));
  background: rgba(22, 36, 92, 0.78);
  font-size: calc(6 * var(--u));
  z-index: 3;
}
.mapLock img {
  height: calc(9 * var(--u));
}
#map.locked .mapLock {
  display: flex;
}
#map.locked .nodes {
  filter: grayscale(0.6) brightness(0.9);
}
@media (orientation: portrait) {
  #map .mapRibbon span {
    font-size: calc(var(--rh) * 0.6);
  }
  #map .mapRibbon {
    --rw: calc(67 * var(--u));
    --rh: calc(var(--rw) / 5.2);
    top: calc(calc(15 * var(--u)) + env(safe-area-inset-top));
  }
  #map .arrow.right {
    right: calc(calc(1 * var(--u)) + env(safe-area-inset-right));
  }
  .mapBack {
    width: calc(12 * var(--u));
    height: calc(12 * var(--u));
  }
  #map .count.coins {
    left: calc(calc(17 * var(--u)) + env(safe-area-inset-left));
  }
  .mapPlay {
    width: calc(47 * var(--u)) !important;
    height: calc(16 * var(--u));
    font-size: calc(9 * var(--u));
    bottom: calc(calc(5 * var(--u)) + env(safe-area-inset-bottom));
  }
}

/* ---------- champion (all mountains) ---------- */
#champ {
  --rw: calc(66 * var(--u));
  --py: 52%;
  align-items: center;
}
#champ .trophy {
  width: calc(30 * var(--u));
  margin-top: calc(-3 * var(--u));
  animation: stamp 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.2s both;
  filter: drop-shadow(0 calc(0.8 * var(--u)) calc(1.5 * var(--u)) rgba(255, 190, 40, 0.45));
}
#champ .champMsg {
  margin: 0;
  font-size: calc(4.8 * var(--u));
  text-align: center;
  color: #fff;
  max-width: 100%;
}
#champ .champRow {
  display: flex;
  gap: calc(2 * var(--u));
  justify-content: center;
}
#champ .coinRow {
  min-width: 0;
  padding: calc(0.4 * var(--u)) calc(3.4 * var(--u));
}
#champ .btns2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(1.6 * var(--u));
  width: 100%;
  margin-top: calc(0.6 * var(--u));
}
#champ .btns2 .btn {
  min-width: 0;
  width: auto;
  height: calc(12 * var(--u));
  font-size: calc(5 * var(--u));
  gap: calc(1 * var(--u));
  border-width: 0 calc(4.6 * var(--u));
}
#champ .btns2 .btn img {
  height: calc(6.6 * var(--u));
}
#champ .btns2 .btn span {
  min-width: 0;
  overflow: hidden;
}
@media (orientation: portrait) {
  #champ {
    --py: 42%;
  }
  #champ .btns2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- track complete ---------- */
#clear {
  --rw: calc(66 * var(--u));
  --py: 54%;
}
@media (orientation: portrait) {
  #clear {
    --rw: calc(66 * var(--u));
    --py: 39%;
  }
}
.starsRow {
  display: flex;
  justify-content: center;
  gap: calc(1.4 * var(--u));
  margin-top: calc(-4 * var(--u));
}
.starsRow img {
  width: calc(12.4 * var(--u));
  opacity: 0.95;
}
.starsRow img.got {
  animation: stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.starsRow img:nth-child(2).got {
  animation-delay: 0.35s;
}
.starsRow img:nth-child(3).got {
  animation-delay: 0.7s;
}
#clear .score {
  margin-top: calc(-3 * var(--u));
  font-size: calc(12.5 * var(--u));
}
#clear .scoreLabel {
  margin-top: calc(-2.6 * var(--u));
}
#clear .rows {
  gap: calc(1 * var(--u));
}
.goals .row {
  height: calc(6.3 * var(--u));
}
.goals .row i.ok {
  flex: none;
  width: calc(5.6 * var(--u));
  height: calc(5.6 * var(--u));
  border-radius: 50%;
  background: #fff;
  border: calc(0.5 * var(--u)) solid #9fb6d8;
  box-sizing: border-box;
}
.goals .row i.ok.yes {
  border: 0;
  border-radius: 0;
  background: url(../assets/img/check.webp) center/contain no-repeat;
}
.goals .row span {
  font-size: calc(4.2 * var(--u));
}
.goals .row b {
  font-size: calc(4.2 * var(--u));
  margin-left: auto;
}
.goals .row img {
  height: calc(5 * var(--u));
  width: auto;
  flex: none;
}
.coinRow b {
  font-size: calc(7.6 * var(--u));
}
.coinRow {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(46 * var(--u));
  box-sizing: border-box;
  gap: calc(2 * var(--u));
  padding: calc(0.4 * var(--u)) calc(6 * var(--u));
  border-radius: calc(5 * var(--u));
  background: var(--row);
  font-size: calc(6.4 * var(--u));
}
.coinRow img {
  height: calc(7 * var(--u));
}
.btns3 {
  display: grid;
  grid-template-columns: 22fr 25fr 27fr;
  gap: calc(1.4 * var(--u));
  margin-left: calc(-3 * var(--u)) !important;
  margin-right: calc(-3 * var(--u)) !important;
  margin-top: calc(0.6 * var(--u));
}
.btns3 .btn {
  height: calc(12 * var(--u));
  width: auto;
  min-width: 0;
  font-size: calc(4.8 * var(--u));
  gap: calc(1 * var(--u));
  border-width: 0 calc(4.6 * var(--u));
}
.btns3 .btn img {
  height: calc(6.6 * var(--u));
}
@media (orientation: portrait) {
  .btns3 .btn img {
    height: calc(8 * var(--u));
  }
}
.nonext .btns3 {
  grid-template-columns: 1fr 1fr;
}
@media (orientation: portrait) {
  .btns3 {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'n n' 'm r';
    margin-left: calc(-4.6 * var(--u)) !important;
    margin-right: calc(-4.6 * var(--u)) !important;
  }
  .btns3 .btn {
    font-size: calc(5.6 * var(--u));
  }
  .btns3 [data-act='next'] {
    grid-area: n;
    height: calc(14 * var(--u));
    font-size: calc(7 * var(--u));
  }
  .btns3 [data-act='map'] {
    grid-area: m;
  }
  .btns3 [data-act='restart'] {
    grid-area: r;
  }
}

/* ---------- shop ---------- */
#shop {
  --pw: min(calc(152 * var(--u)), 90vw);
  --rw: calc(70 * var(--u));
  --py: 55%;
}
#shop .close {
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  right: calc(-7 * var(--u));
  top: calc(calc(-6.5 * var(--u)) - var(--rh) * 0.7);
}
#shop .preview {
  margin-left: calc(2.4 * var(--u));
  margin-bottom: calc(1 * var(--u));
  border: calc(0.6 * var(--u)) solid #fff;
  box-shadow: 0 0 0 calc(0.5 * var(--u)) var(--rowline);
}
.ribbon.yellow span {
  color: #fff;
}
.shopCount {
  display: none;
  z-index: 3;
}
[data-panel='shop'] .shopCount {
  display: flex;
}
.shopBody {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: calc(2.4 * var(--u));
  margin-top: calc(-2 * var(--u));
}
/* preview: light sky, mountains in the background */
.preview {
  position: relative;
  border-radius: calc(4 * var(--u));
  background:
    url(../assets/img/par-forest-far.webp) center 70%/190% auto no-repeat,
    linear-gradient(#7fb6ec, #ffe2b0 70%, #f3dcb0);
  border: calc(0.5 * var(--u)) solid var(--rowline);
  display: grid;
  place-items: center;
  overflow: hidden;
}
#ui .preview canvas {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(5.4 * var(--u));
  translate: -50% 0;
  width: 96%;
  max-width: calc(44 * var(--u));
  aspect-ratio: 1;
}
.preview::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(3 * var(--u));
  translate: -50% 0;
  width: 80%;
  height: calc(9 * var(--u));
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #c9935f 0 55%, #a86d3f 56% 70%, #6e4326 71%);
  box-shadow: 0 calc(1.2 * var(--u)) 0 #5f6f8c;
}
.shopRight {
  display: flex;
  flex-direction: column;
  gap: calc(1.8 * var(--u));
  min-width: 0;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(1.6 * var(--u));
}
.tabs .tab {
  height: calc(8.4 * var(--u));
  font-size: calc(4.6 * var(--u));
  width: 100%;
  background: linear-gradient(#5fb2ff, #2a7fe6);
  border-color: var(--navy);
  color: #fff;
  -webkit-text-stroke: calc(0.6 * var(--u)) var(--navy);
  paint-order: stroke fill;
}
.tabs .tab.on {
  background: linear-gradient(#7be36b, #3fae2a);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(1.6 * var(--u));
}
.card {
  position: relative;
  border-radius: calc(3 * var(--u));
  background: linear-gradient(#fff6e2, #f1d9ad);
  border: calc(0.45 * var(--u)) solid var(--rowline);
  padding: calc(0.6 * var(--u)) calc(0.6 * var(--u)) calc(1 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(0.6 * var(--u));
  transition: scale 0.1s;
}
.card canvas {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.card.eq {
  border-color: var(--green);
  box-shadow: 0 0 0 calc(0.5 * var(--u)) var(--green);
}
.card .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.8 * var(--u));
  height: calc(5 * var(--u));
  min-width: 80%;
  padding: 0 calc(1.4 * var(--u));
  box-sizing: border-box;
  border-radius: calc(3 * var(--u));
  background: linear-gradient(#3a8cf0, #2468d8);
  border: calc(0.4 * var(--u)) solid #fff;
  font-size: calc(3.2 * var(--u));
  color: #fff;
}
.card .tag img {
  height: calc(3.6 * var(--u));
}
.card .tag.own {
  background: linear-gradient(#3a8cf0, #2468d8);
}
.card .tag.eq {
  background: linear-gradient(#7be36b, #3fae2a);
}
.card .lk {
  position: absolute;
  right: calc(1 * var(--u));
  bottom: calc(7 * var(--u));
  width: calc(4.4 * var(--u));
  filter: sepia(1) saturate(6) hue-rotate(-12deg) brightness(1.05);
} /* golden padlock */
.card.shake {
  animation: shake 0.35s;
}
@keyframes shake {
  25% {
    translate: calc(-1 * var(--u)) 0;
  }
  75% {
    translate: calc(1 * var(--u)) 0;
  }
}
@media (orientation: portrait) {
  #shop {
    --pw: 80vw;
    --rw: calc(62 * var(--u));
    --py: 52%;
  }
  #shop .close {
    z-index: 4;
    top: calc(-4 * var(--u)) !important;
    right: calc(-4 * var(--u)) !important;
    width: calc(11 * var(--u));
    height: calc(11 * var(--u));
  }
  #shop .preview {
    margin-left: 0;
  }
  .shopBody {
    grid-template-columns: 1fr;
  }
  .preview {
    height: calc(30 * var(--u));
  }
  #ui .preview canvas {
    width: auto;
    height: calc(24 * var(--u));
    bottom: calc(3.6 * var(--u));
  }
  .preview::after {
    width: 44%;
    height: calc(7 * var(--u));
    bottom: calc(2 * var(--u));
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(1.4 * var(--u));
  }
  #ui .card canvas {
    width: auto;
    height: calc(12 * var(--u));
  }
  .card .tag {
    font-size: calc(3.6 * var(--u));
    height: calc(5.4 * var(--u));
  }
  .tabs .tab {
    height: calc(8.4 * var(--u));
    font-size: calc(4.4 * var(--u));
  }
}
/* light cream buttons with a wooden border; icons on the shop tabs*/
.pill {
  background: linear-gradient(#fffaf0, #f1dcb3);
  border-color: #a8682c;
}
.tabs .tab img {
  height: 64%;
  flex: none;
}
/* the ribbon is a straight pill; its ends (150 px of 171 px height) keep the right proportion (x0.88), not stretched.
   Panel rows in a darker beige with a border, to stand out from the cream panel.*/
.panel .row {
  background: #f0d6a6;
  box-shadow: inset 0 0 0 calc(0.35 * var(--u)) #d8b47a;
}
.coinRow {
  background: #f0d6a6;
  box-shadow: inset 0 0 0 calc(0.35 * var(--u)) #d8b47a;
}
.ribbon span {
  max-width: calc(var(--rw) - var(--rh) * 0.9);
  margin: 0 calc(var(--rh) * -0.4);
}
.panel .ribbon.rays::before {
  left: calc(var(--rh) * -1.25);
}
.panel .ribbon.rays::after {
  right: calc(var(--rh) * -1.25);
}
/* end panel with 5 rows: slightly shorter rows and the panel a little lower (the ribbon does not touch the top)*/
#over .row {
  height: calc(5.4 * var(--u));
}
#over {
  --py: 56%;
}
/* shop tabs: the text shrinks to fit next to the icon (long words in French, Russian etc.)*/
.tabs .tab {
  min-width: 0;
  padding: 0 calc(1.2 * var(--u));
  gap: calc(1 * var(--u));
}
.tabs .tab span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
/* phone in landscape: the shop takes the whole height; the ribbon is smaller and sits on the panel border (stays on screen)*/
@media (orientation: landscape) and (max-height: 500px) {
  #shop {
    --rw: calc(42 * var(--u));
  }
  #shop .ribbon {
    top: calc(-13 * var(--u) - var(--rh) * 0.5);
  }
  #shop .close {
    top: calc(-13 * var(--u) - var(--rh) * 0.45);
  }
}
/* shop tab icons in the colors of the art (the general pill rule paints them dark blue)*/
.tabs .tab img {
  filter: none;
}
/* preview: landscape covering everything and dirt ground under the bike*/
.preview {
  background:
    linear-gradient(transparent 72%, #b57a46 72%, #8f5a30),
    url(../assets/img/par-forest-mid.webp) center 60% / auto 120% no-repeat,
    linear-gradient(#7fb6ec, #cfe6f5);
}
.preview::after {
  display: none;
} /* the dirt ground is already in the preview background*/
/* ribbon rays outside the ends (the position counts from inside the border, which is 0.88 x the height)*/
.panel .ribbon.rays::before {
  left: calc(var(--rh) * -2.05);
}
.panel .ribbon.rays::after {
  right: calc(var(--rh) * -2.05);
}

/* straight ribbon: the light face sits a little above the middle (the 3D lip is at the bottom); the text moves up to the center of the face*/
.ribbon {
  padding-top: 0;
  padding-bottom: calc(var(--rh) * 0.12);
}
/* shop tabs: icon at the left and text centered on the whole tab*/
.tabs .tab {
  position: relative;
  justify-content: center;
}
.tabs .tab img {
  position: absolute;
  left: 7%;
  top: 50%;
  translate: 0 -50%;
  height: 64%;
}
.tabs .tab span {
  flex: 0 1 auto;
  padding: 0 calc(5.6 * var(--u));
}
[data-panel='champ'] #hud {
  display: none;
}
.tabs .tab {
  font-size: calc(4 * var(--u));
}
.tabs .tab img {
  height: 54%;
  left: 6%;
}
.tabs .tab span {
  padding: 0 calc(4.6 * var(--u)) 0 calc(5.4 * var(--u));
}
.ribbon {
  padding-top: 0;
  padding-bottom: calc(var(--rh) * 0.03);
} /* measured: the text sits at the center of the face*/
#champ .btn img {
  max-width: 22%;
  object-fit: contain;
} /* the infinity icon is wide: leaves room for the text*/

/* End of src/style.css (complete file). */
