@import url(fonts.css);
html {
  height: 100vh;
}
body {
  font-family: "Circe", sans-serif;
  color: #FFFFFF;
  background-size: cover;
  font-style: normal;
  font-weight: 300;
  font-size: 18px;
  line-height: 22px;
  text-align: left;
  height: 100vh;
}
h1 {
  text-transform: uppercase;
}
.vh-100,
.h-100 {
  height: 100dvh !important;
}
main {
  animation: myAnim 3s ease 0s 1 normal forwards;
}
#textContent {
  color: var(--ym-game-text, #FFFFFF) !important;
}
.question__img {
  margin: auto;
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
}
.question__block {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-around;
  font-size: calc(3vw + 2vh + 2vmin);
  line-height: calc(3vw + 2vh + 2vmin);
  border-radius: 20px;
  text-align: center;
  color: var(--ym-game-text, #FFFFFF) !important;
  -webkit-text-fill-color: var(--ym-game-text, #FFFFFF);
}
@keyframes myAnim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.melody__block .header__block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 30px 20px;
}
.melody__block .header__block .logo--inner {
  width: 500px;
  margin: 20px;
}
.melody__block .header__block .teams__block {
  display: flex;
  margin: auto;
}
.melody__block .header__block .teams__block .teams__item {
  width: 180px;
  height: 100px;
  margin: 1rem;
  display: flex;
  font-size: 64px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  border: 10px dotted #000000;
  outline: solid 10px var(--bg-team);
  background-color: var(--bg-team);
}
.melody__block .game__block {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ym-game-text, #FFFFFF);
}
.melody__block .game__block .themes__block {
  margin: auto 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.melody__block .game__block .themes__block .themes__item {
  display: flex;
  align-items: center;
  position: relative;
}
.melody__block .game__block .themes__block .themes__item .themes__name {
  display: flex;
  align-items: center;
  font-size: 55px;
  line-height: 50px;
  font-weight: 700;
  width: 40%;
  height: 140px;
  border: 10px dotted #FFFFFF;
  border-left: none;
  padding: 20px 20px 20px 100px;
  position: relative;
  text-transform: uppercase;
}
.melody__block .game__block .themes__block .themes__item .themes__name--active {
  background-color: #ffffff;
  color: #000000;
}
.melody__block .game__block .themes__block .themes__item .tasks__block {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 85px;
  height: 85px;
  position: relative;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item::after {
  display: block;
  width: 170px;
  height: 190px;
  content: '';
  background: transparent url('/_img/note.png') 50% 50% no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -19px;
  left: -19px;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item--disabled {
  opacity: 0.4;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item--at::after {
  background: transparent url('/_img/note-at.png') 50% 50% no-repeat;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item--a::after {
  background: transparent url('/_img/note-a.png') 50% 50% no-repeat;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__score {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  border-radius: 50%;
  width: 85px;
  height: 85px;
  position: relative;
  background-color: #c2b8d9;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__score--active {
  background: #EA0029CC;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item:not(:first-of-type) .tasks__score::before {
  display: block;
  width: 120px;
  height: 10px;
  background-color: #FFFFFF;
  content: '';
  position: absolute;
  top: calc(50% - 5px);
  left: -180px;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item--noBorder .tasks__score::before {
  display: none !important;
  width: 120px;
  height: 10px;
  background-color: #ffffff;
  content: '';
  position: absolute;
  top: calc(50% - 5px);
  left: -180px;
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item--noBorder:nth-child(odd) {
  transform: translateX(-50px) translateY(-200px) scale(1.8);
}
.melody__block .game__block .themes__block .themes__item .tasks__block .tasks__item--noBorder:nth-child(even) {
  transform: translateX(-50px) translateY(200px) scale(1.8);
}

/* Своя игра — проектор: сетка по макету (чёрный фон, Circe bold в категориях) */
.melody__block--own-game {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: #000000;
}
.melody__block--own-game .header__block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: clamp(16px, 2.2vh, 32px) clamp(20px, 2.8vw, 44px) clamp(8px, 1.2vh, 18px);
  flex-shrink: 0;
  min-height: clamp(48px, 6.5vh, 80px);
}
.melody__block--own-game .own-game-viewer-logo {
  display: block;
  max-height: clamp(48px, 6.5vh, 80px);
  height: clamp(48px, 6.5vh, 80px);
  width: auto;
  max-width: min(320px, 34vw);
  margin: 0;
  object-fit: contain;
  flex-shrink: 0;
}
.melody__block--own-game .own-game-viewer-heading {
  display: flex;
  align-items: center;
  height: clamp(48px, 6.5vh, 80px);
  margin: 0;
  padding: 0;
  font-family: "Circe", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2.65rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}
.melody__block--own-game .game__block {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 clamp(12px, 2vw, 28px) clamp(12px, 2vh, 24px);
  color: #ffffff;
}
.melody__block--own-game .own-game-viewer-grid-scaler {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.melody__block--own-game .themes__block {
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  gap: clamp(6px, 1vh, 14px);
  justify-content: center !important;
}
.melody__block--own-game .themes__item {
  gap: clamp(10px, 1.4vw, 22px);
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.melody__block--own-game .themes__name {
  flex: 0 0 clamp(360px, 24.5vw, 480px);
  width: auto !important;
  min-width: 360px !important;
  max-width: 48%;
  box-sizing: border-box;
  min-height: calc(2.24em + 2 * clamp(10px, 1.4vw, 22px)) !important;
  height: auto !important;
  max-height: calc(3.36em + 2 * clamp(10px, 1.4vw, 22px)) !important;
  padding: clamp(10px, 1.4vw, 22px) !important;
  padding-left: clamp(14px, 1.8vw, 28px) !important;
  font-family: "Circe", sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.1rem, 2.2vw, 2.2rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  justify-content: center;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 12px !important;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.melody__block--own-game .themes__name::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(3px, 0.35vw, 5px);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.15) 100%);
  border-radius: 12px 0 0 12px;
  pointer-events: none;
}
.melody__block--own-game .themes__name--active {
  background-color: #ffffff;
  color: #000000;
}
.melody__block--own-game .tasks__block {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: clamp(8px, 1.2vw, 18px);
  justify-content: space-between !important;
  align-items: stretch;
  padding-right: clamp(4px, 0.8vw, 12px);
}
.melody__block--own-game .tasks__item {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  height: auto !important;
  border-radius: 12px !important;
  position: relative;
}
.melody__block--own-game .tasks__item::after {
  display: none !important;
}
.melody__block--own-game .tasks__item:not(:first-of-type) .tasks__score::before {
  display: none !important;
}
.melody__block--own-game .tasks__score {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(56px, 10vh, 128px);
  border-radius: 12px !important;
  font-size: clamp(1.35rem, 3.2vw, 2.85rem) !important;
  font-weight: 800 !important;
  background: #000000 !important;
  color: #ffffff;
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: none;
}
.melody__block--own-game .tasks__score--active {
  background: #ffffff !important;
  color: #000000;
}
.melody__block--own-game .tasks__item--disabled .tasks__score {
  background: #000000 !important;
  color: rgba(255, 255, 255, 0.28);
  opacity: 1;
  text-decoration: line-through;
  text-decoration-thickness: clamp(2px, 0.22vw, 3px);
  text-underline-offset: 4px;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none;
}

#clockdiv {
  max-width: 220px;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.5rem;
  height: 100%;
  color: #000000;
  padding: 10px 40px;
  border-radius: 178px;
  background: #ffffff url('/_img/phygi/timer.png') 50% 50% no-repeat;
  background-size: cover;
  position: relative;
  margin: auto;
}
#clockdiv > div {
  padding: 4px;
  border-radius: 3px;
  display: inline-block;
}
#clockdiv div > span {
  padding: 4px;
  border-radius: 3px;
  display: inline-block;
}
.stat__block {
  display: flex;
  margin: auto;
  flex-wrap: wrap;
  justify-content: space-around;
  min-width: 65vw;
}
.stat__block .stat__item {
  width: 250px;
  height: 130px;
  margin: 2rem;
  display: flex;
  flex-direction: column;
  font-size: 96px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  border: 10px dotted #000000;
  outline: solid 10px var(--bg-team);
  background-color: var(--bg-team);
}
.answer__block input {
  border: none;
  border-radius: 23px !important;
  height: 50px;
  position: relative;
}
.answer__block button.btnSubmit {
  height: 50px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 50% !important;
  position: absolute !important;
  right: 0;
  border: 4px solid #ffffff;
  z-index: 999 !important;
}
.answer__block button.btnStake {
  height: 50px;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  position: absolute !important;
  right: -100px;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
}
.answer__block button.btnStake--checked {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
/* Старый таймер (не квиз): не трогать main.quiz-task-screen с классом .quiz-progress-bar */
#progressBar:not(.quiz-progress-bar) {
  width: 80%;
  margin: 1rem auto;
  height: 32px;
  border-radius: 23px;
  background-color: #777777;
  color: #000000;
  font-weight: bold;
  font-size: 24px;
  position: relative;
  border: 1px solid #000;
}
#progressBar:not(.quiz-progress-bar) #progressTime {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #000000;
  text-align: center;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#progressBar:not(.quiz-progress-bar) #progressTask {
  width: 30%;
  height: 32px;
  border-radius: 23px;
  background-color: #ffffff;
  color: #000000;
  font-weight: bold;
  font-size: 22px;
}
.stat__itemN {
  display: flex;
  flex-basis: 75%;
  align-items: center;
  margin: 24px auto;
  font-size: 36px;
}
.stat__itemN .stat__num {
  margin-right: 20px;
}
.stat__itemN .stat__bg {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  display: flex;
  width: 100%;
  padding: 20px 15px;
  justify-content: space-between;
}
.stat__itemN .stat__bg .stat__name {
  text-transform: uppercase;
}
.btn-answer {
  color: #ffffff !important;
  height: 60px;
  flex-basis: 47%;
  min-height: 60px;
  max-width: 600px;
  width: 20%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  font-size: 1.5rem;
  line-height: 1.5rem;
}
.btn-answer--1 {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
.btn-answer--2 {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
.btn-answer--3 {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
.btn-answer--4 {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
.btn-answer--5 {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
.btn-answer--6 {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
.btn-answer--tinkoff {
  background: linear-gradient(97.27deg, #8368FE 6.76%, #505FFF 49.13%, #3DE9FF 102.89%);
  border: none;
  font-size: 1rem;
  line-height: 1rem;
  min-height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-answer--sber {
  background: linear-gradient(97.27deg, #68FE7F 6.76%, #1FD756 49.13%, #3DE9FF 102.89%);
  border: none;
  font-size: 1rem;
  line-height: 1rem;
  min-height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-answer--diasoft {
  background-color: #ffffff !important;
  border: 2px solid #ffffff;
  color: #000000 !important;
  text-transform: uppercase !important;
  font-size: 1.2rem;
  line-height: 1rem;
  min-height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px !important;
}
.btn-answer--onscreen {
  min-width: 15vw;
  margin: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 2rem;
}


/* quiz UI (merged from DGTL) */
main.quiz-task-screen {
  --quiz-content-max-width: min(1280px, 92vw);
  --quiz-player-header-bg: color-mix(in srgb, currentColor 7%, transparent);
  --quiz-player-header-border: color-mix(in srgb, currentColor 22%, transparent);
  --quiz-player-timer-fill: color-mix(in srgb, currentColor 35%, #4ae8a8);
  --quiz-player-timer-track: color-mix(in srgb, currentColor 10%, transparent);
  --ym-quiz-btn-bg: #000000;
  --ym-quiz-btn-bg-hover: #101010;
  --ym-quiz-btn-border: rgba(255, 255, 255, 0.92);
  --ym-quiz-btn-border-hover: #ffffff;
  --ym-quiz-btn-text: #ffffff;
  --ym-quiz-viewer-btn-bg: #000000;
  --ym-quiz-viewer-btn-bg-hover: #101010;
  --ym-quiz-viewer-btn-text: #ffffff;
  --ym-quiz-viewer-btn-bg-img: none;
  --ym-quiz-viewer-btn-bg-img-hover: none;
  --ym-quiz-viewer-letter-bg: #000000;
  --ym-quiz-viewer-letter-color: #ffffff;
}

/* Проектор (viewer): шире полотно, шапка как у игрока — номер/раунд и таймер в одном ряду */
main.quiz-task-screen:not(.quiz-task-screen--player) {
  --quiz-content-max-width: min(1720px, 94vw);
}

main.quiz-task-screen:not(.quiz-task-screen--player) .quiz-task-header__inner {
  background: var(--quiz-player-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--quiz-player-header-border);
  border-radius: clamp(14px, 2.4vw, 26px);
  padding: clamp(0.75rem, 1.6vh, 1.15rem) clamp(1rem, 2.8vw, 1.75rem);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.14);
}

main.quiz-task-screen:not(.quiz-task-screen--player) .quiz-task-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.75rem);
}

main.quiz-task-screen:not(.quiz-task-screen--player) .quiz-task-badge {
  font-size: clamp(0.78rem, min(1.5vw, 1.9vh), 1.05rem);
  padding: 0.35rem 0.7rem;
}

main.quiz-task-screen:not(.quiz-task-screen--player) #progressBar.quiz-progress-bar {
  width: min(440px, 40vw);
  min-width: 200px;
  padding: 0.45rem 0.55rem 0.5rem;
}

main.quiz-task-screen:not(.quiz-task-screen--player)
  #progressBar.quiz-progress-bar
  #progressTime.quiz-progress-time {
  font-size: clamp(1.65rem, min(4.2vw, 5.5vh), 3rem);
  padding-bottom: 0.4rem;
}

main.quiz-task-screen:not(.quiz-task-screen--player) .quiz-progress-track {
  height: clamp(7px, 0.95vh, 12px);
}

main.quiz-task-screen:not(.quiz-task-screen--player) .quiz-answers-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 1.6vh, 1.5rem) clamp(1.15rem, 2vw, 1.85rem);
}

main.quiz-task-screen:not(.quiz-task-screen--player) .btn-answer--quiz {
  min-height: clamp(74px, 8.5vh, 108px) !important;
  font-size: clamp(1.1rem, min(2.35vw, 2.9vh), 1.75rem) !important;
  padding: clamp(14px, 1.8vh, 22px) clamp(20px, 2.4vw, 30px) !important;
  border-radius: var(--ym-quiz-viewer-btn-radius, clamp(16px, 1.8vw, 22px)) !important;
  background-color: var(--ym-quiz-viewer-btn-bg, #000000) !important;
  background-image: var(--ym-quiz-viewer-btn-bg-img, none) !important;
  border: 1px solid var(--ym-quiz-btn-border, rgba(255, 255, 255, 0.92)) !important;
  color: var(--ym-quiz-viewer-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-viewer-btn-text, #ffffff);
  box-shadow: none !important;
}

main.quiz-task-screen:not(.quiz-task-screen--player) .btn-answer--quiz:hover,
main.quiz-task-screen:not(.quiz-task-screen--player) .btn-answer--quiz:focus-visible,
main.quiz-task-screen:not(.quiz-task-screen--player) .btn-answer--quiz:active {
  background-color: var(--ym-quiz-viewer-btn-bg-hover, #101010) !important;
  background-image: var(--ym-quiz-viewer-btn-bg-img-hover, none) !important;
  border-color: var(--ym-quiz-btn-border-hover, #ffffff) !important;
  color: var(--ym-quiz-viewer-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-viewer-btn-text, #ffffff);
}

main.quiz-task-screen:not(.quiz-task-screen--player) .btn-answer--quiz .quiz-choice-text {
  color: var(--ym-quiz-viewer-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-viewer-btn-text, #ffffff);
}

main.quiz-task-screen:not(.quiz-task-screen--player) .btn-answer--quiz .quiz-choice-letter {
  width: clamp(42px, 4.8vw, 54px);
  height: clamp(42px, 4.8vw, 54px);
  margin-right: clamp(12px, 1.5vw, 18px);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  background: var(--ym-quiz-viewer-letter-bg, #000000);
  color: var(--ym-quiz-viewer-letter-color, #ffffff);
  -webkit-text-fill-color: var(--ym-quiz-viewer-letter-color, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

main.quiz-task-screen.quiz-viewer-video-solo:not(.quiz-task-screen--player) {
  --quiz-content-max-width: min(1920px, 98vw);
}

/* Шапка игрока: мета, название вопроса, таймер */
main.quiz-task-screen .quiz-task-header {
  width: 100%;
  max-width: var(--quiz-content-max-width);
  margin: 0 auto 0.5rem;
  padding: 0 clamp(0.5rem, 2vw, 0.25rem);
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 5;
}
main.quiz-task-screen .quiz-task-header__inner {
  background: var(--quiz-player-header-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--quiz-player-header-border);
  border-radius: clamp(14px, 2.4vw, 22px);
  padding: clamp(0.65rem, 1.8vh, 1rem) clamp(0.85rem, 2.5vw, 1.35rem);
  box-shadow: 0 1px 0 color-mix(in srgb, currentColor 12%, transparent);
}
main.quiz-task-screen .quiz-task-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
main.quiz-task-screen .quiz-task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  max-width: 100%;
}
main.quiz-task-screen .quiz-task-badge {
  display: inline-flex;
  align-items: center;
  font-family: "Montserrat", "Circe", sans-serif;
  font-size: clamp(0.65rem, 2.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  color: inherit;
  -webkit-text-fill-color: currentColor;
}
main.quiz-task-screen .quiz-task-badge--reveal {
  background: color-mix(in srgb, #4ae8a8 12%, transparent);
  border-color: color-mix(in srgb, #4ae8a8 40%, transparent);
}

/* Своя игра — игрок: тема и стоимость над текстом задания */
main.quiz-task-screen--player .own-game-player-lead {
  width: 100%;
  text-align: center;
  font-size: clamp(0.95rem, 3.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  margin: 0 0 0.65rem;
  padding: 0 0.4rem;
  line-height: 1.28;
  color: inherit;
  opacity: 0.93;
}

/* Таймер игрока */
main.quiz-task-screen #progressBar.quiz-progress-bar {
  position: relative;
  width: min(280px, 42vw);
  min-width: 140px;
  height: auto;
  margin: 0;
  padding: 0.35rem 0.45rem 0.45rem;
  border-radius: 14px;
  background: var(--quiz-player-timer-track) !important;
  border: 1px solid var(--quiz-player-header-border) !important;
  box-sizing: border-box;
  flex-shrink: 0;
  /* Цифры и градиент полосы — от цвета текста из настроек, не от legacy #progressBar */
  color: var(--ym-game-text, #ffffff);
}
main.quiz-task-screen #progressBar.quiz-progress-bar #progressTime.quiz-progress-time {
  position: static;
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: "Roboto Condensed", "Montserrat", monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  letter-spacing: 0.02em;
  padding-bottom: 0.35rem;
  color: var(--ym-game-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-game-text, #ffffff) !important;
}
main.quiz-task-screen #progressBar.quiz-progress-bar #progressTime.quiz-progress-time span,
main.quiz-task-screen #progressBar.quiz-progress-bar #progressTime.quiz-progress-time .quiz-progress-sep {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
main.quiz-task-screen .quiz-progress-sep {
  opacity: 0.55;
  font-weight: 500;
  flex: 0 0 auto;
  padding: 0 0.04em;
  line-height: 1;
}
main.quiz-task-screen .quiz-progress-track {
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  overflow: hidden;
  width: 100%;
}
main.quiz-task-screen .quiz-progress-fill {
  height: 100%;
  border-radius: inherit;
  width: 0%;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--quiz-player-timer-fill) 85%, transparent),
    color-mix(in srgb, currentColor 55%, #7acbff)
  );
  transition: width 0.35s ease;
}
main.quiz-task-screen #progressBar.quiz-progress-bar.quiz-progress-bar--paused .quiz-progress-fill {
  opacity: 0.55;
  filter: saturate(0.75);
}
main.quiz-task-screen #progressBar.quiz-progress-bar.quiz-progress-bar--expired .quiz-progress-fill {
  background: linear-gradient(90deg, #f36b6b, #e03d3d) !important;
  box-shadow: none;
  opacity: 0.85;
}
main.quiz-task-screen #progressBar.quiz-progress-bar.quiz-progress-bar--expired {
  border-color: color-mix(in srgb, #e03d3d 42%, var(--quiz-player-header-border)) !important;
  background: color-mix(
    in srgb,
    #e03d3d 14%,
    var(--quiz-player-timer-track)
  ) !important;
}
main.quiz-task-screen #progressBar.quiz-progress-bar.quiz-progress-bar--expired #progressTime {
  opacity: 1;
}
main.quiz-task-screen #progressBar.quiz-progress-bar.quiz-progress-bar--expired .quiz-progress-sep {
  opacity: 0.75;
}

main.quiz-task-screen .quiz-task-header--reveal .quiz-task-header__inner {
  border-color: color-mix(in srgb, #4ae8a8 35%, var(--quiz-player-header-border));
  box-shadow: 0 1px 0 color-mix(in srgb, #4ae8a8 20%, transparent);
}
main.quiz-task-screen .quiz-player-attention-screen {
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(0.88rem, 3.4vw, 1.15rem) !important;
  letter-spacing: 0.07em;
  line-height: 1.4 !important;
  border-radius: clamp(16px, 2vw, 22px) !important;
  background: color-mix(in srgb, currentColor 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent) !important;
  padding: clamp(0.85rem, 2.5vh, 1.25rem) clamp(1rem, 3vw, 1.35rem) !important;
}
main.quiz-task-screen .quiz-answer-image-card {
  border-radius: clamp(16px, 2.2vw, 24px);
  overflow: hidden;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid var(--quiz-player-header-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  line-height: 0;
}
main.quiz-task-screen .quiz-answer-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: min(52vh, 560px);
}
main.quiz-task-screen #textContent.quiz-answer-reveal-plaque {
  border: 1px solid color-mix(in srgb, #4ae8a8 32%, var(--quiz-player-header-border)) !important;
  background: color-mix(in srgb, #4ae8a8 10%, transparent) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}
main.quiz-task-screen--player form.quiz-player-form .quiz-player-input-group:has(.quiz-answers-panel) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
main.quiz-task-screen--player form.quiz-player-form .quiz-player-input-group {
  position: relative;
  flex-wrap: nowrap !important;
  background: var(--quiz-player-header-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--quiz-player-header-border);
  border-radius: clamp(16px, 2.5vw, 22px);
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  gap: 0.5rem;
  box-shadow: 0 1px 0 color-mix(in srgb, currentColor 10%, transparent);
}
main.quiz-task-screen--player .quiz-player-answer-field {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent) !important;
  background: color-mix(in srgb, currentColor 7%, transparent) !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  font-family: "Montserrat", "Circe", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem !important;
  min-height: 52px;
}
main.quiz-task-screen--player .quiz-player-answer-field:focus {
  outline: 2px solid color-mix(in srgb, currentColor 45%, #4ae8a8);
  outline-offset: 2px;
}
main.quiz-task-screen--player .quiz-player-answer-field::placeholder {
  color: color-mix(in srgb, currentColor 48%, transparent);
  -webkit-text-fill-color: color-mix(in srgb, currentColor 48%, transparent);
}
main.quiz-task-screen--player form.quiz-player-form .btnSubmit.quiz-player-submit-btn {
  position: relative !important;
  right: auto !important;
  flex: 0 0 auto;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  background: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  box-shadow: none !important;
  z-index: 2 !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
main.quiz-task-screen--player form.quiz-player-form .btnSubmit.quiz-player-submit-btn:hover,
main.quiz-task-screen--player form.quiz-player-form .btnSubmit.quiz-player-submit-btn:focus-visible {
  transform: scale(1.04);
  background: #101010 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  filter: none;
}
main.quiz-task-screen--player form.quiz-player-form .btnSubmit.quiz-player-submit-btn i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}
main.quiz-task-screen--player .quiz-player-answer-received {
  font-family: "Unbounded", "Montserrat", sans-serif;
  letter-spacing: 0.05em;
}
main.quiz-task-screen--player .hint-btn {
  top: clamp(5.75rem, 14vw, 7.25rem);
}
main.quiz-task-screen--player .question__block #textContent.quiz-question-card {
  background: color-mix(in srgb, currentColor 4%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  box-shadow: none;
}
@media (max-width: 576px) {
  main.quiz-task-screen .quiz-task-meta-row {
    flex-direction: column;
    align-items: stretch;
  }
  main.quiz-task-screen #progressBar.quiz-progress-bar {
    width: 100%;
    max-width: none;
  }
}

/* Игрок (квиз): вопрос сразу под шапкой; форма внизу экрана */
main.quiz-task-screen--player {
  justify-content: flex-start !important;
}
main.quiz-task-screen--player > .question__block {
  margin-top: 0.45rem !important;
  margin-bottom: 0 !important;
  /* Не разносить контент по высоте (space-around) и не центрировать плашку внизу области */
  justify-content: flex-start !important;
  align-items: stretch !important;
}
/* Текст вопроса — сверху; по умолчанию flex row, из‑за этого align-items:center «вешал» плашку по центру высоты h-100 */
main.quiz-task-screen--player .question__block #textContainer {
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  align-self: stretch !important;
}
main.quiz-task-screen--player .question__block--text-only #textContainer {
  flex: 0 1 auto !important;
  min-height: 0 !important;
}
/* Не раздувать блок вопроса минимальной высотой — иначе пустое место под плашкой */
main.quiz-task-screen--player > .question__block--text-only {
  min-height: 0 !important;
  flex: 1 1 auto;
}
main.quiz-task-screen--player > form.quiz-player-form {
  margin-top: auto !important;
  /* Мобильный: отступ от низа; на десктопе — на 60px ближе к низу (40px) */
  margin-bottom: 100px !important;
}
main.quiz-task-screen--player > form.quiz-player-form.quiz-player-form--answered {
  margin-top: 0 !important;
}
main.quiz-task-screen--player > .quiz-task-cover-spacer {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}
/* После ответа: поднять «Ответ получен» примерно на высоту одной строки блока */
main.quiz-task-screen--answer-received .quiz-player-answer-received {
  margin-top: -2.125rem;
  margin-top: -1lh;
}
main.quiz-task-screen > .question__block {
  width: 100%;
  max-width: var(--quiz-content-max-width);
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
}
main.quiz-task-screen .question__block > video {
  flex-shrink: 0;
  width: 100%;
  max-height: min(50vh, 520px);
  height: auto;
  object-fit: contain;
}
main.quiz-task-screen.quiz-viewer-video-solo > .question__block > video {
  max-height: min(82vh, 1080px);
  flex: 1 1 auto;
  min-height: min(48vh, 360px);
}
/* Плашка вопроса: высокая и на всю ширину контейнера — и для текста только, и рядом с картинкой/видео */
main.quiz-task-screen .question__block #textContainer {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
main.quiz-task-screen .question__block #textContent.quiz-question-card {
  width: 100%;
  max-width: 100%;
  min-height: clamp(180px, 28vh, 420px);
  border-radius: clamp(20px, 2.2vw, 30px);
  padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1.75rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1.2;
}
/* Экран проектора: текст задания заметно крупнее (игрок — без этого блока) */
main.quiz-task-screen:not(.quiz-task-screen--player) .question__block #textContent.quiz-question-card {
  font-size: clamp(1.65rem, min(4vw, 6vh), 4.25rem);
  line-height: 1.16;
  letter-spacing: 0.035em;
  min-height: clamp(200px, 28vh, 480px);
  padding: clamp(1.85rem, 4vh, 3.25rem) clamp(2.15rem, 4.8vw, 3.75rem);
}
main.quiz-task-screen form.answer__block.quiz-player-form {
  max-width: var(--quiz-content-max-width);
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
main.quiz-task-screen form.quiz-player-form .input-group {
  max-width: none !important;
  width: 100% !important;
}
main.quiz-task-screen .question__block--text-only {
  flex: 1 1 auto;
  min-height: clamp(220px, 34vh, 520px);
}
main.quiz-task-screen .question__block--text-only #textContainer {
  flex: 1;
  min-height: 0;
  margin-bottom: 0 !important;
}
.answer-buttons-container .answer-buttons-group {
  flex: 1;
  min-width: 0;
}
main.quiz-task-screen > .answer-buttons-container.quiz-viewer-answers {
  max-width: var(--quiz-content-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 100px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
  font-size: initial;
  line-height: normal;
  -webkit-text-fill-color: initial;
}
@media (min-width: 769px) {
  main.quiz-task-screen--player > form.quiz-player-form {
    margin-bottom: 40px !important;
  }
  main.quiz-task-screen > .answer-buttons-container.quiz-viewer-answers {
    margin-bottom: 40px !important;
  }
}
.quiz-answers-row {
  margin-top: 0.5rem;
}
.quiz-answers-panel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.quiz-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  width: 100%;
  margin: 0 auto;
  font-family: "Bebas Neue Cyrillic", "Circe", sans-serif;
}
.btn-answer--quiz {
  flex-basis: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 68px !important;
  height: auto !important;
  border-radius: 18px !important;
  border: 1px solid var(--ym-quiz-btn-border, rgba(255, 255, 255, 0.92)) !important;
  box-shadow: none !important;
  background-color: var(--ym-quiz-btn-bg, #000000) !important;
  background-image: none !important;
  color: var(--ym-quiz-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-btn-text, #ffffff);
  font-family: "Bebas Neue Cyrillic", "Circe", sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 2vw, 1.35rem) !important;
  line-height: 1.15 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 14px 20px !important;
  text-align: center !important;
}
.btn-answer--quiz:hover,
.btn-answer--quiz:focus-visible,
.btn-answer--quiz:active {
  border-color: var(--ym-quiz-btn-border-hover, #ffffff) !important;
  background-color: var(--ym-quiz-btn-bg-hover, #101010) !important;
  background-image: none !important;
  color: var(--ym-quiz-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-btn-text, #ffffff);
  filter: none;
}
.btn-answer--quiz .quiz-choice-letter {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-right: 14px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-family: "Bebas Neue Cyrillic", "Circe", sans-serif;
  box-shadow: none;
}
.btn-answer--quiz .quiz-choice-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: var(--ym-quiz-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-btn-text, #ffffff);
  font-family: "Bebas Neue Cyrillic", "Circe", sans-serif !important;
}
.btn-answer--quiz .quiz-choice-spacer {
  flex: 0 0 56px;
  width: 56px;
  height: 1px;
  margin: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Игрок: единый стиль кнопок — чёрный фон, белая обводка, белый текст */
main.quiz-task-screen--player .btn-answer--quiz {
  background-color: var(--ym-quiz-btn-bg, #000000) !important;
  background-image: none !important;
  border: 1px solid var(--ym-quiz-btn-border, rgba(255, 255, 255, 0.92)) !important;
  color: var(--ym-quiz-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-btn-text, #ffffff);
  box-shadow: none !important;
}
main.quiz-task-screen--player .btn-answer--quiz:hover,
main.quiz-task-screen--player .btn-answer--quiz:focus-visible,
main.quiz-task-screen--player .btn-answer--quiz:active {
  background-color: var(--ym-quiz-btn-bg-hover, #101010) !important;
  background-image: none !important;
  border-color: var(--ym-quiz-btn-border-hover, #ffffff) !important;
  color: var(--ym-quiz-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-btn-text, #ffffff);
  filter: none;
}
main.quiz-task-screen--player .btn-answer--quiz .quiz-choice-letter {
  background: #000000;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: none;
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1;
}
main.quiz-task-screen--player .btn-answer--quiz .quiz-choice-text {
  color: var(--ym-quiz-btn-text, #ffffff) !important;
  -webkit-text-fill-color: var(--ym-quiz-btn-text, #ffffff);
}

/* Компактные кнопки (ставка финала и т.п.) — не растягивать на всю ширину */
main.quiz-task-screen--player .btn-answer--quiz.ogf-stake-quick-btn,
main.quiz-task-screen--player .ogf-stake-quick-row .btn-answer--quiz {
  width: auto !important;
  flex: 0 1 auto !important;
  min-width: clamp(4.5rem, 18vw, 6.5rem);
  justify-content: center !important;
}

main.quiz-task-screen--player .ogf-stake-step-btn,
main.quiz-task-screen--player form.quiz-player-form .ogf-stake-step-btn {
  flex: 0 0 auto;
  width: clamp(2.75rem, 8vw, 3.25rem);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  background: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  box-shadow: none !important;
}

main.quiz-task-screen--player .ogf-stake-step-btn:hover,
main.quiz-task-screen--player .ogf-stake-step-btn:focus-visible {
  background: #101010 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .quiz-answers-grid {
    grid-template-columns: 1fr;
  }
  .quiz-task-meta {
    max-width: 100%;
  }
  main.quiz-task-screen #progressBar.quiz-progress-bar {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .btn-answer--quiz .quiz-choice-text {
    padding-right: 0;
  }
}

/* Своя игра — ожидание «Внимание на экран» (игрок) */
main.quiz-task-screen--player.own-game-player-wait {
  min-height: 100dvh;
}

main.quiz-task-screen--player.own-game-player-wait .own-game-player-wait__header {
  width: 100%;
  max-width: min(1680px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 40px);
}

main.quiz-task-screen--player.own-game-player-wait .own-game-player-wait__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(48px, 6.5vh, 80px);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: clamp(8px, 1.2vh, 16px) 0 !important;
  border-radius: 0 !important;
}

main.quiz-task-screen--player.own-game-player-wait .own-game-player-wait__logo {
  display: block;
  max-height: clamp(40px, 6.5vh, 72px);
  height: clamp(40px, 6.5vh, 72px);
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  flex-shrink: 0;
}

main.quiz-task-screen--player.own-game-player-wait .own-game-player-wait__round-title {
  margin: 0;
  font-family: "Circe", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  text-align: right;
  flex-shrink: 0;
}

main.quiz-task-screen--player.own-game-player-wait > .question__block--text-only {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0 !important;
}

main.quiz-task-screen--player.own-game-player-wait .question__block #textContainer {
  flex: 0 1 auto !important;
  width: 100%;
  height: auto !important;
  justify-content: center !important;
  align-items: center !important;
}

main.quiz-task-screen--player.own-game-player-wait .question__block #textContent.quiz-question-card,
main.quiz-task-screen--player.ym-premium-player.own-game-player-wait #textContent.quiz-question-card {
  min-height: 0 !important;
  width: auto !important;
  max-width: min(520px, 92vw);
  background: #000000 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  padding: clamp(1rem, 2.5vh, 1.35rem) clamp(1.25rem, 4vw, 2rem) !important;
}

main.quiz-task-screen--player.own-game-player-wait .quiz-player-attention-screen {
  font-family: "Circe", sans-serif !important;
  font-size: clamp(0.95rem, 3.2vw, 1.15rem) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.35 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  body:has(main.quiz-task-screen) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  main.quiz-task-screen {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  main.quiz-task-screen .question__block {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 1rem !important;
  }
  main.quiz-task-screen .question__block .question__img {
    max-width: 90vw !important;
    max-height: 50vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  /* Игрок, мобильный: картинка сверху, текст снизу; imgAlign только на десктопе */
  main.quiz-task-screen--player > .question__block.question__block--player-mobile-text-image {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  main.quiz-task-screen--player > .question__block.question__block--player-mobile-text-image > video {
    order: 0;
    flex-shrink: 0;
  }
  main.quiz-task-screen--player > .question__block.question__block--player-mobile-text-image > img {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
  }
  main.quiz-task-screen--player > .question__block.question__block--player-mobile-text-image > #textContainer {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
  }
  main.quiz-task-screen--player > .question__block.question__block--player-mobile-text-image #textContent.quiz-question-card {
    padding-top: clamp(0.5rem, 1.8vh, 0.85rem) !important;
    padding-bottom: clamp(0.5rem, 1.8vh, 0.85rem) !important;
    padding-left: clamp(0.85rem, 2.5vw, 1.15rem) !important;
    padding-right: clamp(0.85rem, 2.5vw, 1.15rem) !important;
    min-height: 0 !important;
  }
  .quiz-answer-image-card .question__img {
    max-width: 90vw !important;
    max-height: 48vh !important;
  }
  #textContent.quiz-answer-reveal-plaque {
    font-size: clamp(1.125rem, 5.2vw, 1.85rem) !important;
  }
  main.quiz-task-screen #textContainer {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  main.quiz-task-screen {
    --quiz-content-max-width: min(1280px, 94vw);
  }
  main.quiz-task-screen .question__block--text-only {
    min-height: clamp(160px, 30vh, 400px);
  }
  main.quiz-task-screen .question__block--text-only #textContainer {
    margin-bottom: 0 !important;
  }
  main.quiz-task-screen .question__block #textContent.quiz-question-card {
    min-height: clamp(130px, 24vh, 320px);
  }
  main.quiz-task-screen:not(.quiz-task-screen--player) .question__block #textContent.quiz-question-card {
    font-size: clamp(1.2rem, min(5vw, 5.5vh), 2.5rem) !important;
    line-height: 1.2 !important;
    min-height: clamp(140px, 26vh, 360px);
  }
  main.quiz-task-screen--player:not(.ym-premium-player) #textContent {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.4 !important;
  }
  main.quiz-task-screen .answer__block {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
  }
  main.quiz-task-screen .answer-buttons-container {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  main.quiz-task-screen .answer-buttons-group .quiz-answers-grid {
    grid-template-columns: 1fr !important;
  }
  main.quiz-task-screen .answer-buttons-group .btn-answer--quiz {
    width: 100% !important;
  }

  /* Ожидание «Своя игра»: компактная плашка, без раздувания под min-height квиза */
  main.quiz-task-screen--player.own-game-player-wait > .question__block--text-only {
    min-height: 0 !important;
    justify-content: center !important;
  }
  main.quiz-task-screen--player.own-game-player-wait .question__block #textContent.quiz-question-card {
    min-height: 0 !important;
    padding: 0.65rem 1rem !important;
  }
  main.quiz-task-screen--player.own-game-player-wait .quiz-player-attention-screen {
    font-size: clamp(0.8rem, 3.5vw, 0.95rem) !important;
    line-height: 1.35 !important;
    letter-spacing: 0.04em !important;
  }
}
.stat__itemN {
  display: flex;
