:root {
    --bg: #0f272a;
    --card: #1e363b;
    --text: #ebf7f6;
    --muted: #94a3b8;
    --accent: #34e2a2;
    --accent-hover: rgb(47, 230, 144);
}

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

html {
      scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.45rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

p {
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.version-badge {
    background: var(--card);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 246, 224, 0.3);
}

.download-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 260px;
    max-width: 360px;
}

.btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    padding: 1rem 1.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    min-width: 0;
}

.btn:hover:not(.disabled) {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-title {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
}

.btn-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
}

.btn-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
    text-align: left;
}

.btn:hover:not(.disabled) .btn-meta {
    color: rgba(255, 255, 255, 0.85);
}

.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.changelog-container {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: left;
  max-width: 600px;
  width: 100%;
  margin: 1rem auto;
}

details summary {
  cursor: pointer;
  font-size: 1.35rem;
  padding-bottom: 0.25rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
}

details.is-collapsible .changelog-body {
  max-height: 120px;
  overflow: hidden;
  position: relative;
  margin-top: 0.75rem;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

details[open].is-collapsible .changelog-body {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

details.is-expanded summary {
  pointer-events: none;
  list-style: none;
}
details.is-expanded summary::-webkit-details-marker {
  display: none;
}

.changelog-body p {
  margin: 0 0 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.changelog-body a {
  color: var(--accent);
  text-decoration: none;
}
.changelog-body a:hover {
  text-decoration: underline;
}

.section-divider {
  width: 100%;
  max-width: 720px;
  margin: 2.25rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(235, 247, 246, 0.14) 25%,
    rgba(52, 226, 162, 0.35) 50%,
    rgba(235, 247, 246, 0.14) 75%,
    transparent 100%
  );
}

@media (max-width: 640px) {
  .section-divider {
    margin: 1.75rem auto 1.25rem;
  }
}   

.platform-logo {
    width: 40px;
    height: 40px;
    fill: var(--text);
}

.jump-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}

.jump-btn:hover {
      background: var(--accent-hover);
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 640px) {
    main {
        padding: 1.25rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .download-column {
        flex-wrap: wrap;
        max-width: 100%;
        flex-basis: 100%;
    }
}