* {
  margin: 0;
  padding: 0;
  font-weight: normal;
  outline: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  background: white;
  color: #393939;
  line-height: 1.3;
  overflow-y: scroll;
}

/* @media (min-width: 700px) {
  body {
    background: hsl(230, 40%, 93%);
  }
} */

/* .main, .header, .footer {
  border-radius: 0 !important;
  box-shadow: none !important;
} */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: #393939;
  text-decoration: none;
}

.ads {
  margin: 30px auto;
  max-width: 1010px;
}
.ad {
  display: flex;
  background-color: #ccc;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  /* margin: 25px -20px; */
}

@media (max-width: 700px) {
  .ad {
    border-radius: 0px;
  }
}

.ad .adBox {
  min-width: 300px;
  min-height: 250px;
  overflow: hidden;
  clear: both;
  text-align: center;
}

.ad p {
  color: #fff;
  margin: 10px 0;
}

/* ---------------------------------------header-------------------------------------------- */
.header {
  height: 52px;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  background: rgb(255, 255, 255);
  color: black;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px 0px;
  font-size: 18px;
  line-height: 1;
  z-index: 1000;
}

.header .header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  margin: 0px auto;
  max-width: 1010px;
  padding: 0px 10px;
  width: 100%;
}

@media (min-width: 500px) {
  .header-content {
    padding: 0px 20px;
  }
}

.header-content-menu {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand,
.menu-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  padding: 0 8px;
}

.brand h1 {
  text-transform: none;
  font-size: 26px;
}

.brand h1::first-letter {
  text-transform: uppercase;
}

.header-links {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  height: 100%;
}
.header-links a {
  margin-left: 12px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: inherit;
  box-sizing: border-box;
}

.header-links a:hover {
  color: #078bf7;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-right: 6px;
  background: #3d3d3d;
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}
.hamburger svg {
  display: block;
}

.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 50%;
  max-width: 85%;
  transform: translateX(-100%);
  transition: transform 300ms ease;
  background: #fff;
  box-shadow: 5px 0 18px rgba(0, 0, 0, 0.15);
  box-shadow: none;
  visibility: hidden;
  transform: translateX(-100%);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#menu-toggle:checked ~ .menu-panel {
  transform: translateX(0);
}

.menu-panel-inner {
  padding-top: 52px;
}
.menu-panel .menu-brand {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.menu-list li a {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid #f0f0f0;
  color: #111;
  text-transform: uppercase;
  font-weight: 600;
  background: #fff;
}

#menu-toggle:checked ~ div .menu-panel {
  transform: translateX(0);
  box-shadow: 5px 0 18px rgba(0, 0, 0, 0.15);
  visibility: visible;
}

.menu-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 950;
}
#menu-toggle:checked ~ div .menu-mask {
  opacity: 1;
  visibility: visible;
}

.header {
  z-index: 1000;
}

@media (max-width: 700px) {
  .header {
    height: 56px;
  }
  .header .header-content {
    padding: 0 12px;
    grid-template-columns: auto 1fr auto;
  }

  .header-links {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    display: flex;
    justify-content: end;
    background: transparent;
    color: #222;
    margin-right: 0;
  }

  .menu-panel {
    width: 76%;
    max-width: 100%;
  }
  .menu-panel-inner {
    padding-top: 56px;
  }
}

#menu-toggle:checked ~ main,
#menu-toggle:checked ~ footer {
  pointer-events: none;
}

@media (max-width: 480px) {
  .header-links {
    display: none;
  }
}

.hamburger:active,
.hamburger:focus {
  background: transparent;
  outline: none;
  box-shadow: none;
}
.hamburger {
  -webkit-tap-highlight-color: transparent;
}

.header-links .active {
  background-color: #f2f2f2;
}
.header-links a:hover {
  background-color: #f2f2f2;
}
/* ----------------------------------------------------------------------------------------------- */
.main {
  width: 100%;
  min-height: calc(100vh - 52px);
  margin-top: 52px;
  padding: 0 0 24px;
  box-sizing: border-box;
  background: transparent;
}

@media (max-width: 700px) {
  .main {
    min-height: calc(100vh - 56px);
    margin-top: 56px;
  }
}

.main-top {
  /* background: rgb(43, 135, 209); */
  background-color: #0267b9;
  position: relative;
  color: white;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.main-top-content {
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
  margin: 0px auto;
  max-width: 1010px;
  /* height: calc(-150px + 100vh); */
  height: 540px;
  position: relative;
  padding: 10px;
}

.breath-icon {
  animation: breath-fill 2.5s ease-in-out infinite;
}

@keyframes breath-fill {
  0% {
    color: #fff;
  }
  50% {
    color: #bbb;
  }
  100% {
    color: #fff;
  }
}

.main-top-text h1 {
  font-size: 80px;
}

@media (max-width: 700px) {
  .main-top-text h1 {
    font-size: 48px;
  }
}

.main-top-text h2 {
  font-size: 24px;
}

.main-top-content .main-top-button {
  margin: 30px 0px 0px;
}
.main-top-content .main-top-button a {
  padding: 12px 30px;
  background: rgb(255, 209, 84);
  display: inline-block;
  border: none;
  border-radius: 3px;
  transition: background 0.1s linear;
  font-weight: bold;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: rgb(51, 51, 51);
  text-decoration: none !important;
  cursor: pointer;
}

.main-top-content .main-top-button a:hover {
  background: #fff;
  color: #0267b9 !important;
}
.main-content {
  margin: 0px auto;
  max-width: 1010px;
  padding: 10px;
  box-sizing: border-box;
}

.main-content-list {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
}

.main-content-list-item-link {
  display: block;
  flex: 1 1 0%;
  line-height: 1;
  background: white;
  padding: 20px 0px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  text-align: center;
  position: relative;
  cursor: pointer;
  margin-right: 20px;
  margin-bottom: 0px;
  color: rgb(51, 51, 51) !important;
  text-decoration: none !important;
}

@media (min-width: 700px) {
  .main-content-list-item-link {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
    border-radius: 5px;
    padding: 30px;
  }
}

@media (min-width: 500px) {
  .main-top-content {
    padding: 20px;
    height: 540px;
  }
  .css-ziveln {
    padding: 20px;
  }
}

.main-content-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-content-list-item {
  display: flex;
  gap: 20px;
}

.main-content-list-item-link {
  margin-right: 0 !important;
  border-radius: 8px;
}

.main-content-list-item-link svg {
  color: #9db9e5;
}

.main-content-list-item-link h3 {
  margin: 16px 0 12px;
  font-size: 24px;
  font-weight: 600;
}
.main-content-list-item-link p {
  font-size: 16px;
  color: #555;
}

@media (hover: hover) and (pointer: fine) {
  .main-content-list-item-link:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: rgba(0, 0, 0, 0.18) 0px 10px 24px;
  }
  .main-content-list-item-link:hover svg {
    color: #2b87d1;
  }
}

@media (max-width: 700px) {
  .main-content-list {
    gap: 48px;
  }
  .main-content-list-item {
    flex-direction: column;
    gap: 48px;
  }
  .main-content-list-item-link {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 28px 0;
  }
}
.footer {
  background: #f8f8f8;
  padding: 20px 0;
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}
.footer-policy {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-policy a {
  color: #777;
}

.footer-policy a:hover {
  text-decoration: underline;
  color: #2b87d1;
}

.footer-reserved {
  text-align: center;
}
/* ---------------------------------------------reactionTime----------------------------------------------- */
.main-about-content {
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

@media (max-width: 700px) {
  .main-about-content {
    flex-direction: column;
  }
}
@media (min-width: 700px) {
  .css-aa {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
    border-radius: 5px;
    padding: 30px;
  }
}

.css-aa {
  display: block;
  flex: 1 1 0%;
  line-height: 1;
  background: white;
  margin-bottom: 20px;
  color: rgb(51, 51, 51) !important;
  text-decoration: none !important;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
  border-radius: 5px;
  padding: 30px;
}

.main-about-content-left {
  margin-right: 0;
}

.stats-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chart-wrap {
  height: 320px;
  flex: 0 0 320px;
  display: block;
}

@media (max-width: 700px) {
  .chart-wrap {
    height: 260px;
    flex-basis: 260px;
  }
  .css-aa {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px;
  }
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.css-cc h2 {
  font-size: 1.5em;
  line-height: 1;
}
.css-cc p {
  font-size: 1em;
  color: #555;
  margin: 15px 0px;
  line-height: 1.7;
}
/* Reaction Time game states/colors */
.main-top.state-blue {
  background: #0267b9;
}
.main-top.state-wait {
  background: #c62828;
} /* red: wait */
.main-top.state-go {
  /* background: #4bdb6a; */
  background: #0a9d2a;
} /* green: click */

.rt-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  text-align: center;
  color: #fff;
  user-select: none;
}
.rt-title {
  font-size: 80px;
  font-weight: 600;
}
.rt-sub {
  font-size: 24px;
  opacity: 0.9;
}
.rt-time {
  font-size: 84px;
  font-weight: 700;
}
.rt-btns {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.rt-btn {
  /* padding: 10px 18px; */
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  padding: 12px 30px;
  font-size: 18px;
}
.rt-btn.save {
  background: #ffd154;
  color: #333;
}
.rt-btn.try {
  background: #9ec0e6;
  color: #234;
}
@media (max-width: 700px) {
  .rt-title {
    font-size: 44px;
  }
  .rt-sub {
    font-size: 18px;
  }
  .rt-time {
    font-size: 64px;
  }
}
/* -------------------------------------dashboard--------------------------------- */
.dashboard {
  margin: 14px auto;
  max-width: 1010px;
  /* padding: 10px; */
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
}
.dashboard-left {
  position: sticky;
  top: 70px;
  align-self: start;
  height: fit-content;
}
.db-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  padding: 10px 8px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
}
.db-nav .item {
  background: #f5f7ff;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.db-nav .item svg {
  width: 56px !important;
  height: 56px !important;
  color: #9db9e5;
  display: block;
}
.db-nav .item.active {
  outline: 2px solid #2b87d1;
  background: #e9f2fd;
}
.dashboard-right {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
}
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.card-header h3 {
  font-size: 18px;
}
.card-body {
  padding: 14px 16px;
}

.feed-latest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #f5f7ff;
  border: 1px solid #e9eefb;
  border-radius: 8px;
  margin-bottom: 12px;
}
.feed-latest .meta {
  color: #9aa3af;
  font-size: 13px;
}

.history-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.history-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.history-list .when {
  color: #9aa3af;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.tests-table th,
.tests-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.tests-table th:nth-child(2),
.tests-table td:nth-child(2) {
  width: 120px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2b87d1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

.test-link {
  color: #2b87d1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

.pct {
  height: 16px;
  background: #eee;
  border-radius: 8px;
  position: relative;
}

.pct .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: #2b87d1;
  border-radius: 8px;
}

.pct .label {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #111;
}

@media (max-width: 700px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard-left {
    position: static;
  }
  .db-nav {
    /* flex-direction: row; */
    overflow: auto;
  }
}
/* --------------------------------------------sequenceMemory---------------------------------------------- */
.sm-center {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 24px 16px;
}

.sm-start,
.sm-over,
.sm-game {
  text-align: center;
  color: #e6f0ff;
}

.sm-title {
  font-size: clamp(28px, 6vw, 64px);
  margin: 8px 0 8px;
  font-weight: 700;
}
.sm-sub {
  font-size: 24px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.sm-level {
  font-size: 26px;
  margin-bottom: 18px;
  opacity: 0.9;
}

.sm-grid {
  width: min(88vw, 520px);
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: min(4vw, 24px);
}

.sm-tile {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.sm-tile.tap {
  background: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7) inset;
  transition: background 0.06s ease;
}

.sm-tile:active {
  transform: scale(0.98);
}

.sm-tile.active {
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6) inset;
}

.sm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.btn {
  padding: 12px 30px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.btn-primary {
  background: #f9c74f;
  color: #3b4a5a;
}

.btn-primary:hover {
  background: #fff;
  color: #0267b9 !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.35);
  color: #eef6ff;
}

.sm-icon4 {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  opacity: 0.9;
}

.sm-icon4 span {
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.sm-icon4 span:last-child {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.sm-game {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: center;
  justify-items: center;
}

.sm-grid {
  height: min(calc(100% - 110px), 560px);
  aspect-ratio: 1 / 1;
  width: auto;
  max-width: 560px;
  gap: clamp(12px, 3.2vw, 24px);
}

.sm-tile {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.12s ease, transform 0.06s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.sm-tile.tap {
  background: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7) inset;
}

.sm-tile.active {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6) inset;
}

@media (max-width: 700px) {
  .sm-grid {
    height: min(calc(100% - 100px), 88vw);
  }
}

/* ---------------------------------aimTrainer------------------------------------- */
.at-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  inset: 0px;
  min-height: 500px;
  color: #e6f0ff;
  position: relative;
}

.at-warning {
  background: #ffc48a;
  color: #1a1a1a;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 10px;
  max-width: 680px;
}

.at-title {
  font-size: clamp(28px, 6vw, 80px);
  font-weight: 700;
  margin-bottom: 12px;
}
.at-sub {
  font-size: 18px;
  opacity: 0.9;
  margin-top: 30px;
  color: #fff;
}
.at-icon {
  width: 86px;
  height: 86px;
  margin: 12px auto 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 0 6px,
      transparent 6px 8px,
      rgba(255, 255, 255, 0.5) 8px 16px,
      transparent 16px 18px,
      rgba(255, 255, 255, 0.35) 18px 32px,
      transparent 32px
    ),
    linear-gradient(#fff 0 0) center/2px 100% no-repeat,
    linear-gradient(#fff 0 0) center/100% 2px no-repeat;
  cursor: pointer;
}

.at-play {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  width: 800px;
  margin: 0 auto;
}
.at-remaining {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(18px, 3.6vw, 28px);
  color: #e6f0ff;
  user-select: none;
}
.at-remaining b {
  color: #fff;
}

.at-target {
  position: absolute;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid #fff;
  background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 0 6px,
      transparent 6px 8px,
      rgba(255, 255, 255, 0.5) 8px 16px,
      transparent 16px 18px,
      rgba(255, 255, 255, 0.35) 18px 28px,
      transparent 28px
    ),
    linear-gradient(#fff 0 0) center/2px 100% no-repeat,
    linear-gradient(#fff 0 0) center/100% 2px no-repeat;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.at-result h2 {
  font-size: clamp(20px, 3.2vw, 32px);
  margin: 8px 0 6px;
}

.at-ms {
  font-size: clamp(44px, 10vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  margin: 6px 0 8px;
}

.at-note {
  margin-top: 10px;
  opacity: 0.9;
}

.at-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* -------------------------------------numberMemory------------------------------------------- */

.nm-stage {
  display: grid;
  place-items: center;
  min-height: 520px;
  color: #e6f0ff;
  text-align: center;
}
.nm-title {
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  margin: 6px 0 10px;
}
.nm-sub {
  font-size: 18px;
  opacity: 0.9;
}
.nm-actions {
  margin-top: 18px;
}
.nm-btn {
  padding: 12px 30px;
  background: #ffd154;
  color: #333;
  border: 0;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.nm-btn.secondary {
  background: #9ec0e6;
  color: #1d2b3a;
  margin-left: 10px;
}
.nm-number {
  font-size: clamp(56px, 12vw, 110px);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nm-level {
  margin-top: 10px;
  font-size: 26px;
  opacity: 0.9;
}
.nm-progress {
  width: min(86vw, 560px);
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px auto 0;
}
.nm-progress .bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transform-origin: left;
}
.nm-input-wrap {
  width: min(92vw, 720px);
  margin: 6px auto 0;
}
.nm-input {
  width: 100%;
  font-size: clamp(20px, 3.8vw, 28px);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  border-radius: 6px;
  text-align: center;
  caret-color: #fff;
  font-variant-numeric: tabular-nums;
}
.nm-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.nm-label {
  font-size: 22px;
  margin-bottom: 12px;
}

.nm-ans-wrong {
  color: #000;
}
.nm-ans-wrong s {
  text-decoration-thickness: 3px;
}
/* ----------------------------------verbalMemory---------------------------------------- */

.sm-hh1 {
  margin: 0 0 8px;
  font-size: 80px;
}

@media (max-width: 700px) {
  .sm-hh1 {
    margin: 0 0 8px;
    font-size: 50px;
  }
}

/* ---------------------------------------typing--------------------------------------------- */

.tp-stage {
  text-align: center;
  color: #e6f0ff;
  width: 100%;
}
.tp-title {
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  margin: 6px 0 10px;
}
.tp-sub {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 16px;
}
.tp-box {
  width: min(94vw, 860px);
  margin: 0 auto;
  background: #f3f7ff;
  color: #1d2b3a;
  border-radius: 10px;
  padding: clamp(14px, 2.6vw, 22px);
  text-align: left;
  box-shadow: rgba(0, 0, 0, 0.08) 0 2px 6px inset;
}
.tp-para {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.7;
  word-break: break-word;
  user-select: none;
}
.tp-hint {
  margin-top: 18px;
  opacity: 0.9;
}

.tp-livewpm {
  font-size: clamp(44px, 10vw, 96px);
  font-weight: 600;
  line-height: 0.85;
  margin-bottom: 10px;
}

.tp-time {
  margin-top: 14px;
  font-size: 16px;
  opacity: 0.95;
}

.tp-char {
  position: relative;
  white-space: pre-wrap;
  border-radius: 2px;
  padding: 1px 0;
}
.tp-char.ok {
  /* background: rgba(56, 142, 60, 0.28); */
  background: #87e88f;
}
.tp-char.bad {
  background: #f5797d;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(211, 47, 47, 0.9);
}
.tp-char.caret {
  background: transparent;
  position: relative;
}

.tp-char.caret::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: #2e7d32;
  animation: tp-caret-blink 1s steps(1) infinite;
}

@keyframes tp-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.tp-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tp-result h2 {
  font-size: clamp(18px, 3vw, 28px);
  margin-top: 8px;
  opacity: 0.95;
}
.tp-wpm {
  font-size: clamp(48px, 10vw, 60px);
  font-weight: 600;
  line-height: 0.9;
  margin: 10px 0 0;
}
.tp-warning {
  background: #ffc48a;
  color: #1a1a1a;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 10px;
  max-width: 680px;
  margin: 0 auto;
}
/* -------------------------------------------chimpTest-------------------------------------------- */
.ct-stage {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 520px;
  color: #e6f0ff;
  text-align: center;
}
.ct-board {
  position: relative;
  width: min(94vw, 860px);
  height: min(60vw, 520px);
  min-height: 420px;
}
.ct-info {
  margin-top: 10px;
  font-size: 18px;
  opacity: 0.9;
}
.ct-tile {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}
.ct-num {
  color: #2b87d1;
  font-weight: 700;
  font-size: calc(var(--size) * 0.44);
  line-height: 1;
}
.ct-tile.back .ct-num {
  opacity: 0;
}
.ct-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.ct-score {
  font-size: clamp(44px, 10vw, 96px);
  font-weight: 600;
  line-height: 1;
  margin: 6px 0 10px;
}
.ct-title {
  font-size: clamp(28px, 6vw, 40px);
  margin: 8px 0;
  font-weight: 700;
}
.ct-sub {
  font-size: 18px;
  opacity: 0.9;
}
.sm-icon6 {
  width: 128px;
  height: 128px;
  text-align: center;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  opacity: 0.9;
}
/* ---------------------------------------------cookie------------------------------------------------------- */

.cookie-content {
  display: block;
  flex: 1 1 0%;
  line-height: 1;
  background: white;
  padding: 20px 0px;
  color: rgb(51, 51, 51) !important;
  text-decoration: none !important;
}

.cookie-content h1 {
  font-size: 36px;
}

.cookie-content h2 {
  font-size: 27px;
}

.cookie-content p {
  margin: 15px 0px;
  line-height: 1.7;
}

@media (min-width: 700px) {
  .cookie-content {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
    border-radius: 5px;
    padding: 30px;
  }
}
/* -------------------------------------------description-game-content------------------------------------------- */
.description-game-content {
  background: #fff;
  padding: 28px 0;
}
@media (min-width: 700px) {
  .description-game-content {
    padding: 40px 0;
  }
}

.description-game-content-box {
  max-width: 1010px;
  margin: 0 auto;
  padding: 0 10px;
}
@media (min-width: 500px) {
  .description-game-content-box {
    padding: 0 20px;
  }
}

.desc-hero {
  background: #f3f7ff;
  border: 1px solid #e9eefb;
  border-radius: 10px;
  padding: 18px;
  box-shadow: rgba(0, 0, 0, 0.04) 0 2px 6px inset;
  margin-bottom: 18px;
}
@media (min-width: 700px) {
  .desc-hero {
    padding: 22px;
    margin-bottom: 22px;
  }
}
.desc-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffd154;
  color: #333;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.description-game-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .description-game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.desc-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
  padding: 16px;
}
@media (min-width: 700px) {
  .desc-card {
    padding: 20px;
    margin-bottom: 22px;
  }
}

.desc-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.desc-list li {
  position: relative;
  padding-left: 22px;
  color: #555;
  line-height: 1.6;
}
.desc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b87d1;
  box-shadow: 0 0 0 3px rgba(43, 135, 209, 0.18);
}

.desc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .desc-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
.metric {
  background: #f6f9ff;
  border: 1px solid #e9eefb;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.metric .num {
  font-size: 28px;
  font-weight: 700;
  color: #2b87d1;
  line-height: 1;
}
.metric .label {
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

.desc-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.desc-cta .btn {
  padding: 12px 30px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.desc-cta .btn-primary {
  background: #ffd154;
  color: #333;
}
.desc-cta .btn-secondary {
  background: #9ec0e6;
  color: #1d2b3a;
}

.description-game-content-box h2 {
  font-size: 36px;
  margin: 8px 0 12px;
}
.description-game-content-box h3 {
  font-size: 24px;
  margin: 10px 0 8px;
}
.description-game-content-box p {
  margin: 12px 0;
  color: #555;
  line-height: 1.7;
}
