/* База */
* {
  box-sizing: border-box;
}

/* Высота на весь экран */
html,
body {
  height: 100%;
}

@font-face {
  font-family: 'Dangrek';
  src: url('/template/fonts/dangrek.ttf') format('truetype');
  font-display: swap;
}

html,
body {
  margin: 0;
  font-weight: 600;
  font-family: 'Dangrek', sans-serif;
  font-weight: 300;
  line-height: 1.2;
  color: #333;
  background: #eee;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #08418c;
}

a:hover {
  color: #2196f3;
}

/* Каркас: тело тянется по высоте, футер прижат вниз */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  /* для мобильных браузеров */
}

/* Общая ширина страницы */
main,
footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


/* Шапка (фиксированная, центрирована, max 1200) */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 65px;
  display: flex;
  align-items: center;
  background: #f8f8ff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  z-index: 1000;
}

#logo {
  border-right: 1px solid #d9dee4;
  width: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контент: main заполняет свободное место, article растягивается внутри */
main {
  padding-top: 65px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

article {
  background: #ffffee;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card {
  position: fixed;
  left: 0;
  right: 0;
  margin: .3rem auto;
  margin-top: 8px;

  width: min(100% - .6rem, 1200px);
  box-sizing: border-box;

  min-height: 30px;
  background: #f9ef9c;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: 500;
  color: #6d6f71;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  z-index: 2;
}

.two-blocks {
  flex: 1 1 auto;
  display: flex;
  width: 100%;
  min-height: 0;
}

.two-blocks .left {
  flex: 0 0 50%;
  background: #f3f3f3;
  min-width: 0;
}

.two-blocks .right {
  flex: 1 1 auto;
  background: #fafafa;
  min-width: 0;
}

h1 {
  font-size: 20px;
  font-weight: 500;
  color: #1976d2;
  margin: 0;
}

/* Кнопка-«гамбургер» и меню (видно и на десктопе) */
.hb-hamburger {
  display: flex;
  position: absolute;
  right: 5px;
  padding: 10px;
  font-size: 33px;
  color: transparent;
  text-shadow: 0 2px 3px rgba(255, 255, 255, .5);
  -webkit-background-clip: text;
  background-clip: text;
}

.hb-title {
  font-size: 9px;
  color: #1976d2;
  font-weight: 500;
  margin-top: 7px;
  letter-spacing: 1px;
}

.hb-list {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 10px 0 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transform: translateY(-500px);
  z-index: 1100;
}

.hb-openList {
  transform: translateY(0);
  transition: transform .2s ease-in;
}

.hb-closeList {
  transform: translateY(-500px);
  transition: transform .2s ease-in;
}

.hb-button {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  color: #5c6bc0;
  font-size: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 0 10px 10px 0;
  margin: 10px;
  width: calc(100% - 20px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.hb-button img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

/* Футер (max 1200) */
footer {
  display: flex;
  gap: 20px;
  border-top: 1px solid #ffc400;
  background: #fffeea;
  min-height: 120px;
  font-size: .7rem;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.ft-text {
  margin: 25px;
  font-size: .6rem;
  flex: 1;
}


/* Левая группа иконок */
.left-icons {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 16px;
}

/* Пара "иконка + число" — один универсальный стиль */
.toolbar_icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar_icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.toolbar_icon span {
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
}

.toolbar_icon .gold {
  color: #d4af37;
}

.toolbar_icon .blue {
  color: #64b5f6;
}


.settings_icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  display: block;
  margin-right: 16px;
}


.quiz-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
  gap: 8px;
  overflow-y: auto;
  /* Прокрутка внутри quiz-list */
  height: calc(100vh - 185px);
  /* Высота с учётом header (65px) и footer (120px) */
  max-height: calc(100vh - 185px);
  /* Ограничиваем высоту */
}

.two-blocks .left {
  flex: 0 0 50%;
  background: #f3f3f3;
  min-width: 0;
  padding: 10px 0;
  margin-bottom: 120px;
  overflow: hidden;
  /* Убираем прокрутку из .left, она теперь в .quiz-list */
}

/* Элемент списка: кнопка + соединитель */
.quiz-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-item:first-child {
  margin-top: 150px;
}

.quiz-item:last-child {
  margin-bottom: 100px;
}

/* Кнопка: картинка 100x100 + номер по центру */
.quiz-button {
  position: relative;
  width: 100px;
  height: 100px;
}

.quiz-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.quiz-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 28px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  pointer-events: none;
}

/* Соединитель из трёх кружков 15x15 между элементами */
.quiz-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* расстояние между кружками */
  padding: 6px 0;
  /* расстояние между кнопками */
}

.quiz-connector .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #b0bec5;
  /* поменяй цвет при желании */
}

/* Правая колонка — свободная область (меняй при необходимости) */
.two-blocks .right {
  flex: 1 1 auto;
  background: #deefe4;
  min-width: 0;
}



.btn-emerald {
  --g1: #16a34a;
  /* emerald-600 */
  --g2: #22c55e;
  /* emerald-500 */
  --g3: #86efac;
  /* emerald-200 */

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 26px;
  text-decoration: none;

  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g2), var(--g1));
  background-size: 300% 100%;
  animation: emerald-shimmer 3s linear infinite;

}

.btn-emerald:any-link {
  color: #fff;
  text-decoration: none;
}

@keyframes emerald-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.btn-emerald:hover {
  filter: brightness(1.06);
}

.btn-emerald:active {
  transform: scale(.98);
}

.btn-emerald:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-track {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Равномерно распределяет элементы */
  gap: 12px; /* Минимальный отступ между элементами */
  flex: 1; /* Позволяет треку растягиваться на всю доступную ширину */
  min-width: 0; /* Предотвращает переполнение */
}

.reward-track .keys-container {
  display: flex;
  align-items: center;
  gap: clamp(8px, 3vw, 20px); /* Адаптивное расстояние между ключами */
  flex: 1; /* Позволяет контейнеру ключей растягиваться */
}

.reward-track .key {
  width: 32px;
  height: auto;
  display: block;
  flex-shrink: 0; /* Предотвращает сжатие ключей */
}

.reward-track .chest {
  width: 52px;
  height: auto;
  display: block;
  margin-left: clamp(16px, 4vw, 32px); /* Адаптивный отступ сундука от ключей */
  flex-shrink: 0; /* Предотвращает сжатие сундука */
}