/* ==================================================
   GAMEページ：とーたるえいと❣️
================================================== */

.mitiocity-games-intro {
  margin: 0 0 24px;
  color: var(--text-muted, #aeb9d5);
  font-size: 0.95rem;
  line-height: 1.9;
}

.mitiocity-games-grid {
  display: grid;
  gap: 18px;
  margin: 28px 0 12px;
}

.mitiocity-game-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 1px;
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      rgba(93, 228, 255, 0.9),
      rgba(112, 108, 255, 0.72),
      rgba(164, 113, 255, 0.72)
    );
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.27),
    0 0 26px rgba(93, 228, 255, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mitiocity-game-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 19px 42px rgba(0, 0, 0, 0.35),
    0 0 34px rgba(93, 228, 255, 0.28);
}

.mitiocity-game-card:active {
  transform: scale(0.985);
}

.mitiocity-game-card__inner {
  position: relative;
  min-height: 258px;
  overflow: hidden;
  padding: 25px;
  border-radius: 21px;
  background:
    radial-gradient(
      circle at 87% 20%,
      rgba(93, 228, 255, 0.22),
      transparent 19%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(127, 89, 227, 0.24),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #172b52 0%,
      #0b1328 56%,
      #060914 100%
    );
}

.mitiocity-game-card__inner::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: -55%;
  opacity: 0.38;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(93, 228, 255, 0.32) 0deg 1deg,
      transparent 1deg 13deg,
      rgba(164, 113, 255, 0.28) 13deg 15deg,
      transparent 15deg 27deg
    );
  animation: total-eight-card-spin 28s linear infinite;
  pointer-events: none;
}

.mitiocity-game-card__inner::after {
  position: absolute;
  z-index: 1;
  content: "";
  inset: 0;
  background:
    linear-gradient(
      118deg,
      transparent 0 43%,
      rgba(255, 255, 255, 0.09) 47%,
      transparent 51%
    );
  transform: translateX(-120%);
  animation: total-eight-card-shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* ==================================================
   カード左側のテキスト
================================================== */

.mitiocity-game-card__content {
  position: relative;
  z-index: 4;
  max-width: 66%;
}

.mitiocity-game-card__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 8px;
  border: 1px solid rgba(112, 234, 255, 0.48);
  border-radius: 5px;
  background: rgba(4, 16, 37, 0.82);
  color: #75e7ff;
  font-family: Orbitron, "Noto Sans JP", sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  box-shadow: 0 0 13px rgba(93, 228, 255, 0.17);
}

/*
  とーたるえいと❣️ 専用ステッカー
  背景と同化しない白ベースの大きなラベル。
*/
.mitiocity-game-card__title {
  position: relative;
  z-index: 5;
  display: inline-block;
  margin: 0;
  padding: 8px 12px 9px;
  border: 2px solid #5de4ff;
  border-radius: 10px 14px 11px 15px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #e1faff 52%,
      #d8e8ff 100%
    );
  color: #142144;
  font-family: "Mochiy Pop One", "Noto Sans JP", sans-serif;
  font-size: clamp(1.15rem, 5.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.25;
  text-shadow: none;
  transform: rotate(-2deg);
  box-shadow:
    3px 4px 0 #705ee7,
    6px 8px 0 rgba(5, 10, 28, 0.46),
    0 0 20px rgba(93, 228, 255, 0.5);
}

/* ステッカーの左上に小さい飾り */
.mitiocity-game-card__title::before {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid #142144;
  border-radius: 50%;
  background: #ffe075;
  box-shadow:
    23px 1px 0 -2px #65ff9a,
    45px -3px 0 -2px #ff7194;
  content: "";
}

.mitiocity-game-card__description {
  margin: 17px 0 19px;
  color: #edf5ff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.75;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.94),
    0 0 12px rgba(9, 19, 42, 0.9);
}

.mitiocity-game-card__start {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(148, 235, 255, 0.78);
  border-radius: 10px;
  background: rgba(18, 77, 149, 0.76);
  color: #ffffff;
  font-family: Orbitron, "Noto Sans JP", sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 14px rgba(93, 228, 255, 0.2);
}

.mitiocity-game-card__start::after {
  content: "→";
  color: #75e7ff;
  font-size: 1rem;
  line-height: 1;
}

/* ==================================================
   右側のオーブ・リング
================================================== */

.mitiocity-game-card__visual {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 5%;
  width: 39%;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.mitiocity-game-card__halo {
  position: absolute;
  inset: -25%;
  border: 1px solid rgba(93, 228, 255, 0.34);
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(93, 228, 255, 0.32) 0deg 2deg,
      transparent 2deg 18deg,
      rgba(164, 113, 255, 0.24) 18deg 20deg,
      transparent 20deg 36deg
    );
  box-shadow:
    0 0 26px rgba(93, 228, 255, 0.26),
    inset 0 0 21px rgba(93, 228, 255, 0.18);
  animation: total-eight-card-spin 12s linear infinite;
}

.mitiocity-game-card__orb {
  position: absolute;
  top: 36%;
  left: 15%;
  display: grid;
  width: 37%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(239, 250, 255, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 29% 23%,
      #ffffff 0 7%,
      transparent 19%
    ),
    radial-gradient(
      circle at 37% 35%,
      #9aeaff,
      #4074ec 55%,
      #20246e
    );
  color: #ffffff;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1rem, 5vw, 1.55rem);
  font-style: normal;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  box-shadow:
    inset -7px -9px 13px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(86, 191, 255, 0.72);
}

.mitiocity-game-card__ring {
  position: absolute;
  display: grid;
  width: 29%;
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid rgba(248, 252, 255, 0.95);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      transparent 34%,
      rgba(255, 255, 255, 0.16) 43%,
      transparent 66%
    );
  color: #ffffff;
  font-family: Orbitron, sans-serif;
  font-size: clamp(0.8rem, 4vw, 1.2rem);
  font-style: normal;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.94);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.42),
    inset 0 0 7px rgba(255, 255, 255, 0.18);
}

.mitiocity-game-card__ring--one {
  top: 13%;
  right: 7%;
  animation: total-eight-card-float 2.8s ease-in-out infinite alternate;
}

.mitiocity-game-card__ring--two {
  right: 0;
  bottom: 14%;
  border-color: #ffe075;
  color: #ffe075;
  box-shadow:
    0 0 12px #ffe075,
    0 0 24px rgba(255, 224, 117, 0.4);
  animation: total-eight-card-float 3.5s ease-in-out infinite alternate-reverse;
}

.mitiocity-game-card__ring--three {
  bottom: 1%;
  left: 28%;
  border-color: #65ff9a;
  color: #65ff9a;
  box-shadow:
    0 0 12px #65ff9a,
    0 0 24px rgba(101, 255, 154, 0.4);
  animation: total-eight-card-float 3.1s ease-in-out infinite alternate;
}

/* ==================================================
   アニメーション
================================================== */

@keyframes total-eight-card-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes total-eight-card-shine {
  0%,
  60%,
  100% {
    transform: translateX(-120%);
  }

  78% {
    transform: translateX(120%);
  }
}

@keyframes total-eight-card-float {
  from {
    transform: translateY(-6px);
  }

  to {
    transform: translateY(7px);
  }
}

@media (max-width: 420px) {
  .mitiocity-game-card__inner {
    min-height: 238px;
    padding: 21px;
  }

  .mitiocity-game-card__content {
    max-width: 69%;
  }

  .mitiocity-game-card__visual {
    right: 1%;
    width: 41%;
  }

  .mitiocity-game-card__description {
    font-size: 0.76rem;
  }

  .mitiocity-game-card__title {
    padding: 7px 9px 8px;
    font-size: 1.1rem;
  }
}
