:root {
  --color-bg: #ede5da;
  --color-text: #1a1a1a;
  --color-placeholder: #d1d0cf;
  --color-line: #1a1a1a;
  --color-wrong: #af1e14;
  --color-solved: #239a63;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.theme-colorblind {
  --color-wrong: #d55e00;
  --color-solved: #0072b2;
}

* {
  box-sizing: border-box;
}

::selection {
  background: #ffb822;
  color: var(--color-text);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  overflow-y: scroll;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.page--fadeOut {
  opacity: 0;
}

.menu {
  width: 100%;
  max-width: 540px;
  padding: 120px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu__logo {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 48px;
}

.menu__tagline {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 64px;
  text-align: center;
}

.menu__nav {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  margin-bottom: 56px;
}

.menu__nav--wide {
  max-width: 280px;
}

.menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 12px;
  font-size: 17px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.menu__row:last-child {
  margin-bottom: 0;
}

.menu__row--link {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.menu__row--link:hover {
  opacity: 0.6;
}

.menu__row--link:disabled {
  cursor: default;
  opacity: 0.35;
}

.menu__row--link:disabled:hover {
  opacity: 0.35;
}

.menu__row--disabled {
  cursor: default;
  opacity: 0.35;
  pointer-events: none;
}

.menu__row--disabled:hover {
  opacity: 0.35;
}

.menu__arrow {
  --arrow-dir: 1;
  --arrow-shift: 0;
  font-size: 16px;
  display: inline-block;
  opacity: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform: rotate(var(--arrow-rotation, 0deg)) translateX(calc(var(--arrow-shift) * var(--arrow-dir) * 1px));
}

.menu__arrow--left {
  --arrow-dir: -1;
}

.menu__arrow--rotated {
  --arrow-rotation: 90deg;
}

.menu__row--link:hover .menu__arrow {
  --arrow-shift: 6;
}

.menu__row--link:hover #howToPlayArrow {
  --arrow-shift: 0;
}

.menu__arrow--shoot {
  --arrow-shift: 28 !important;
  opacity: 0 !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 1, 1), opacity 0.35s cubic-bezier(0.4, 0, 1, 1) !important;
}

.menu__stat {
  width: 100%;
  max-width: 280px;
}
