.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring.r1 {
  width: 40px;
  height: 40px;
  border-top: 4px solid rgba(255, 255, 255, 0.95);
  border-right: 4px solid rgba(255, 255, 255, 0.75);
  border-bottom: 4px solid rgba(255, 255, 255, 0.35);
  border-left: 4px solid rgba(255, 255, 255, 0.35);
  animation-duration: 10s;
}

.orbit-ring.r2 {
  width: 68px;
  height: 68px;
  border-top: 4px solid rgba(255, 255, 255, 0.9);
  border-right: 4px solid rgba(255, 255, 255, 0.6);
  border-bottom: 4px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid rgba(255, 255, 255, 0.2);
  animation-direction: reverse;
  animation-duration: 13s;
}

.orbit-ring.r3 {
  width: 96px;
  height: 96px;
  border-top: 4px solid rgba(255, 255, 255, 0.8);
  border-right: 4px solid rgba(255, 255, 255, 0.5);
  border-bottom: 4px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid rgba(255, 255, 255, 0.15);
  animation-duration: 16s;
}

.hover-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-family: 'Abel', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.hover-button-wrapper {
  position: absolute;
  left: calc(50% + var(--orbit-x));
  top: calc(50% + var(--orbit-y));
  transform: translate(-50%, -50%);
}

:root {
  --orbit-x: -16.4%;
  --orbit-y: 7.8vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("HomeImage.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 220px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 25%,
    rgba(0, 0, 0, 0.7) 60%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.credit {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 3;
}

#studio {
  position: relative;
  z-index: 2;
  background: #000;
  margin-top: -1px;
  padding-top: 90px;
}


.studio-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 36px;

  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity 800ms ease,
    transform 800ms ease;
}

.studio-logo-wrap.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.studio-logo {
  width: min(330px, 70vw);
  height: min(330px, 70vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .studio-logo-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.rainbow-transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: min(480px, 72vw);
  margin: -20px auto;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.rainbow-transition span {
  display: block;
  height: 2px;
  border-radius: 999px;
  opacity: 0.75;
  box-shadow: 0 0 10px currentColor;
  background: currentColor;
  transform: none;
}

.rainbow-transition span:nth-child(1),
.rainbow-transition span:nth-child(7) {
  width: 34%;
}

.rainbow-transition span:nth-child(2),
.rainbow-transition span:nth-child(6) {
  width: 50%;
}

.rainbow-transition span:nth-child(3),
.rainbow-transition span:nth-child(5) {
  width: 66%;
}

.rainbow-transition span:nth-child(1) { color: #ff595e; }
.rainbow-transition span:nth-child(2) { color: #ff924c; }
.rainbow-transition span:nth-child(3) { color: #ffca3a; }
.rainbow-transition span:nth-child(4) { width: 82%; color: #8ac926; }
.rainbow-transition span:nth-child(5) { color: #1982c4; }
.rainbow-transition span:nth-child(6) { color: #4267e8; }
.rainbow-transition span:nth-child(7) { color: #b15cff; }

.games-text-wrap {
  position: relative;
  isolation: isolate;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.games-text-box {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 42px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #0b1120;
  text-align: center;
}

.games-text-box p {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.5;
  color: var(--text);
}

.games-triangles {
  position: absolute;
  inset: -65px;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.games-triangles span {
  position: absolute;
  display: block;
  background: var(--triangle-color, #ff8500);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  opacity: 0.75;
  animation: triangle-glow var(--triangle-duration, 3s) ease-in-out infinite alternate;
  animation-delay: var(--triangle-delay, 0s);
}

@keyframes triangle-glow {
  from {
    opacity: 0.35;
    scale: 0.8;
  }

  to {
    opacity: 0.85;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-triangles span {
    animation: none;
    opacity: 0.65;
  }
}

#games .section-heading {
  margin-bottom: 150px;
}


body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #0b1120;
}

#studio,
#games {
  background: transparent;
}

#contact {
  position: relative;
  isolation: isolate;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("spacebeach.jpg") center / cover no-repeat;
}

#contact::before,
#contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 150px;
  z-index: 0;
  pointer-events: none;
}

#contact::before {
  top: 0;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
}

#contact::after {
  bottom: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}

#contact .main-content {
  position: relative;
  z-index: 1;
}

#contact .main-content {
  position: relative;
  z-index: 1;
}

#contact .contact-box {
  background: rgba(8, 15, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(5px);
}

@media (max-width: 600px) {
  #contact {
    min-height: 65vh;
  }
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: #000;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.impressum {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}

.impressum summary {
  display: table;
  margin: 0 auto;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(229, 231, 235, 0.75);
  font-size: 0.82rem;
  cursor: pointer;
  list-style: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.impressum summary::-webkit-details-marker {
  display: none;
}

.impressum summary::before {
  content: "+ ";
}

.impressum[open] summary::before {
  content: "− ";
}

.impressum summary:hover,
.impressum summary:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.impressum summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.impressum-content {
  max-width: 700px;
  margin: 22px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.impressum h2,
.impressum h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.impressum h2 {
  font-size: 1.6rem;
}

.impressum h3 {
  margin-top: 24px;
  font-size: 1rem;
}

.impressum p {
  margin-bottom: 12px;
}

.impressum a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact-credit {
  right: 20px;
  bottom: 18px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}




/* Tablet and smaller screens */
@media (max-width: 860px) {
  .logo {
    margin-left: 0;
  }

  .logo img {
    width: 140px;
    height: 140px;
  }

  .nav-links {
    gap: 8px;
    transform: none;
  }

  .nav-links a {
    min-width: 0;
    padding: 8px;
    font-size: 1.25rem;
  }

  #games .section-heading {
    margin-bottom: 80px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Common smartphone screens */
@media (max-width: 600px) {
  section {
    padding: 64px 0;
  }

  .container,
  .container.main-content {
    width: calc(100% - 32px);
  }

  header .nav {
    align-items: center;
    min-height: 82px;
  }

  .logo img {
    width: 88px;
    height: 88px;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 5px;
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .hero {
    min-height: 100svh;
    min-height: 100vh;
  }

  .hover-button-wrapper {
    width: 160px;
    height: 160px;
  }

  .orbit-ring.r1 {
    width: 40px;
    height: 40px;
  }

  .orbit-ring.r2 {
    width: 68px;
    height: 68px;
  }

  .orbit-ring.r3 {
    width: 96px;
    height: 96px;
  }

  .info-panel {
    top: 50%;
    left: 50%;
    width: min(300px, calc(100vw - 40px));
    transform: translate(-50%, 12px) scale(0.98);
  }

  .hover-button-wrapper:hover .info-panel,
  .hover-button-wrapper:focus-within .info-panel {
    transform: translate(-50%, 0) scale(1);
  }

  .credit {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.68rem;
    text-align: right;
  }

  #studio {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .studio-logo {
    width: min(250px, 70vw);
    height: min(250px, 70vw);
  }

  .panel {
    min-height: 0;
    padding: 22px;
  }

  .panel-with-spheres {
    padding-bottom: 145px;
  }

  #games {
    padding-top: 56px;
  }

  #games .section-heading {
    margin-bottom: 56px;
  }

  .games-text-wrap {
    width: 100%;
  }

  .games-text-box {
    padding: 28px 20px;
  }

  .games-triangles {
    inset: -35px;
  }

  #contact {
    min-height: 65vh;
    padding: 72px 0;
    background-position: center;
  }

  #contact::before,
  #contact::after {
    height: 100px;
  }

  .contact-box {
    padding: 30px 18px;
  }

  .contact-box a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .contact-credit {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.68rem;
    text-align: right;
  }

  footer {
    padding: 24px 0 36px;
  }

  .impressum-content {
    overflow-wrap: anywhere;
  }
}

/* Extra-narrow phones */
@media (max-width: 380px) {
  .logo img {
    width: 70px;
    height: 70px;
  }

  .nav-links a {
    padding: 7px 4px;
    font-size: 0.9rem;
  }

  .container,
  .container.main-content {
    width: calc(100% - 24px);
  }

  .contact-box {
    padding: 26px 14px;
  }
}

/* Prevent page elements from creating a narrow overflow strip on the right. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 600px) {
  /* Keep the home callout and its text inside the screen. */
  .hover-button-wrapper {
    width: 180px;
    height: 180px;
  }
  
}

  .info-panel {
    top: calc(100% + 12px);
    left: 50%;
    width: min(300px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    transform: translate(-50%, 8px) scale(0.98);
  }

  .hover-button-wrapper:hover .info-panel,
  .hover-button-wrapper:focus-within .info-panel {
    transform: translate(-50%, 0) scale(1);
  }

  /* Keep the decorative game triangles from widening the page. */
  #games {
    overflow: hidden;
  }

  .games-text-wrap {
    min-width: 0;
  }


@media (max-width: 600px) {
  /* Center the rings so the callout has room on both sides. */
  .hover-button-wrapper {
    left: 50%;
    width: 180px;
    height: 180px;
  }

  /* Put the Projekt Kopernikus panel below the rings, not beside them. */
  .info-panel {
    top: calc(100% + 12px) !important;
    right: auto !important;
    left: 50% !important;
    width: min(300px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    transform: translate(-50%, 8px) scale(0.98);
  }

  .hover-button-wrapper:hover .info-panel,
  .hover-button-wrapper:focus-within .info-panel {
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 600px) {
  #home .hover-button-wrapper {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #home .hover-button-wrapper .info-panel {
    top: 50%;
    right: auto;
    left: 50%;
    width: min(300px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    transform: translate(-50%, -50%) scale(0.98);
  }

  #home .hover-button-wrapper:hover .info-panel,
  #home .hover-button-wrapper:focus-within .info-panel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}