/* Styles specific to the Calculator Games hub */

body.games-page {
  --bg-color: #050928;
  --bg-gradient: radial-gradient(
      320px 320px at 10% 10%,
      rgba(120, 92, 255, 0.42),
      transparent 72%
    ),
    radial-gradient(
      360px 360px at 90% 80%,
      rgba(255, 98, 188, 0.35),
      transparent 78%
    ),
    radial-gradient(
      520px 520px at 50% 50%,
      rgba(24, 36, 96, 0.65),
      transparent 100%
    );
  --text-color: #f4f6ff;
  --muted-text: #b7c0ff;
  --card-bg: rgba(12, 16, 48, 0.9);
  --card-border: rgba(106, 124, 214, 0.35);
  --card-shadow: 0 40px 95px -40px rgba(5, 9, 40, 0.85);
  --card-shadow-hover: 0 45px 110px -40px rgba(0, 12, 54, 0.9);
  --input-bg: rgba(6, 10, 36, 0.92);
  --input-border: rgba(120, 138, 255, 0.45);
  --input-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --focus-ring-color: rgba(120, 138, 255, 0.5);
  --tag-bg: rgba(120, 138, 255, 0.2);
  --tag-color: #e8ebff;
  --glass-bg: rgba(14, 18, 58, 0.75);
  --glass-border: rgba(162, 176, 255, 0.3);
  --glass-gradient: linear-gradient(140deg, rgba(30, 36, 96, 0.95), rgba(16, 20, 68, 0.88));
  --surface-muted: rgba(12, 16, 48, 0.78);
  color: var(--text-color);
}

body.games-page::after {
  background: linear-gradient(180deg, rgba(9, 12, 40, 0.9), transparent 55%);
}

.games-container {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.games-hero {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: clamp(3rem, 5vw, 4.5rem);
  padding-block: clamp(4.5rem, 7vw, 6rem);
  margin: 0 auto clamp(3rem, 7vw, 4.75rem);
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 165, 132, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(123, 166, 255, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(18, 24, 66, 0.95), rgba(9, 12, 40, 0.92));
  border: 1px solid rgba(148, 164, 255, 0.45);
  box-shadow: 0 70px 160px -80px rgba(2, 6, 36, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--text-color);
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  grid-template-areas: "content cabinet";
  align-items: center;
  align-content: center;
  justify-items: stretch;
  gap: clamp(2.2rem, 5vw, 3.8rem);
}

.games-hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.games-hero__ambient {
  position: absolute;
  inset: -18% -12% -14% -18%;
  pointer-events: none;
  filter: drop-shadow(0 45px 110px rgba(2, 5, 28, 0.75));
}

.games-hero__grid {
  position: absolute;
  inset: 14% 8%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0.35;
  border-radius: 28px;
  z-index: -1;
}

.games-hero__floor {
  position: absolute;
  inset: auto 10% -6% 10%;
  height: 240px;
  background:
    radial-gradient(ellipse at center, rgba(6, 9, 28, 0.9), rgba(6, 9, 28, 0)) 0 0 / 100% 100%,
    radial-gradient(ellipse at center, rgba(83, 110, 255, 0.55), transparent 60%);
  filter: blur(18px);
  opacity: 0.65;
  z-index: -1;
}

.games-hero__spark {
  position: absolute;
  width: clamp(140px, 24vw, 220px);
  height: clamp(140px, 24vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: gamesSparkPulse 16s ease-in-out infinite;
}

.games-hero__spark--one {
  top: 8%;
  left: -4%;
}

.games-hero__spark--two {
  bottom: 6%;
  left: 32%;
  animation-delay: -6s;
}

.games-hero__spark--three {
  top: 18%;
  right: -6%;
  animation-delay: -10s;
}

@keyframes gamesSparkPulse {
  0%,
  100% {
    transform: scale(0.92) translate3d(0, 0, 0);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08) translate3d(0, 0, 0);
    opacity: 0.75;
  }
}

@keyframes gamesBlink {
  0% {
    opacity: 1;
  }
  49% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.1;
  }
}

@keyframes gamesMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes gamesBulbs {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 48px 0;
  }
}

.games-hero__content {
  position: relative;
  z-index: 1;
  max-width: clamp(540px, 55vw, 620px);
  grid-area: content;
  align-self: center;
}

.games-hero__cabinet {
  position: relative;
  z-index: 1;
  grid-area: cabinet;
  align-self: center;
  justify-self: center;
  max-width: min(420px, 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.1rem);
  padding: clamp(2.2rem, 5vw, 3.2rem) clamp(2.2rem, 5vw, 3.4rem) clamp(3.4rem, 6vw, 4rem);
  border-radius: 40px 40px 28px 28px;
  background:
    repeating-linear-gradient(
      105deg,
      rgba(74, 44, 22, 0.92) 0px,
      rgba(74, 44, 22, 0.92) 26px,
      rgba(93, 58, 28, 0.92) 26px,
      rgba(93, 58, 28, 0.92) 52px
    );
  box-shadow:
    0 55px 125px -65px rgba(6, 3, 0, 0.85),
    inset 0 0 0 1px rgba(255, 245, 230, 0.08),
    inset 0 14px 28px -18px rgba(255, 230, 198, 0.35);
  border: 1px solid rgba(60, 34, 16, 0.65);
  transform: perspective(1200px) rotateY(-5deg) rotateX(1.5deg);
  transform-style: preserve-3d;
}

.games-hero__cabinet::before {
  content: "";
  position: absolute;
  inset: 18px 22px 22px;
  border-radius: 30px 30px 22px 22px;
  background:
    linear-gradient(130deg, rgba(255, 240, 206, 0.16), transparent 65%),
    repeating-linear-gradient(105deg, rgba(94, 60, 32, 0.32) 0 18px, rgba(56, 30, 12, 0.34) 18px 36px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.games-hero__cabinet-shadow {
  position: absolute;
  inset: 14% -18% -20% -16%;
  background: radial-gradient(ellipse at center, rgba(18, 10, 4, 0.9), transparent 75%);
  filter: blur(28px);
  opacity: 0.95;
  z-index: -2;
  pointer-events: none;
}

.games-hero__cabinet-topper {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.3rem);
  width: 100%;
  padding: clamp(1rem, 2vw, 1.3rem) clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 30px 30px 16px 16px;
  background:
    linear-gradient(180deg, rgba(58, 36, 16, 0.95), rgba(30, 18, 6, 0.98)),
    repeating-linear-gradient(90deg, rgba(92, 54, 28, 0.9) 0 14px, rgba(66, 40, 20, 0.9) 14px 28px);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 224, 0.25),
    inset 0 -10px 18px rgba(0, 0, 0, 0.32),
    0 16px 40px rgba(17, 7, 0, 0.45);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.games-hero__cabinet-topper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 236, 198, 0.26), transparent 55%);
  pointer-events: none;
}

.games-hero__cabinet-speaker {
  width: clamp(42px, 6.5vw, 58px);
  height: clamp(60px, 9vw, 82px);
  border-radius: 20px;
  background:
    linear-gradient(140deg, rgba(255, 232, 210, 0.22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(28, 16, 10, 0.9) 0 6px, rgba(52, 28, 18, 0.9) 6px 12px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(14, 6, 0, 0.65);
  position: relative;
}

.games-hero__cabinet-speaker::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background:
    repeating-radial-gradient(circle, rgba(0, 0, 0, 0.7) 0 3px, rgba(33, 20, 12, 0.9) 3px 6px);
  opacity: 0.75;
}

.games-hero__cabinet-marquee {
  flex: 1;
  position: relative;
  border-radius: 18px;
  padding: 1rem clamp(0.85rem, 2vw, 1.2rem);
  background:
    linear-gradient(180deg, rgba(24, 10, 4, 0.85), rgba(12, 6, 2, 0.95)),
    repeating-linear-gradient(90deg, rgba(126, 32, 8, 0.6) 0 12px, rgba(96, 20, 6, 0.6) 12px 24px);
  border: 1px solid rgba(52, 18, 6, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 180, 0.25),
    inset 0 -12px 18px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.games-hero__cabinet-marquee::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 196, 144, 0.45);
  opacity: 0.5;
}

.games-hero__cabinet-marquee-label {
  position: relative;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 229, 184, 0.95);
  text-shadow: 0 0 12px rgba(255, 176, 88, 0.65);
}

.games-hero__cabinet-bulb-row {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 34px);
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 219, 128, 0.9) 0 2px, rgba(120, 60, 8, 0.6) 3px, transparent 6px);
  background-size: 34px 10px;
  background-position: 0 0;
  animation: gamesBulbs 2.4s linear infinite;
  opacity: 0.8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.games-hero__cabinet-bulb-row--top {
  top: -16px;
}

.games-hero__cabinet-bulb-row--bottom {
  bottom: -16px;
}

.games-hero__cabinet-frame {
  position: relative;
  width: 100%;
  padding: clamp(1.9rem, 4.5vw, 2.4rem) clamp(2rem, 4.5vw, 2.8rem);
  border-radius: 28px 28px 22px 22px;
  background:
    linear-gradient(160deg, rgba(49, 32, 18, 0.95), rgba(23, 14, 6, 0.95)),
    repeating-linear-gradient(100deg, rgba(80, 48, 22, 0.7) 0 22px, rgba(50, 28, 12, 0.7) 22px 44px);
  border: 1px solid rgba(32, 16, 6, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 212, 0.18),
    inset 0 30px 45px -28px rgba(255, 233, 188, 0.2),
    inset 0 -36px 50px -18px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}

.games-hero__cabinet-bezel {
  position: absolute;
  inset: 12px;
  border-radius: 22px 22px 18px 18px;
  background: linear-gradient(130deg, rgba(255, 232, 206, 0.12), transparent 65%);
  pointer-events: none;
}

.games-hero__cabinet-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px 22px 18px 18px;
  background:
    radial-gradient(circle at 50% 30%, rgba(140, 220, 120, 0.55), transparent 65%),
    radial-gradient(circle at 80% 80%, rgba(64, 160, 72, 0.32), transparent 70%),
    linear-gradient(180deg, rgba(14, 48, 24, 0.94), rgba(6, 24, 14, 0.92));
  border: 1px solid rgba(12, 38, 18, 0.65);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 24px 40px -20px rgba(255, 255, 255, 0.25),
    inset 0 -28px 48px -18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.games-hero__cabinet-screen::before {
  content: "";
  position: absolute;
  inset: -12% -6% 12%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.games-hero__cabinet-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 115%, rgba(255, 255, 255, 0.25), transparent 58%);
  opacity: 0.45;
}

.games-hero__cabinet-prompt {
  position: relative;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 255, 220, 0.92);
  text-shadow:
    0 0 6px rgba(162, 255, 162, 0.55),
    0 0 16px rgba(90, 186, 90, 0.45);
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: rgba(34, 92, 36, 0.4);
  border: 1px solid rgba(142, 202, 120, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  animation: gamesBlink 1.8s steps(2, start) infinite;
}

.games-hero__cabinet-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(4, 12, 6, 0.04) 0 2px,
    rgba(6, 18, 12, 0.22) 2px 3px
  );
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.games-hero__cabinet-base {
  position: relative;
  width: 100%;
  padding: clamp(1.6rem, 3.4vw, 2.2rem) clamp(1.9rem, 3.8vw, 2.6rem) clamp(2rem, 4.4vw, 2.8rem);
  border-radius: 24px 24px 20px 20px;
  background:
    linear-gradient(180deg, rgba(62, 36, 18, 0.94), rgba(22, 12, 6, 0.98)),
    repeating-linear-gradient(100deg, rgba(78, 44, 20, 0.9) 0 20px, rgba(46, 26, 12, 0.9) 20px 40px);
  border: 1px solid rgba(32, 18, 8, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.12),
    inset 0 26px 34px -24px rgba(255, 235, 186, 0.18),
    inset 0 -26px 36px -16px rgba(0, 0, 0, 0.58);
}

.games-hero__cabinet-coin {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.games-hero__cabinet-slot {
  width: 72px;
  height: 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 6, 2, 0.95), rgba(0, 0, 0, 0.95)),
    linear-gradient(90deg, rgba(255, 188, 118, 0.35), rgba(255, 188, 118, 0) 65%);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.65), inset 0 -2px 4px rgba(255, 220, 150, 0.2);
  display: block;
}

.games-hero__cabinet-return {
  width: 44px;
  height: 36px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(196, 180, 140, 0.9), rgba(110, 98, 68, 0.98)),
    linear-gradient(180deg, rgba(255, 245, 210, 0.25), transparent 65%);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.45);
  position: relative;
}

.games-hero__cabinet-return::after {
  content: "25¢";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(46, 32, 12, 0.85);
  letter-spacing: 0.14em;
}

.games-hero__cabinet-controls {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.9rem, 2.5vw, 1.35rem);
}

.games-hero__cabinet-joystick {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 220, 180, 0.2), rgba(102, 58, 26, 0.85)),
    linear-gradient(180deg, rgba(88, 48, 18, 0.96), rgba(40, 18, 6, 0.96));
  box-shadow:
    inset 0 16px 28px rgba(255, 255, 255, 0.22),
    inset 0 -24px 28px rgba(0, 0, 0, 0.45),
    0 14px 24px rgba(0, 0, 0, 0.6);
}

.games-hero__cabinet-joystick-top {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -82%);
  width: 20px;
  height: 56px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(186, 60, 40, 0.95), rgba(102, 18, 10, 0.95));
  box-shadow: inset 0 4px 8px rgba(255, 200, 190, 0.4);
}

.games-hero__cabinet-button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.28),
    inset 0 -18px 22px rgba(0, 0, 0, 0.55),
    0 12px 18px rgba(0, 0, 0, 0.4);
}

.games-hero__cabinet-button::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  filter: blur(9px);
}

.games-hero__cabinet-button--pink {
  background:
    linear-gradient(180deg, rgba(210, 70, 62, 0.95), rgba(124, 22, 14, 0.95));
}

.games-hero__cabinet-button--blue {
  background:
    linear-gradient(180deg, rgba(118, 166, 186, 0.95), rgba(38, 70, 92, 0.95));
}

.games-hero__cabinet-button--yellow {
  background:
    linear-gradient(180deg, rgba(214, 176, 72, 0.95), rgba(128, 84, 18, 0.95));
}

.games-hero__cabinet-plate {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 216, 168, 0.28), rgba(255, 255, 255, 0), rgba(255, 216, 168, 0.28));
  opacity: 0.35;
}

.games-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 22, 64, 0.72);
  border: 1px solid rgba(158, 170, 255, 0.45);
  color: rgba(232, 235, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.games-hero__description {
  margin: 1.25rem 0 1.75rem;
  font-size: 1.1rem;
  color: var(--muted-text);
  max-width: 48ch;
  line-height: 1.7;
}

.games-hero__cta {
  margin: clamp(1rem, 3vw, 1.75rem) 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.games-hero__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.games-hero__cta-button--primary {
  background: linear-gradient(135deg, #6b7dff, #ff6bd8);
  box-shadow: 0 18px 40px -18px rgba(255, 107, 207, 0.8);
  color: #12132f;
}

.games-hero__cta-button--secondary {
  background: rgba(10, 14, 46, 0.85);
  border-color: rgba(160, 176, 255, 0.5);
  color: var(--text-color);
}

.games-hero__cta-button:focus-visible,
.games-hero__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px -18px rgba(0, 0, 0, 0.65);
}

.games-hero__cta-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.games-search {
  position: relative;
  z-index: 1;
  width: min(100%, clamp(320px, 38vw, 430px));
}

.games-search__field {
  position: relative;
  padding: 0.35rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(14, 18, 52, 0.9), rgba(8, 12, 36, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 12px 28px -16px rgba(0, 0, 0, 0.65);
}

.games-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 7.2rem 1rem 1.35rem;
  font-size: 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(166, 178, 255, 0.5);
  background: rgba(4, 7, 28, 0.82);
  color: var(--text-color);
  box-shadow: 0 25px 55px -25px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.games-search input:focus {
  outline: none;
  border-color: rgba(173, 186, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(133, 156, 255, 0.35), 0 20px 55px -20px rgba(0, 6, 40, 0.85);
}

.games-search__submit-button {
  position: absolute;
  top: 50%;
  right: 3.5rem;
  transform: translate3d(0, -50%, 0);
  height: 2.85rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 178, 255, 0.65);
  background: linear-gradient(135deg, rgba(92, 114, 255, 0.92), rgba(156, 92, 255, 0.88));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 20px 45px -26px rgba(62, 78, 210, 0.8);
  transition: var(--transition-smooth);
}

.games-search__submit-button:hover:not(:disabled) {
  transform: translate3d(0, calc(-50% - 2px), 0);
  box-shadow: 0 26px 55px -24px rgba(88, 102, 235, 0.85);
}

.games-search__submit-button:focus-visible {
  outline: 3px solid rgba(160, 178, 255, 0.65);
  outline-offset: 4px;
}

.games-search__submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.games-search__voice-button {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translate3d(0, -50%, 0);
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid rgba(158, 170, 255, 0.55);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(72, 86, 218, 0.95));
  color: rgba(215, 220, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.25),
    0 18px 35px -20px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.games-search__voice-button:hover:not(.is-disabled):not(:disabled) {
  transform: translate3d(0, calc(-50% - 2px), 0);
  border-color: rgba(183, 196, 255, 0.85);
  color: #fff;
  box-shadow: 0 28px 55px -20px rgba(28, 40, 120, 0.85);
}

.games-search__voice-button:focus-visible {
  outline: 3px solid rgba(160, 178, 255, 0.65);
  outline-offset: 4px;
}

.games-search__voice-button.is-listening {
  background: linear-gradient(145deg, rgba(109, 126, 255, 0.95), rgba(197, 92, 255, 0.9));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 32px 70px -28px rgba(98, 122, 255, 0.85);
}

.games-search__voice-button.is-disabled,
.games-search__voice-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.games-search__voice-icon svg {
  display: block;
}

.games-search__voice-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-text);
  min-height: 1.2em;
}

.games-hero__scoreboard {
  margin: clamp(1.6rem, 3.5vw, 2.1rem) 0 0;
  display: inline-grid;
  gap: 0.4rem;
  justify-items: start;
  padding: 1.05rem 1.4rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(14, 18, 52, 0.95), rgba(6, 10, 32, 0.92));
  border: 1px solid rgba(150, 166, 255, 0.45);
  box-shadow:
    0 25px 55px -32px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}

.games-hero__scoreboard::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.games-hero__score-label {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(214, 220, 255, 0.75);
}

.games-hero__score-digits {
  position: relative;
  font-family: "Seven Segment", "Orbitron", "Share Tech Mono", "Courier New", monospace;
  font-size: clamp(1.75rem, 3.8vw, 2.4rem);
  letter-spacing: 0.24em;
  color: #f6ffb0;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(180deg, rgba(30, 36, 88, 0.9), rgba(14, 18, 46, 0.95));
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(214, 224, 255, 0.22),
    inset 0 -8px 18px -10px rgba(0, 0, 0, 0.6),
    0 12px 22px -18px rgba(0, 0, 0, 0.75);
  text-shadow: 0 0 18px rgba(255, 244, 168, 0.75);
}

.games-hero__score-digits::after {
  content: attr(data-digits);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: inherit;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.games-hero__score-tickets {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 164, 208, 0.85);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(86, 28, 120, 0.65), rgba(142, 44, 158, 0.65));
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.75);
}

.games-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.35rem;
  margin: clamp(2rem, 4vw, 2.6rem) 0 0;
  padding: clamp(1.4rem, 3vw, 1.85rem);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(8, 12, 44, 0.88), rgba(22, 18, 68, 0.9));
  border: 1px solid rgba(152, 166, 255, 0.35);
  box-shadow: 0 28px 55px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(92, 110, 224, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.games-hero__meta dt {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(227, 230, 255, 0.78);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.games-hero__meta dd {
  margin: 0;
  color: var(--text-color);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.games-catalog {
  padding: clamp(2.2rem, 4vw, 3rem);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(6, 10, 32, 0.82), rgba(16, 22, 72, 0.88));
  border: 1px solid rgba(132, 148, 255, 0.28);
  box-shadow: 0 45px 100px -50px rgba(3, 6, 28, 0.75);
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.games-catalog__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.games-catalog__header h2 {
  margin: 0 0 0.5rem;
}

.games-catalog__header p {
  margin: 0;
  color: var(--muted-text);
  max-width: 56ch;
}

.games-catalog__saved {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 176, 255, 0.45);
  background: rgba(10, 14, 46, 0.75);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.games-catalog__saved::after {
  content: "→";
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.games-catalog__saved:hover {
  border-color: rgba(188, 200, 255, 0.75);
  transform: translateY(-1px) scale(1.01);
}

.games-catalog__saved:hover::after {
  transform: translateX(3px);
}

.games-marquee {
  position: relative;
  overflow: hidden;
  margin: clamp(1.75rem, 4vw, 2.5rem) auto clamp(2.5rem, 5vw, 3.5rem);
  border-radius: 999px;
  border: 1px solid rgba(142, 158, 255, 0.45);
  background: rgba(12, 16, 48, 0.75);
  box-shadow: 0 25px 60px -40px rgba(4, 6, 32, 0.8);
}

.games-marquee::before,
.games-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 1;
}

.games-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(12, 16, 48, 0.85), transparent);
}

.games-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(12, 16, 48, 0.85), transparent);
}

.games-marquee__track {
  display: inline-flex;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding: 0.9rem clamp(1.5rem, 5vw, 2.5rem);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(223, 229, 255, 0.85);
  white-space: nowrap;
  animation: gamesMarquee 18s linear infinite;
  min-width: max-content;
  will-change: transform;
}

.games-marquee__track span::before {
  content: "✦";
  margin-right: 0.9rem;
  color: rgba(255, 107, 215, 0.8);
}

.saved-calculators--games {
  background: rgba(8, 12, 40, 0.78);
  border: 1px solid rgba(142, 158, 255, 0.28);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 2.75rem);
  box-shadow: 0 35px 85px -50px rgba(3, 6, 30, 0.7);
}

.saved-calculators--games .saved-calculators__header {
  border-color: rgba(142, 158, 255, 0.22);
}

.saved-calculators--games .saved-calculators__description {
  color: var(--muted-text);
}

@media (max-width: 900px) {
  .games-hero {
    padding: clamp(2.2rem, 8vw, 3rem);
    grid-template-columns: 1fr;
    grid-template-areas: "content" "cabinet";
    text-align: center;
    justify-items: center;
    align-content: start;
  }

  .games-hero__content {
    max-width: none;
    margin-inline: auto;
  }

  .games-hero__meta {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .games-hero__cabinet {
    transform: perspective(1200px) rotateY(0deg);
    margin-inline: auto;
    max-width: min(340px, 100%);
  }

  .games-hero__cta {
    justify-content: center;
  }

  .games-search {
    margin-inline: auto;
    width: min(100%, clamp(320px, 80vw, 420px));
  }

  .games-hero__scoreboard {
    margin-inline: auto;
  }

  .games-marquee__track {
    animation-duration: 22s;
  }
}

@media (max-width: 640px) {
  .games-hero {
    border-radius: 24px;
    gap: clamp(1.8rem, 7vw, 2.5rem);
  }

  .games-hero__ambient {
    inset: -25% -20% -15% -25%;
  }

  .games-search {
    width: 100%;
  }

  .games-catalog {
    border-radius: 22px;
    padding: clamp(1.75rem, 6vw, 2.5rem);
  }

  .games-catalog__header {
    align-items: flex-start;
  }

  .games-marquee {
    border-radius: 22px;
  }
}
