.home-heading-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.home-heading-links .hub-link { min-height: 44px; }
.home-heading-links .arcade-entry {
  padding-inline: 12px;
  border-color: var(--turquesa);
  background: var(--turquesa);
  color: #07222c;
}
.arcade-entry span { color: inherit; }
.home-heading-links .arcade-entry:hover { background: #97fff4; }
@media (max-width: 550px) {
  .home-heading-links .hub-link { padding-inline: 10px; font-size: .96rem; }
}

.arcade { max-width: 1090px; margin-inline: auto; }
.arcade-heading { margin-bottom: clamp(18px, 3vw, 30px); }
.arcade-heading h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
}
.arcade-heading h1:focus { outline: none; }
.arcade-heading p { margin: .45rem 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 21px); }
.arcade-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 2.3vw, 24px);
}
.arcade-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #44567b;
  border-radius: 17px;
  background: #111f3a;
  text-decoration: none;
}
.arcade-card:is(:hover, :focus-visible) { border-color: var(--lila); background: #182a49; }
.arcade-card-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 132px;
  aspect-ratio: 2.25;
  background: repeating-linear-gradient(0deg, transparent 0 22px, #c7dcf319 23px 24px), #21164f;
}
.arcade-card-art::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #fffd 1px, transparent 2px) 5% 22%, radial-gradient(circle, #8df8efcc 1px, transparent 2px) 52% 94%;
  background-size: 67px 61px, 47px 57px;
  opacity: .55;
}
.arcade-card-mark { position: relative; z-index: 1; display: block; }
.arcade-card .orbit-ship { width: 110px; transform: rotate(-12deg); }
.arcade-card[data-game="robots-desafinats"] .arcade-card-art { background-color: #163b4c; }
.arcade-card[data-game="robots-desafinats"] .arcade-card-mark {
  width: 78px;
  height: 54px;
  border: 4px solid #56e6db;
  border-radius: 15px;
  background: #0a2739;
  box-shadow: 5px 5px #7758c7, -9px 4px #b28aff;
}
.arcade-card[data-game="robots-desafinats"] .arcade-card-mark::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 6px;
  height: 15px;
  border-radius: 4px;
  background: #f4b77a;
}
.arcade-card[data-game="robots-desafinats"] .arcade-card-mark i {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 10px;
  height: 14px;
  border-radius: 5px;
  background: #e8ffff;
  box-shadow: 28px 0 #e8ffff;
}
.arcade-card[data-game="pont-dels-ecos"] .arcade-card-art { background-color: #302154; }
.arcade-card[data-game="pont-dels-ecos"] .arcade-card-mark {
  width: 25px;
  height: 18px;
  margin-right: 78px;
  border: 2px solid #ffe8ae;
  border-radius: 5px;
  background: #ffc974;
  box-shadow: 28px -9px #cda1fc, 56px -19px #9ad9e8, 84px -30px #5ff5da;
  transform: translateY(14px);
}
.arcade-card-copy { display: grid; gap: 5px; padding: 15px 17px 19px; }
.arcade-card-copy small { color: #b0f3e7; font-size: .78rem; }
.arcade-card-copy strong { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.12; }
.arcade-card-copy > span { color: var(--muted); font-size: .93rem; }
.arcade-primary { background: var(--turquesa); border-color: transparent; color: #07222c; }
.arcade-primary:hover:not(:disabled) { background: #91fff2; }
.arcade-primary:disabled { opacity: .55; background: var(--turquesa); }
.arcade-help {
  width: min(510px, calc(100% - 24px));
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #6376a4;
  border-radius: 17px;
  color: var(--white);
  background: var(--console);
}
.arcade-help::backdrop { background: #030717cc; }
.arcade-help h2 { margin-bottom: 10px; }
.arcade-help p { color: var(--muted); }
.arcade-help form { display: flex; justify-content: flex-end; }

.orbit-console {
  padding: clamp(11px, 2.4vw, 23px);
  border: 1px solid #485582;
  border-radius: 19px;
  background: #111c37;
}
.orbit-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-weight: 750; }
.orbit-stars { color: #ffd47f; letter-spacing: .2em; font-size: 1.15rem; }
.orbit-arena {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(220px, 37vw, 353px);
  border: 1px solid #423a82;
  border-radius: 13px;
  background: radial-gradient(ellipse at 20% 90%, #252056, transparent 62%), #0c1130;
}
.orbit-arena::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle, #f6ebff 1px, transparent 2px) 7% 5%, radial-gradient(circle, #74dce9 1px, transparent 2px) 51% 78%;
  background-size: 59px 53px, 97px 83px;
  opacity: .4;
}
.orbit-band {
  position: absolute;
  inset: 50% 14% auto 0;
  height: var(--orbit-band);
  transform: translateY(-50%);
  border-block: 1px dashed #74ffe2;
  background: linear-gradient(90deg, #2ebec933, #43f8d66b);
}
.orbit-band::before {
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #24c9ba33, #63fbe1);
}
.orbit-gate {
  position: absolute;
  top: 50%;
  left: 86%;
  width: clamp(52px, 13%, 94px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 5px solid #70e9e6;
  border-radius: 50%;
  background: #12163d;
  box-shadow: 0 0 0 6px #743fd188, inset 0 0 15px #754bb9, 0 0 25px #48e8df66;
}
.orbit-note {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 47px;
  padding: 3px 11px;
  border-radius: 7px;
  background: #b5adee;
  color: #101734;
  font-size: 1.1rem;
  font-weight: 850;
  text-align: center;
}
.orbit-ship { display: block; aspect-ratio: 1.85; }
.orbit-arena .orbit-ship {
  position: absolute;
  top: var(--orbit-y);
  left: var(--orbit-x);
  width: clamp(44px, 13%, 87px);
  transform: translate(-50%, -50%);
  transition: top .12s ease-out, left .12s ease-out;
}
.orbit-ship::before, .orbit-ship::after, .orbit-ship i { position: absolute; display: block; content: ""; }
.orbit-ship::before {
  inset: -11% 15% -11% 26%;
  background: #a470ff;
  clip-path: polygon(0 0, 100% 26%, 87% 77%, 0 100%, 21% 51%);
}
.orbit-ship::after {
  inset: 33% 68% 32% 0;
  background: linear-gradient(90deg, #ff8c60, #ffd684);
  clip-path: polygon(0 55%, 37% 13%, 100% 0, 80% 100%, 37% 87%);
}
.orbit-ship i {
  inset: 12% 0 12% 23%;
  z-index: 1;
  border-radius: 45% 100% 100% 40%;
  background: radial-gradient(circle at 56% 48%, #173355 0 12%, #63f4de 13% 21%, transparent 22%), linear-gradient(90deg, #ded2ff 8%, #fff5dd 70%, #bd85ff 71%);
}
.orbit-arena.is-cleared .orbit-gate { box-shadow: 0 0 0 7px #ad81fc88, inset 0 0 22px #744acd, 0 0 40px #5ff9dc99; }
.orbit-status { min-height: 2.1em; margin: 13px 0 7px; font-size: clamp(16px, 2vw, 21px); font-weight: 700; }
.orbit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .orbit-arena .orbit-ship { transition: none; }
}
