.keen-mini {
  position: relative;
  place-items: center;
  overflow: hidden;
  background: #fbf9ff;
}

.keen-mini-grid {
  width: 94px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.keen-mini-grid i {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e1d9ed;
  color: #746b7a;
  background: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.keen-mini-grid i.target {
  border-color: #ffd400;
  color: #5b21b6;
  background: #fff8c7;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.18);
}

.keen-mini-eye {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 38px;
  height: 25px;
  overflow: hidden;
  border: 2px solid #2f2436;
  border-radius: 70% 55%;
  background: #ffffff;
  transform: rotate(-7deg);
}

.keen-mini-eye::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 62%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #159a68;
  box-shadow: inset 0 0 0 5px #2f2436;
  transform: translate(-50%, -50%);
}

.keen-entry-shell {
  width: min(100%, 680px);
  overflow-x: clip;
}

.keen-cover-topbar {
  flex: 0 0 auto;
  font-weight: 850;
}

.keen-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 30px;
  padding: 18px 0 14px;
}

.keen-hero > div:first-child {
  min-width: 0;
}

.keen-hero .brand-mark {
  margin-bottom: 13px;
}

.keen-hero .product-title {
  font-size: 16px;
}

.keen-title {
  margin: 9px 0 15px;
  color: #6d28d9;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  animation: keen-title-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.keen-title span {
  color: #b87900;
}

.keen-hero .lead {
  font-size: 13px;
  line-height: 1.72;
}

.keen-cover-scene {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  border-top: 2px solid #d8caef;
  border-bottom: 5px solid #ffd400;
  background:
    linear-gradient(#f1edf7 1px, transparent 1px),
    linear-gradient(90deg, #f1edf7 1px, transparent 1px),
    #ffffff;
  background-size: 30px 30px;
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.13);
}

.keen-cover-grid {
  position: absolute;
  top: 25px;
  left: 22px;
  width: 132px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.keen-cover-grid i {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e1d9ed;
  border-radius: 4px;
  color: #716678;
  background: #ffffff;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.keen-cover-grid i.target {
  border-color: #ffd400;
  color: #5b21b6;
  background: #fff8c7;
  animation: keen-target-pulse 1.8s ease-in-out infinite;
}

.keen-cover-eye {
  position: absolute;
  right: 22px;
  bottom: 27px;
  width: 92px;
  height: 60px;
  overflow: hidden;
  border: 3px solid #2f2436;
  border-radius: 70% 55%;
  background: #ffffff;
  transform: rotate(-7deg);
}

.keen-cover-eye i {
  position: absolute;
  top: 50%;
  left: 62%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #38b987;
  box-shadow:
    inset 0 0 0 12px #2f2436,
    0 0 0 3px #ffffff;
  transform: translate(-50%, -50%);
  animation: keen-cover-look 2.8s ease-in-out infinite;
}

.keen-cover-eye b {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.keen-cover-ring {
  position: absolute;
  top: 58px;
  left: 88px;
  width: 35px;
  height: 35px;
  border: 3px solid #ffd400;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 212, 0, 0.18);
  animation: keen-ring 1.8s ease-out infinite;
}

.keen-data-strip {
  grid-template-columns: auto 1fr 1px auto 1fr;
}

.keen-guide-shell {
  width: min(100%, 700px);
}

.keen-guide-intro {
  padding-bottom: 26px;
}

.keen-guide-search {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(8, 45px);
  place-content: center;
  gap: 5px;
  margin: 12px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fdfcff;
}

.keen-guide-search i {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e1d9ed;
  border-radius: 5px;
  color: #726878;
  background: #ffffff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.keen-guide-search i.hit {
  border-color: #ffd400;
  color: #5b21b6;
  background: #fff8c7;
}

.keen-lobby-shell {
  width: min(100%, 720px);
}

.keen-setup {
  gap: 22px;
}

.keen-mode-grid,
.keen-category-grid,
.keen-dark-grid,
.keen-eye-size-grid {
  display: grid;
  gap: 7px;
}

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

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

.keen-eye-size-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.keen-mode-grid button,
.keen-category-grid button,
.keen-dark-grid button,
.keen-eye-size-grid button {
  min-width: 0;
  min-height: 46px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.keen-mode-grid button:hover,
.keen-category-grid button:hover,
.keen-dark-grid button:hover,
.keen-eye-size-grid button:hover {
  border-color: #cdbbea;
}

.keen-mode-grid button.selected,
.keen-category-grid button.selected,
.keen-dark-grid button.selected,
.keen-eye-size-grid button.selected {
  border-color: #7c3aed;
  color: #5b21b6;
  background: #f2ebff;
}

.keen-config-note,
.keen-guest-config {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-left: 4px solid #ffd400;
  background: #fff9d6;
}

.keen-config-note strong,
.keen-guest-config strong {
  color: #5b21b6;
  font-size: 13px;
}

.keen-config-note span,
.keen-guest-config span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.keen-game-shell {
  position: relative;
  width: min(100%, 940px);
  gap: 10px;
}

.keen-game-header {
  flex: 0 0 auto;
}

.keen-task-strip {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fdfcff;
}

.keen-task-strip > span {
  color: #5b21b6;
  font-size: 11px;
  font-weight: 900;
}

.keen-task-strip > strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #2f2436;
  font-size: 18px;
  font-weight: 900;
}

.keen-task-strip > small {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.keen-task-strip .keen-token.target {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #d8caef;
  border-radius: 6px;
  background: #ffffff;
  font-size: 23px;
}

.keen-task-strip .keen-token.target.color {
  border-color: color-mix(in srgb, var(--keen-color) 70%, #2f2436);
  background: var(--keen-color);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--keen-color) 28%, transparent);
}

.keen-board-wrap {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
}

.keen-grid {
  width: min(100%, 650px);
  aspect-ratio: 1;
  display: grid;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d9d3dc;
  border-radius: 7px;
  background: #e8e1ed;
}

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

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

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

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

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

.keen-cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* 对称模式左图为 span、右图为 button：清零 UA 默认内边距，
     否则 border-box 下 button 内容盒变窄，按百分比定宽的图形会偏小 */
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #2f2436;
  background: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.keen-cell:not(:disabled):hover {
  background: #fbf9ff;
  box-shadow: inset 0 0 0 2px #d8caef;
}

.keen-cell:not(:disabled):active {
  transform: scale(0.94);
}

.solo-coach-mode .keen-cell:not(:disabled):active {
  transform: none;
}

.keen-cell:disabled {
  opacity: 1;
  cursor: default;
}

.keen-cell.pending {
  box-shadow: inset 0 0 0 2px #ffd400;
}

.keen-cell.found {
  background: #f0fff8;
  box-shadow: inset 0 0 0 3px #159a68;
}

.keen-cell.wrong {
  animation: keen-wrong 520ms ease both;
}

.keen-cell.correct {
  animation: keen-correct 520ms ease both;
}

.solo-coach-mode .keen-cell.correct {
  box-shadow: inset 0 0 0 3px #159a68;
  animation: none;
}

.keen-token {
  display: inline-grid;
  place-items: center;
  color: #2f2436;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.keen-cell .keen-token.number,
.keen-cell .keen-token.letter,
.keen-cell .keen-token.arrow {
  font-size: clamp(17px, 4.2vw, 34px);
}

.keen-cell .keen-token.letter {
  color: #5b21b6;
}

.keen-cell .keen-token.arrow {
  color: #176b63;
  font-size: clamp(20px, 4.8vw, 38px);
}

.keen-cell .keen-token.emoji {
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif;
  font-size: clamp(19px, 4.5vw, 36px);
}

.keen-task-strip .keen-token.target.emoji {
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif;
  font-size: 25px;
}

.keen-token.color {
  width: 56%;
  aspect-ratio: 1;
  background: var(--keen-color);
  box-shadow: 0 3px 7px rgba(47, 36, 54, 0.14);
}

.keen-token.shape-square {
  border-radius: 3px;
}

.keen-token.shape-circle {
  border-radius: 50%;
}

.keen-token.shape-diamond {
  width: 45%;
  transform: rotate(45deg);
}

.keen-token.shape-triangle {
  border-radius: 1px;
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
}

.keen-found-mark {
  position: absolute;
  right: 3px;
  bottom: 2px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #159a68;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

/* ---------- 关灯记忆：暗格 / 翻开反馈 / 熄灯氛围 ---------- */
.keen-dark-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.keen-dark-strip > small {
  color: #6b5a8a;
}

.keen-dark-strip.lit > span {
  color: #4b3a6b;
}

.mode-search-dark .keen-board-wrap .keen-grid {
  background: #241b31;
  border-color: #1b1426;
}

/* 熄灯瞬间：棋盘整体轻沉一下（尊重减少动画偏好） */
.mode-search-dark .keen-board-wrap {
  animation: keen-lights-out 640ms ease both;
}

@keyframes keen-lights-out {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(0.55);
  }
  100% {
    filter: brightness(1);
  }
}

.keen-cell.keen-dark-cell {
  background:
    radial-gradient(120% 120% at 30% 20%, #37294d 0%, #241b31 58%, #1b1426 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.keen-cell.keen-dark-cell:not(:disabled):hover {
  background:
    radial-gradient(120% 120% at 30% 20%, #4a3766 0%, #2f2342 58%, #241b31 100%);
  box-shadow: inset 0 0 0 2px #8f6fd1;
}

.keen-cell.keen-dark-cell:not(:disabled):active {
  transform: scale(0.94);
}

/* 翻对：亮出目标，金绿高亮 */
.keen-cell.keen-dark-cell.revealed {
  background: #f0fff8;
  box-shadow: inset 0 0 0 3px #159a68;
  animation: keen-dark-pop 360ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 翻错：保持亮叉，暗红提示 */
.keen-cell.keen-dark-cell.revealed-wrong {
  background: #fff1f0;
  box-shadow: inset 0 0 0 3px #d64545;
  animation: keen-dark-pop 360ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.keen-wrong-mark {
  color: #d64545;
  font-size: clamp(14px, 3.4vmin, 22px);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

@keyframes keen-dark-pop {
  0% {
    transform: scale(0.82);
  }
  100% {
    transform: scale(1);
  }
}

/* 结算复盘：目标位置白框高亮 */
.keen-reveal {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.keen-reveal-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.keen-grid.reveal .keen-cell.is-target {
  box-shadow: inset 0 0 0 3px #ffd400, 0 0 0 1px #ffffff;
  background: #fffbe6;
}

@media (prefers-reduced-motion: reduce) {
  .mode-search-dark .keen-board-wrap,
  .keen-cell.keen-dark-cell.revealed,
  .keen-cell.keen-dark-cell.revealed-wrong {
    animation: none;
  }
}

.keen-mirror-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.keen-mirror-wrap section {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.keen-mirror-wrap section > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.keen-mirror-wrap .keen-grid {
  width: 100%;
}

/* 对称模式行数档位：列数固定 6、格子保持正方形，容器随行数变高；
   行数多时按视口高度收窄棋盘，避免 6×12 纵向溢出屏幕 */
.keen-rows-8 {
  aspect-ratio: 6 / 8;
  max-width: min(100%, 650px, calc(76vh * 0.75));
}

.keen-rows-10 {
  aspect-ratio: 6 / 10;
  max-width: min(100%, 650px, calc(76vh * 0.6));
}

.keen-rows-12 {
  aspect-ratio: 6 / 12;
  max-width: min(100%, 650px, calc(76vh * 0.5));
}

.keen-mirror-axis {
  align-self: stretch;
  display: block;
  background:
    repeating-linear-gradient(
      to bottom,
      #ffd400 0,
      #ffd400 8px,
      transparent 8px,
      transparent 15px
    );
}

.keen-eye {
  --eye-x: 0%;
  position: relative;
  width: 78%;
  aspect-ratio: 1.45;
  display: block;
  transform: scale(var(--eye-scale));
}

.keen-eye > i {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid #3a2e3f;
  border-radius: 70% 55%;
  background: #ffffff;
  box-shadow: 0 3px 7px rgba(47, 36, 54, 0.12);
}

.keen-eye > i > b {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--eye-x));
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--iris);
  box-shadow:
    inset 0 0 0 2px rgba(47, 36, 54, 0.28),
    0 0 0 2px #ffffff;
  transform: translate(-50%, -50%);
}

.keen-eye > i > b::before {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: #2f2436;
}

.keen-eye > i > b::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 18%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
}

.keen-eye.direction-left {
  --eye-x: -22%;
}

.keen-eye.direction-right {
  --eye-x: 22%;
}

.keen-eye.blinking > i {
  animation: keen-blink 3.2s var(--blink-delay) infinite;
}

.keen-eye > em {
  position: absolute;
  z-index: 2;
  top: -10%;
  width: 2px;
  height: 17%;
  border-radius: 2px;
  background: #3a2e3f;
}

.keen-eye > em:nth-of-type(1) {
  left: 28%;
  transform: rotate(-15deg);
}

.keen-eye > em:nth-of-type(2) {
  right: 25%;
  transform: rotate(15deg);
}

.keen-countdown-overlay {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #5b21b6;
  background: rgba(255, 255, 255, 0.94);
}

.keen-countdown-overlay small {
  font-size: 12px;
  font-weight: 850;
}

.keen-countdown-overlay strong {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 4px solid #ffd400;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(109, 40, 217, 0.16);
  font-size: 52px;
  line-height: 1;
  animation: keen-countdown-pop 800ms cubic-bezier(0.16, 1, 0.3, 1)
    infinite;
}

.keen-live-stats,
.keen-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.keen-live-stats > div,
.keen-result-metrics > div {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px 6px;
  background: #ffffff;
  text-align: center;
}

.keen-live-stats strong,
.keen-result-metrics strong {
  color: #2f2436;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.keen-live-stats span,
.keen-result-metrics span {
  color: var(--muted);
  font-size: 9px;
}

.keen-result-shell {
  width: min(100%, 720px);
}

.keen-result-metrics {
  margin: 16px 0;
}

.keen-result-metrics > div {
  min-height: 86px;
}

.keen-result-metrics strong {
  color: #5b21b6;
  font-size: 25px;
}

.keen-result-list {
  display: grid;
  gap: 7px;
}

.keen-result-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.keen-result-row.winner {
  border-color: #ffd400;
  background: #fff9d6;
}

.keen-result-row > span {
  color: #9b7100;
  font-weight: 900;
}

.keen-result-row > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keen-result-row > b {
  color: #5b21b6;
  font-size: 12px;
}

.keen-result-row > small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 9px;
}

@keyframes keen-title-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes keen-target-pulse {
  0%,
  100% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes keen-cover-look {
  0%,
  100% {
    left: 38%;
  }
  50% {
    left: 68%;
  }
}

@keyframes keen-ring {
  from {
    box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.4);
  }
  to {
    box-shadow: 0 0 0 19px rgba(255, 212, 0, 0);
  }
}

@keyframes keen-countdown-pop {
  from {
    opacity: 0.55;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes keen-wrong {
  0%,
  100% {
    box-shadow: none;
    transform: translateX(0);
  }
  35% {
    box-shadow: inset 0 0 0 3px #e5484d;
    transform: translateX(-3px);
  }
  65% {
    box-shadow: inset 0 0 0 3px #e5484d;
    transform: translateX(3px);
  }
}

@keyframes keen-correct {
  0% {
    box-shadow: inset 0 0 0 1px #159a68;
    transform: scale(0.9);
  }
  100% {
    box-shadow: inset 0 0 0 3px #159a68;
    transform: scale(1);
  }
}

@keyframes keen-blink {
  0%,
  44%,
  50%,
  100% {
    transform: scaleY(1);
  }
  47% {
    transform: scaleY(0.08);
  }
}

@media (max-width: 700px) {
  .keen-hero {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 16px;
  }

  .keen-cover-scene {
    min-height: 190px;
  }

  .keen-title {
    font-size: 42px;
  }

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

  .keen-game-shell {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 480px) {
  .keen-hero {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 12px;
  }

  .keen-hero .product-title {
    font-size: 13px;
  }

  .keen-title {
    font-size: 35px;
  }

  .keen-cover-scene {
    min-height: 168px;
  }

  .keen-cover-grid {
    top: 18px;
    left: 9px;
    width: 86px;
    gap: 2px;
  }

  .keen-cover-grid i {
    font-size: 9px;
  }

  .keen-cover-eye {
    right: 8px;
    bottom: 22px;
    width: 63px;
    height: 41px;
  }

  .keen-cover-eye i {
    width: 27px;
    height: 27px;
    box-shadow:
      inset 0 0 0 8px #2f2436,
      0 0 0 2px #ffffff;
  }

  .keen-cover-ring {
    top: 48px;
    left: 52px;
    width: 24px;
    height: 24px;
  }

  .keen-guide-search {
    grid-template-columns: repeat(4, 43px);
  }

  .keen-mode-grid {
    grid-template-columns: 1fr;
  }

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

  .keen-config-note,
  .keen-guest-config {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .keen-config-note span,
  .keen-guest-config span {
    text-align: left;
  }

  .keen-task-strip {
    grid-template-columns: minmax(76px, 1fr) auto minmax(62px, 1fr);
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .keen-task-strip > strong {
    font-size: 14px;
  }

  .keen-task-strip .keen-token.target {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .keen-grid {
    gap: 1px;
    padding: 1px;
  }

  .keen-cell {
    border-radius: 2px;
  }

  .keen-cell .keen-token.number,
  .keen-cell .keen-token.letter {
    font-size: clamp(15px, 5vw, 22px);
  }

  .keen-cell .keen-token.arrow {
    font-size: clamp(17px, 5.6vw, 25px);
  }

  .keen-cell .keen-token.emoji {
    font-size: clamp(16px, 5vw, 23px);
  }

  .keen-found-mark {
    right: 1px;
    bottom: 1px;
    width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .keen-mirror-wrap {
    gap: 5px;
  }

  .keen-mirror-wrap section {
    gap: 4px;
  }

  .keen-mirror-wrap .keen-cell .keen-token.number,
  .keen-mirror-wrap .keen-cell .keen-token.letter {
    font-size: clamp(10px, 3.7vw, 17px);
  }

  .keen-mirror-wrap .keen-cell .keen-token.arrow {
    font-size: clamp(11px, 4vw, 18px);
  }

  .keen-eye > i {
    border-width: 1px;
  }

  .keen-eye > em {
    width: 1px;
  }
}

@media (max-width: 360px) {
  .keen-title {
    font-size: 31px;
  }

  .keen-data-strip {
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 9px;
  }

  .keen-data-strip i {
    display: block;
    margin-right: 2px;
    margin-left: 2px;
  }

  .keen-data-strip span:last-child,
  .keen-data-strip strong:nth-of-type(2) {
    display: inline;
  }

  .keen-cover-scene {
    min-height: 150px;
  }

  .keen-task-strip > small {
    font-size: 8px;
  }

  .keen-game-header .game-controls {
    gap: 4px;
  }

  .keen-game-header .game-control-button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }

  .keen-live-stats span {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .keen-cover-grid i.target,
  .keen-cover-eye i,
  .keen-cover-ring,
  .keen-eye.blinking > i {
    animation: none;
  }
}
