:root {
  color-scheme: dark;
  --bg: #17141f;
  --ink: #fff8ff;
  --muted: #ded0e8;
  --soft: rgba(255, 255, 255, 0.12);
  --panel: rgba(126, 91, 184, 0.48);
  --panel-strong: rgba(121, 80, 170, 0.72);
  --line: rgba(255, 255, 255, 0.22);
  --pink: #ff7593;
  --pink-strong: #ff4f80;
  --violet: #745cdf;
  --purple: #9b4bc2;
  --amber: #ffd85a;
  --mint: #57e2be;
  --bad: #ff6262;
  --good: #59e59a;
  --shadow: 0 26px 80px rgba(20, 9, 33, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 12%, rgba(117, 92, 223, 0.48), transparent 26rem),
    radial-gradient(circle at 82% 22%, rgba(255, 117, 147, 0.46), transparent 24rem),
    linear-gradient(135deg, #15131d 0%, #252134 44%, #14131d 100%);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.game-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  overflow: hidden;
}

.screen {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 36px);
}

.is-hidden {
  display: none !important;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-screen {
  display: grid;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.intro-screen > * {
  min-width: 0;
  max-width: 100%;
}

.visual-stage {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(116, 92, 223, 0.95), rgba(155, 75, 194, 0.94) 55%, rgba(255, 117, 147, 0.9)),
    #7d58c2;
  box-shadow: var(--shadow);
}

.visual-stage::before,
.visual-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.visual-stage::before {
  inset: 26px 22px auto auto;
  width: 120px;
  height: 120px;
  border: 22px solid rgba(255, 216, 90, 0.18);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(18deg);
}

.visual-stage::after {
  left: -44px;
  bottom: 34px;
  width: 190px;
  height: 82px;
  border: 1px solid rgba(87, 226, 190, 0.34);
  background: linear-gradient(90deg, rgba(87, 226, 190, 0.24), rgba(255, 255, 255, 0.03));
  transform: rotate(-18deg);
}

.cat-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(58vw, 260px);
  height: min(58vw, 260px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.12);
}

.cat-ear,
.cat-face,
.cat-eye,
.cat-nose,
.cat-whisker {
  position: absolute;
}

.cat-ear {
  top: 34px;
  width: 78px;
  height: 80px;
  background: #221b2f;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.cat-ear.left {
  left: 54px;
  transform: rotate(-22deg);
}

.cat-ear.right {
  right: 54px;
  transform: rotate(22deg);
}

.cat-face {
  inset: 70px 42px 36px;
  border-radius: 46% 46% 42% 42%;
  background: #221b2f;
}

.cat-eye {
  top: 48px;
  width: 18px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 216, 90, 0.7);
}

.cat-eye.left {
  left: 48px;
}

.cat-eye.right {
  right: 48px;
}

.cat-nose {
  left: 50%;
  top: 82px;
  width: 18px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pink);
}

.cat-whisker {
  top: 90px;
  width: 44px;
  height: 2px;
  background: rgba(255, 248, 255, 0.9);
}

.cat-whisker.left {
  left: 8px;
}

.cat-whisker.right {
  right: 8px;
}

.cat-whisker.one.left,
.cat-whisker.two.right {
  transform: rotate(10deg);
}

.cat-whisker.two.left,
.cat-whisker.one.right {
  top: 106px;
  transform: rotate(-10deg);
}

.floating-card {
  position: absolute;
  min-width: 92px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(45, 34, 64, 0.72);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 16px 32px rgba(20, 9, 33, 0.22);
}

.card-one {
  left: 24px;
  top: 28px;
}

.card-two {
  right: 24px;
  top: 28px;
}

.card-three {
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}

.card-four {
  left: 28px;
  bottom: 28px;
}

.card-five {
  right: 28px;
  bottom: 28px;
}

.desktop-partners {
  display: none;
}

.mobile-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.partner-link {
  color: var(--muted);
  text-decoration: none;
}

.mobile-partner-link {
  display: grid;
  min-width: 0;
  min-height: 76px;
  align-content: center;
  justify-items: center;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
  text-decoration: none;
}

.partner-link span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-partner-link span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-link img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.mobile-partner-link img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.mobile-partner-link.creativity img {
  width: min(112px, 88%);
  max-height: 30px;
}

.mobile-partner-link.cats img {
  width: min(96px, 78%);
  max-height: 30px;
}

.intro-panel,
.result-panel {
  min-width: 0;
  padding: clamp(22px, 5vw, 44px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 100%;
  font-size: clamp(2.05rem, 10vw, 5.7rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 18px rgba(20, 9, 33, 0.32);
}

h2 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.lead {
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.55;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.feature-list article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.feature-list span,
.how-card p,
.knowledge-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.how-card {
  padding: 16px;
  border: 1px solid rgba(255, 216, 90, 0.3);
  border-radius: 18px;
  background: rgba(255, 216, 90, 0.09);
}

.primary-button,
.secondary-button,
.restart-button,
.answer-button,
.lifeline-button {
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  padding: 16px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #ff8aa1);
  box-shadow: 0 12px 0 rgba(137, 39, 75, 0.62), 0 24px 44px rgba(255, 79, 128, 0.32);
}

.primary-button:active {
  transform: translateY(5px);
  box-shadow: 0 7px 0 rgba(137, 39, 75, 0.62), 0 16px 34px rgba(255, 79, 128, 0.24);
}

.game-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.game-header h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
}

.restart-button {
  min-width: 116px;
  min-height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 0 18px;
  box-shadow: 0 12px 28px rgba(20, 9, 33, 0.18);
}

.restart-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.hud div,
.result-stats div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 40px rgba(20, 9, 33, 0.2);
}

.hud span,
.result-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hud strong,
.result-stats strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 5vw, 2rem);
}

.play-area {
  display: grid;
  gap: 14px;
}

.category-panel,
.question-card,
.knowledge-panel {
  padding: 16px;
}

.question-card {
  order: 1;
}

.knowledge-panel {
  order: 2;
}

.category-panel {
  order: 3;
}

.category-track {
  display: grid;
  gap: 10px;
}

.track-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.track-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: var(--muted);
  font-weight: 900;
}

.track-item.is-active {
  border-color: rgba(255, 216, 90, 0.65);
  background: rgba(255, 216, 90, 0.12);
}

.track-item.is-done .track-dot {
  color: #10221d;
  background: var(--good);
}

.track-copy strong,
.track-copy span {
  display: block;
}

.track-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.question-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06)),
    rgba(139, 91, 190, 0.58);
}

.question-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -32% 32%;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 117, 147, 0.22);
  pointer-events: none;
}

.question-topline,
.timer-copy,
.result-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.category-pill,
.difficulty-pill {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.difficulty-pill {
  background: rgba(87, 226, 190, 0.18);
  color: #bfffee;
}

.timer-wrap {
  position: relative;
  z-index: 1;
  margin: 18px 0;
}

.timer-copy {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
}

.timer-copy strong {
  color: var(--amber);
}

.timer-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.timer-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--amber), var(--pink));
  transition: width 180ms linear;
}

#questionText {
  position: relative;
  z-index: 1;
  min-height: 96px;
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 5vw, 2.45rem);
  line-height: 1.08;
}

.inline-hint {
  position: relative;
  z-index: 1;
  margin: -4px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 216, 90, 0.38);
  border-radius: 16px;
  background: rgba(255, 216, 90, 0.12);
  color: #fff4bd;
  font-weight: 800;
  line-height: 1.35;
}

.answers-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.answer-button {
  width: 100%;
  min-height: 64px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(38, 28, 54, 0.68);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.answer-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 90, 0.8);
  background: rgba(52, 38, 75, 0.82);
}

.answer-button:disabled {
  cursor: not-allowed;
}

.answer-button.is-correct {
  border-color: var(--good);
  background: rgba(89, 229, 154, 0.24);
}

.answer-button.is-wrong {
  border-color: var(--bad);
  background: rgba(255, 98, 98, 0.24);
}

.answer-button.is-hidden-answer {
  visibility: hidden;
}

.lifelines {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.lifeline-button {
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
}

.lifeline-button strong,
.lifeline-button span {
  display: block;
}

.lifeline-button span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.lifeline-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.feedback-box {
  min-height: 54px;
  padding: 14px;
  border-radius: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.feedback-box.is-waiting {
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
}

.feedback-box.is-good {
  background: rgba(89, 229, 154, 0.18);
  color: #c9ffe6;
}

.feedback-box.is-bad {
  background: rgba(255, 98, 98, 0.18);
  color: #ffe0e0;
}

.secondary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.next-question-button {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  color: #10221d;
  background: linear-gradient(135deg, var(--mint), var(--good));
  box-shadow: 0 10px 0 rgba(18, 112, 78, 0.55), 0 22px 34px rgba(87, 226, 190, 0.25);
  cursor: pointer;
  font-weight: 950;
}

.next-question-button:active {
  transform: translateY(4px);
  box-shadow: 0 6px 0 rgba(18, 112, 78, 0.55), 0 14px 24px rgba(87, 226, 190, 0.2);
}

.result-screen {
  display: grid;
  align-items: center;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.review-item strong {
  display: block;
  margin-bottom: 4px;
}

.review-item span {
  color: var(--muted);
}

.result-actions {
  flex-direction: column;
  margin-top: 20px;
}

.result-actions .primary-button {
  margin-top: 0;
}

.credits-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

body.modal-open {
  overflow: hidden;
}

.credits-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 16, 0.76);
  backdrop-filter: blur(10px);
}

.credits-dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(700px, calc(100vw - 36px));
  width: min(700px, calc(100dvw - 36px));
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(20px, 3vw, 30px);
}

.credits-close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 900;
}

.credits-dialog h1 {
  clear: both;
  margin-bottom: 22px;
  text-align: center;
  font-size: clamp(2rem, 8vw, 3.8rem);
}

.credits-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.credits-block + .credits-block {
  margin-top: 14px;
}

.credits-block.center {
  text-align: center;
}

.credits-block h2 {
  margin-bottom: 12px;
  color: var(--amber);
}

.credits-block p {
  color: var(--muted);
  line-height: 1.55;
}

.credits-block strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 1.05rem;
}

.credits-block a {
  color: #bfffee;
  font-weight: 900;
  text-decoration: none;
}

.credits-logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
  margin-right: auto;
  margin-left: auto;
}

.credits-logo.creativity {
  width: min(240px, 100%);
  margin: 2px auto 14px;
}

.credits-logo.cats {
  width: min(180px, 100%);
  margin-top: 8px;
  margin-bottom: 12px;
}

.credits-closing {
  margin: 16px 0 0;
  color: var(--ink) !important;
  font-weight: 900;
}

@media (min-width: 720px) {
  .game-shell {
    padding: 12px 28px;
  }

  .intro-screen {
    grid-template-columns: 0.82fr 1.18fr;
    align-content: center;
    min-height: calc(100vh - 24px);
  }

  .feature-list,
  .answers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-button {
    width: auto;
    min-width: 245px;
  }

  .result-actions {
    flex-direction: row;
  }

  .result-actions .secondary-button {
    width: auto;
    min-width: 210px;
    margin-top: 0;
  }
}

@media (min-width: 980px) {
  .visual-stage {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    min-height: 230px;
  }

  .desktop-partners {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    width: min(360px, 86%);
    gap: 8px;
    align-self: start;
    justify-self: center;
    margin-top: 18px;
  }

  .intro-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .partner-link {
    display: grid;
    justify-items: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(20, 9, 33, 0.2);
  }

  .partner-link.creativity img {
    width: min(220px, 78%);
    max-height: 44px;
  }

  .partner-link.cats img {
    width: min(185px, 70%);
    max-height: 42px;
  }

  .intro-panel {
    padding: 28px 36px;
  }

  .intro-panel h1 {
    font-size: clamp(3.8rem, 5.8vw, 4.8rem);
  }

  .intro-panel .lead {
    font-size: 1.04rem;
    line-height: 1.42;
  }

  .intro-panel .primary-button {
    min-height: 54px;
    margin-top: 8px;
  }

  .mobile-partners {
    display: none;
  }

  .feature-list {
    margin: 16px 0;
  }

  .feature-list article {
    min-height: 82px;
    padding: 13px;
  }

  .how-card {
    padding: 13px 15px;
  }

  .play-area {
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    align-items: start;
  }

  .category-panel,
  .question-card,
  .knowledge-panel {
    order: initial;
  }

  .category-panel,
  .question-card,
  .knowledge-panel {
    padding: 18px;
  }

  .question-card {
    min-height: 620px;
  }
}

@media (max-width: 600px) {
  .game-shell {
    width: min(100vw, 390px);
    max-width: min(100vw, 390px);
    padding: 10px;
    margin: 0;
  }

  .screen {
    min-height: calc(100vh - 20px);
  }

  .hud div,
  .result-stats div {
    padding: 10px;
  }

  .visual-stage {
    width: min(calc(100vw - 20px), 370px) !important;
    max-width: min(calc(100vw - 20px), 370px) !important;
    min-height: 218px;
    border-radius: 22px;
  }

  .glass-panel {
    width: min(calc(100vw - 20px), 370px) !important;
    max-width: min(calc(100vw - 20px), 370px) !important;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
  }

  .intro-screen {
    gap: 12px;
  }

  .intro-panel {
    padding: 20px;
  }

  .lead {
    margin-bottom: 12px;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .intro-panel .primary-button {
    position: sticky;
    top: 10px;
    z-index: 6;
    margin: 12px 0 18px;
  }

  .feature-list {
    gap: 10px;
    margin: 16px 0;
  }

  .feature-list article {
    min-height: auto;
    padding: 13px;
  }

  .how-card {
    padding: 14px;
  }

  .floating-card {
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  .card-one {
    left: 20px;
    top: 28px;
  }

  .card-two {
    right: 18px;
    top: 24px;
  }

  .card-three {
    bottom: 24px;
  }

  .card-four {
    left: 18px;
    bottom: 24px;
  }

  .card-five {
    right: 18px;
    bottom: 24px;
  }

  .cat-badge {
    width: 190px;
    height: 190px;
  }

  .cat-ear {
    top: 26px;
    width: 62px;
    height: 64px;
  }

  .cat-ear.left {
    left: 40px;
  }

  .cat-ear.right {
    right: 40px;
  }

  .cat-face {
    inset: 52px 31px 25px;
  }

  .cat-eye {
    top: 39px;
  }

  .cat-eye.left {
    left: 36px;
  }

  .cat-eye.right {
    right: 36px;
  }

  .cat-nose {
    top: 66px;
  }

  .cat-whisker {
    top: 73px;
    width: 34px;
  }

  .cat-whisker.two.left,
  .cat-whisker.one.right {
    top: 87px;
  }

  .game-header {
    gap: 10px;
    margin-bottom: 8px;
  }

  .game-header h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.35rem);
  }

  .kicker {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .restart-button {
    min-width: 98px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .hud {
    gap: 8px;
    margin-bottom: 8px;
  }

  .hud span {
    font-size: 0.65rem;
  }

  .hud strong {
    font-size: 1.25rem;
  }

  .play-area {
    gap: 8px;
  }

  .category-panel {
    order: 1;
    padding: 10px 12px;
  }

  .question-card {
    order: 2;
    padding: 14px;
  }

  .knowledge-panel {
    order: 3;
  }

  .category-panel h2 {
    margin-bottom: 7px;
    font-size: 0.82rem;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category-track {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding-bottom: 0;
  }

  .track-item {
    width: auto;
    min-width: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    text-align: center;
  }

  .track-dot {
    display: block;
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: transparent;
    font-size: 0;
  }

  .track-item.is-active .track-dot {
    background: var(--amber);
    box-shadow: 0 0 14px rgba(255, 216, 90, 0.45);
  }

  .track-item.is-done .track-dot {
    background: var(--good);
  }

  .track-copy {
    display: none;
  }

  .question-topline {
    margin-bottom: 10px;
  }

  .timer-wrap {
    margin: 10px 0 14px;
  }

  .timer-bar {
    height: 10px;
  }

  #questionText {
    min-height: auto;
    margin-bottom: 14px;
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    line-height: 1.08;
  }

  .answers-grid {
    gap: 8px;
  }

  .answer-button {
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.93rem;
  }

  .lifelines {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 10px;
  }

  .lifeline-button {
    min-height: 50px;
    padding: 8px 5px;
    border-radius: 14px;
  }

  .lifeline-button strong {
    font-size: 0.9rem;
  }

  .lifeline-button span {
    font-size: 0.58rem;
  }

  .game-screen.feedback-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(10, 8, 16, 0.72);
    backdrop-filter: blur(8px);
  }

  .game-screen.feedback-open .knowledge-panel {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 50%;
    z-index: 20;
    width: auto !important;
    max-width: 420px !important;
    max-height: calc(100vh - 34px);
    margin: 0 auto;
    padding: 18px;
    overflow-y: auto;
    transform: translateY(-50%);
  }

  .game-screen.feedback-open .knowledge-panel h2 {
    font-size: 1.35rem;
  }

  .game-screen.feedback-open .knowledge-panel p {
    font-size: 1rem;
  }

  .game-screen:not(.feedback-open) .knowledge-panel {
    display: none;
  }

  .next-question-button {
    min-height: 58px;
    font-size: 1.05rem;
  }

  .credits-modal {
    padding: 10px;
    place-items: center start;
  }

  .credits-dialog {
    width: min(360px, calc(100vw - 20px)) !important;
    width: min(360px, calc(100dvw - 20px)) !important;
    max-width: min(360px, calc(100vw - 20px)) !important;
    max-width: min(360px, calc(100dvw - 20px)) !important;
    margin-left: 10px;
    padding: 18px;
    overflow-x: hidden;
  }

  .credits-block {
    padding: 16px;
    overflow: hidden;
  }

  .credits-block p {
    overflow-wrap: anywhere;
  }

  .credits-logo.creativity {
    width: min(150px, 62%);
    max-height: 46px;
  }

  .credits-logo.cats {
    width: min(118px, 52%);
    max-height: 44px;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }
}
