/* HPC.TW games 頁面樣式（自 styles.css 拆出，2026-12-06）*/

.testing-center-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: auto;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(38px, 5vw, 68px);
}

.hero-top-three {
  position: relative;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(32, 214, 255, 0.28);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.68);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.hero-top-three-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-top-three-head span {
  color: var(--cyan-400);
  font-size: 11px;
  font-weight: 900;
}

.hero-top-three-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.hero-top-three-head a {
  color: var(--green-400);
  font-size: 12px;
  font-weight: 900;
}

.hero-top-three ol {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-top-three li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-top-three li > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #07111f;
  border-radius: 50%;
  background: var(--qf-grad-accent);
}

.hero-top-three li:nth-child(1) > b { background: var(--amber-400); }

.hero-top-three li span { display: grid; min-width: 0; }

.hero-top-three li strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.hero-top-three li small { color: rgba(255, 255, 255, 0.58); font-size: 10px; }

.hero-top-three li em { color: var(--green-400); font-size: 15px; font-style: normal; font-weight: 900; }

.hero-top-three .top-three-loading { display: block; color: rgba(255, 255, 255, 0.65); text-align: center; }

.test-center {
  padding: clamp(54px, 7vw, 90px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 92% 12%, rgba(32, 214, 255, 0.1), transparent 28%),
    var(--soft);
}

.test-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.test-option {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(4, 21, 47, 0.08);
}

.test-option.featured {
  border-color: rgba(8, 120, 230, 0.38);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.test-option.featured:hover {
  border-color: var(--cyan-400);
  box-shadow: 0 24px 55px rgba(8, 120, 230, 0.16);
  transform: translateY(-5px);
}

.test-option-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #07111f, #0a2d62);
}

.test-option-art::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(32, 214, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 214, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

.pro-art {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  grid-template-rows: repeat(3, 44px);
  gap: 8px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(32, 214, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #07111f, #092a5d 58%, #120f35);
}

.pro-art::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(32, 214, 255, 0.24);
  border-radius: 18px;
  box-shadow: inset 0 0 28px rgba(32, 214, 255, 0.12);
}

.pro-chip {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 23px;
  font-style: normal;
  font-weight: 900;
}

.pro-chip.btc { background: linear-gradient(145deg, #ffb13f, #f28a12); }

.pro-chip.eth { background: linear-gradient(145deg, #7e8bff, #4a5fd6); }

.pro-badge,
.pro-combo {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.pro-badge {
  top: 18px;
  left: 20px;
  padding: 6px 10px;
  color: #07111f;
  background: var(--qf-grad-accent);
  box-shadow: 0 8px 20px rgba(32, 214, 255, 0.2);
}

.pro-combo {
  right: 22px;
  bottom: 18px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(255, 122, 168, 0.92);
  font-size: 10px;
}

.pro-link {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 252px;
  height: 148px;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(67, 217, 163, .6));
  transform: translate(-50%, -50%);
}

.pro-link polyline {
  fill: none;
  stroke: var(--green-400);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pro-link circle {
  fill: var(--green-400);
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 2;
}

.path-art span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 13px;
  color: #7b4d00;
  background: var(--amber-400);
  font-size: 30px;
  font-weight: 900;
}

.path-art i {
  z-index: 1;
  width: 58px;
  height: 34px;
  border-top: 4px solid var(--green-400);
  border-right: 4px solid var(--green-400);
}

.tetris-art {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  grid-template-rows: repeat(4, 38px);
  gap: 7px;
  align-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(55, 231, 160, 0.18), transparent 34%),
    linear-gradient(135deg, #07111f, #0b2146 58%, #04142a);
}

.tetris-art::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(32, 214, 255, 0.24);
  border-radius: 18px;
  box-shadow: inset 0 0 28px rgba(32, 214, 255, 0.12);
}

.tetris-cell {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.tetris-cell.cyan,
.tetris-cell.gold,
.tetris-cell.green,
.tetris-cell.blue {
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.tetris-cell.cyan { background: linear-gradient(145deg, var(--cyan-400), #0878e6); }

.tetris-cell.gold { background: linear-gradient(145deg, #ffd166, #f28a12); }

.tetris-cell.green { background: linear-gradient(145deg, var(--green-400), #13a984); }

.tetris-cell.blue { background: linear-gradient(145deg, #7e8bff, #4a5fd6); }

.test-option-content {
  padding: 24px;
}

.test-option h3 {
  margin: 14px 0 8px;
  font-size: 23px;
}

.test-option p {
  min-height: 82px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.test-option strong {
  display: block;
  margin-top: 20px;
  color: var(--blue-600);
  font-size: 14px;
}

.leaderboard-link {
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 900;
}

html body .test-option-content{background:transparent!important}
