*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --glass: rgba(109, 40, 217, 0.30);
  --border: rgba(255, 255, 255, 0.30);
  --text: rgba(56, 189, 248, 0.80);
  --accent: #79c7ff;
  --radius: 20px;
  --gap: 16px;
}

html {
  min-height: 100%;
}

body {
  min-height: 15em;
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
  background: url("space.webp") center center / cover no-repeat fixed;
}

h1 {
  font-size: clamp(5rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0px 0px 60px rgba(222,144,194,1);
  color: white;
}

.pulse h1 {
  color: rgba(255, 255, 255, 0.6);
  -webkit-text-stroke: 1px rgba(255, 0, 0, 0.3);
  animation: pulsate 1s infinite;
}

@keyframes pulsate {
  10% {
    -webkit-text-stroke-width: 1px;
  }
  40% {
    -webkit-text-stroke-width: 6px;
  }
  100% {
    -webkit-text-stroke-width: 2px;
  }
}

h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  color: #9C5FC1;
}

h3 {
  font-size: 1.5rem;
  margin: 1px 0;
  padding: 1em;
  text-decoration: underline;
  color: darkgreen;
  text-align: auto;
}

strong {
  color: yellow;
}

p {
  margin: 0.5em;
  line-height: 1.6;
  color: white;
}

p strong {
  display: inline-block;
  padding-bottom: 15px;
  padding-top: 15px;
}

header {
  margin-bottom: 28px;
  text-align: center;
}

footer {
  padding: 2em;
  text-align: center;
  font-size: 2rem;
  color: yellow;
}

code {
  color: yellow;
}

.command {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 9px 13px;
  overflow-x: auto;
  color: #7cff9b;
  background: rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(124, 255, 155, 0.2);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
}

.container {
  width: min(60%, calc(80% - 20px));
  margin: 0 auto;
  padding: 20px 0;
}

.glass {
  box-shadow: 0px 1px 10px 5px rgba(126,51,168,0.55);
  -webkit-box-shadow: 0px 1px 10px 5px rgba(126,51,168,0.55);
  -moz-box-shadow: 0px 1px 10px 5px rgba(126,51,168,0.55);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section {
  width: 100%;
  padding: 3%;
}

.section.clean {
  background: rgba(1, 1, 1, 0.90);
  border-radius: var(--radius);
  overflow: hidden;
}

.outlined {
  margin: 20px;
  padding: 20px;
  border: 2px solid red;
  border-radius: var(--radius);
}

.section.clean video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.breaker {
  padding-top: 20px;
  padding-bottom: 20px;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 90%;
}

.row a {
    max-width: 80%;
    box-sizing: border-box;
    margin: 1px;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.liberapay-badges {
  flex-wrap: wrap;
  gap: 4px;
}

.liberapay-badges a img {
  display: block;
  width: 200px;
  height: 30px;
  object-fit: fill;
  border-radius: 6px;
  flex: 0 1 250px;
  max-width: 220px;
} 

@media (max-width: 600px) {
  .liberapay-badges {
    gap: 8px;
  }

  .liberapay-badges a {
    flex: 1 1 100%;
    max-width: 250px;
  }
}

.image {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  border-radius: 14px;
}

.server-icon {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  display: block;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 18px;
}

.subtitle {
  margin-top: 10px;
}

.small {
  font-size: 0.85rem;
}

.label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  color: darksalmon;
  text-decoration: none;
  background: rgba(0, 255, 0, 0.20);
  border-radius: 12px;
  cursor: pointer;
}

.button.stats {
  margin-right: 10px;
  width: 200px;
  height: 30px;
  border: 2px solid #00ff00;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.80);
}

.button:hover {
  border: 2px solid #ff0000;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 0, 0, 1.0);
}

.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  color: rgba(255, 255, 255, 1.0);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: yellowgreen;
}

.option-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.option-content {
  min-width: 0;
  flex: 1;
}

.option-title {
  display: block;
  font-weight: 600;
}

.option-description {
  display: block;
  margin-top: 4px;
  color: red;
  font-size: 1rem;
  font-weight: 600;
}

.link {
  color: skyblue;
}

.arrow {
  font-size: 18px;
  color: white;
}

.staff-jeff {
  color: #ff4d6d;
}

.staff-julius {
  color: #9b7bff;
}

.staff-breakfast {
  color: #ffb347;
}

.staff-darkblue {
  color: #4da6ff;
}

.staff-shazza {
  color: #ff66cc;
}

.staff-oblomov {
  color: #5ee6a8;
}

.staff-grumpf {
  color: #ffd84d;
}

.instruction {
  color: darkorange;
}

.key {
  color: red;
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 20px, 920px);
    padding: 20px 0;
  }

  .section {
    padding: 18px;
  }

  .server-icon {
    width: 100px;
    height: 100px;
  }

  .option {
    padding: 12px;
  }

  .option-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .option-description {
    display: none;
  }

  /* Mobile heading scaling only */
  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.05;
  }

  h2 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.15rem;
    line-height: 1.2;
    padding: 0.6em;
  }
}
