#page {
  --page-pad: clamp(12px, 4vw, 32px);
  --card: #ffffff;
  --card-hover: #f0f0ff;
  --card-line: #c0c0d4;
  --card-hover-line: #000080;
  --card-image-line: oklch(0.86 0.006 300);
  --now: #157a3c;
  max-width: calc(var(--page-width) + 2 * var(--page-pad));
  padding: 0 var(--page-pad) 90px;
}
body.dark #page {
  --card: #000000;
  --card-hover: #20202c;
  --card-line: #44445a;
  --card-hover-line: #d0d0e0;
  --card-image-line: oklch(0.27 0.01 300);
  --now: #4cd787;
}

.gamegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 32px 24px;
  align-items: start;
}

.gamecard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 10px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.gamecard:hover {
  background: var(--card-hover);
  border-color: var(--card-hover-line);
  text-decoration: none;
}

.gamecard picture {
  display: block;
  container-type: inline-size;
  background: var(--card);
  border-bottom: 1px solid var(--card-image-line);
}
.gameimg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80cqw;
  object-fit: contain;
}
body.dark .gameimg_light { display: none; }
body:not(.dark) .gameimg_dark { display: none; }

.gamecard_text {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px 22px 24px;
}
.gamecard_name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.gamecard_desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.now_dot {
  position: relative;
  flex: none;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--now);
}
.now_dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--now);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .now_dot::after { animation: now_pulse 2s ease-out infinite; }
}
@keyframes now_pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(2.8); opacity: 0; }
}

.now_stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding-inline-start: 18px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--now);
}
.now_stats .now_dot {
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
}
.now_stat {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.now {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--card-line);
}
.now_title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.now_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 12px 24px;
}
.now_game {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 10px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.now_game:hover {
  background: var(--card-hover);
  border-color: var(--card-hover-line);
  text-decoration: none;
}
.now_game picture {
  display: block;
  flex: none;
  container-type: inline-size;
  width: 76px;
  overflow: hidden;
  border: 1px solid var(--card-image-line);
  border-radius: 6px;
}
.now_text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.now_name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

#page > p:last-child { margin-top: 44px; }
