:root {
  --bg: #050816;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(103, 232, 249, 0.42);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.46);
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --pink: #e879f9;
  --green: #34d399;
  --red: #fb7185;
  --yellow: #facc15;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 18, 45, 0.94), rgba(5, 8, 22, 0.98) 48%, #03040d),
    url("/assets/images/neon_gradient_bg.png");
  background-size: cover;
  background-position: center;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 18px;
  color: var(--muted);
  text-align: center;
}

.loading-screen img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  animation: pulse 2.4s ease-in-out infinite;
}

.loading-screen .brand-mark {
  width: 96px;
  height: 96px;
  font-size: 28px;
  border-radius: 26px;
  animation: pulse 2.4s ease-in-out infinite;
}

.page {
  min-height: 100vh;
  position: relative;
}

.hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 17, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background:
    radial-gradient(circle at 35% 25%, rgba(232, 121, 249, 0.38), transparent 34%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(96, 165, 250, 0.12));
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}

img.brand-mark {
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand-label,
.brand-label span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 26px;
  align-items: start;
  padding: 44px 0 42px;
}

.hero-copy {
  min-height: calc(100vh - 160px);
  display: grid;
  align-content: center;
  gap: 18px;
}

.eyebrow {
  width: fit-content;
  color: #b7f7ff;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.1);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  font-weight: 950;
}

.lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.stat-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-strip span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 10, 25, 0.86), rgba(5, 8, 22, 0.78)),
    url("/assets/images/glass_noise_texture.png");
  background-size: cover;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.room-top,
.lobby-main,
.game-main,
.side-panel,
.join-room-panel,
.final-panel {
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.94), rgba(7, 10, 26, 0.9)),
    url("/assets/images/glass_noise_texture.png");
  background-size: cover;
}

.setup-panel {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.panel-head span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.block-title {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  padding: 0 16px;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.input:focus {
  border-color: rgba(34, 211, 238, 0.54);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card,
.category-card,
.answer-button,
.player-row {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.choice-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: left;
  padding: 15px;
}

.choice-card strong {
  font-size: 17px;
}

.choice-card span,
.category-card span,
.category-card em {
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
}

.choice-card:hover,
.category-card:hover,
.answer-button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.32);
}

.is-muted {
  opacity: 0.62;
}

.choice-card.active,
.category-card.active {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(232, 121, 249, 0.16));
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.1);
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.range-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  padding: 16px;
}

.range-box span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
}

.range-box strong {
  color: #b7f7ff;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.switch-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn,
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 16px;
  font-weight: 900;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
}

.btn:hover,
.chip-btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 48%, var(--pink));
  color: #04101c;
  box-shadow: 0 18px 44px rgba(96, 165, 250, 0.25);
}

.chip-btn.active {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.12);
}

.error {
  border: 1px solid rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  border-radius: 16px;
  padding: 13px 14px;
  line-height: 1.5;
}

.category-section {
  padding: 0 0 48px;
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.category-panel,
.join-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

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

.category-card {
  min-height: 86px;
  display: grid;
  gap: 5px;
  padding: 12px;
  text-align: left;
  position: relative;
}

.category-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.category-card .mark {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--cyan);
}

.join-panel {
  align-content: start;
}

.room-page {
  min-height: 100vh;
  padding-bottom: 34px;
}

.room-shell {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

.room-top {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.room-code {
  font-size: clamp(36px, 7vw, 84px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.game-top {
  align-items: center;
}

.game-title {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

.lobby-grid,
.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.offline-lobby,
.offline-game {
  grid-template-columns: 1fr;
}

.lobby-main,
.game-main,
.side-panel,
.join-room-panel,
.final-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.invite-line {
  overflow-wrap: anywhere;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
}

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

.player-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.player-row.answer-answered {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(96, 165, 250, 0.09);
}

.player-row.answer-correct {
  border-color: rgba(52, 211, 153, 0.62);
  background:
    linear-gradient(90deg, rgba(52, 211, 153, 0.18), rgba(34, 211, 238, 0.08)),
    rgba(255, 255, 255, 0.055);
  animation: correctPulse 1.1s ease-out;
}

.player-row.answer-wrong {
  border-color: rgba(251, 113, 133, 0.48);
  background: rgba(251, 113, 133, 0.1);
}

.player-row.answer-missed {
  opacity: 0.74;
}

.player-name {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.player-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-score {
  min-width: 96px;
  display: grid;
  justify-items: end;
  gap: 2px;
  font-weight: 950;
}

.player-score span {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.answer-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.answer-status.correct {
  color: #06281d;
  background: var(--green);
}

.answer-status.wrong {
  color: #320710;
  background: var(--red);
}

.answer-status.answered {
  color: #06172c;
  background: var(--blue);
}

.answer-status.missed {
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.08);
}

.dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.dot.online {
  background: var(--green);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.48);
}

.stage-card {
  min-height: 420px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.focus-stage {
  min-height: calc(100vh - 220px);
}

.round-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.timer-wrap {
  min-width: 170px;
  display: grid;
  gap: 8px;
}

.timer-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink));
  transform-origin: left center;
  transition: transform 0.25s linear;
}

.timer-number {
  text-align: right;
  color: #b7f7ff;
  font-weight: 950;
  font-size: 24px;
}

.question-text {
  margin: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(3, 5, 15, 0.86), rgba(8, 12, 32, 0.74));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  padding: clamp(18px, 3vw, 30px);
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.media-box {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.22);
}

.media-visual {
  height: clamp(190px, 35vh, 390px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.12), transparent 44%),
    rgba(2, 4, 13, 0.9);
}

.media-box img,
.media-box video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-error .media-visual::before {
  content: "Изображение недоступно";
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-error img,
.media-error video {
  display: none;
}

.media-error .media-caption::after {
  content: " · медиа не загрузилось";
  color: rgba(250, 204, 21, 0.72);
}

.media-caption {
  padding: 10px 14px 14px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-button {
  min-height: 84px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
  background: rgba(5, 8, 22, 0.78);
}

.answer-button:disabled {
  opacity: 1;
}

.answer-button strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.answer-letter {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 950;
}

.answer-button.selected {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.14);
}

.answer-button.correct {
  border-color: rgba(52, 211, 153, 0.72);
  background: rgba(52, 211, 153, 0.14);
}

.answer-button.wrong {
  border-color: rgba(251, 113, 133, 0.62);
  background: rgba(251, 113, 133, 0.12);
}

.answer-meta {
  display: grid;
  gap: 6px;
}

.answer-count {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.reveal-note {
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(5, 8, 22, 0.7);
  border-radius: 18px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.correct-reveal {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.correct-reveal.has-winners {
  border-color: rgba(52, 211, 153, 0.58);
  background:
    radial-gradient(circle at 22% 24%, rgba(52, 211, 153, 0.24), transparent 34%),
    radial-gradient(circle at 76% 20%, rgba(232, 121, 249, 0.18), transparent 32%),
    rgba(6, 18, 22, 0.78);
  box-shadow: 0 20px 60px rgba(52, 211, 153, 0.14);
}

.correct-reveal span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.correct-reveal strong {
  color: #fff;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.12;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  left: 50%;
  top: 50%;
  animation: firework 1.1s ease-out forwards;
}

.confetti i:nth-child(2) { background: var(--pink); --x: 130px; --y: -54px; }
.confetti i:nth-child(3) { background: var(--green); --x: -120px; --y: -42px; }
.confetti i:nth-child(4) { background: #facc15; --x: 86px; --y: 66px; }
.confetti i:nth-child(5) { background: #60a5fa; --x: -86px; --y: 64px; }
.confetti i:nth-child(6) { background: #fb7185; --x: 34px; --y: -96px; }
.confetti i:nth-child(7) { background: #a78bfa; --x: -38px; --y: -88px; }
.confetti i:nth-child(8) { background: #34d399; --x: 158px; --y: 20px; }

.final-panel {
  min-height: 70vh;
  place-items: center;
  text-align: center;
}

.answer-key {
  width: min(980px, 100%);
  display: grid;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(5, 8, 22, 0.72);
  padding: 18px;
}

.answer-key-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.answer-key-round {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.14);
  color: #b7f7ff;
  font-weight: 950;
}

.answer-key-main {
  display: grid;
  gap: 7px;
}

.answer-key-main strong {
  line-height: 1.4;
}

.answer-key-main span {
  color: #b7f7ff;
  font-weight: 900;
}

.answer-key-main em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  line-height: 1.55;
}

.final-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.winner-name {
  color: #b7f7ff;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes correctPulse {
  0% {
    transform: scale(0.985);
    box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  }
  42% {
    transform: scale(1.015);
    box-shadow: 0 0 34px rgba(52, 211, 153, 0.36);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes firework {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  78% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x, 96px)), calc(-50% + var(--y, -72px))) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x, 96px)), calc(-50% + var(--y, -72px) + 16px)) scale(0.4);
  }
}

@media (max-width: 1160px) {
  .home-hero,
  .category-layout,
  .lobby-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-label {
    display: none;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .home-hero {
    padding-top: 26px;
  }

  .difficulty-grid,
  .mode-grid,
  .range-grid,
  .answers-grid,
  .share-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel,
  .choice-card,
  .category-card,
  .answer-button,
  .player-row,
  .answer-key,
  .answer-key-row {
    border-radius: 16px;
  }
}

@media (max-width: 440px) {
  .shell {
    width: min(100% - 24px, 1380px);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 14px 12px;
  }

  .answer-key-row {
    grid-template-columns: 1fr;
  }
}
