:root {
  --hud-panel: rgba(97, 115, 91, 0.298);
  --hud-panel-strong: rgba(97, 115, 91, 0.36);
  --hud-border: rgba(199, 219, 199, 0.38);
  --hud-text: rgb(240, 245, 230);
  --hud-muted: rgb(173, 189, 173);
  --page-bg: #10140f;
  --warning: #d5b45c;
  --shadow: rgba(0, 0, 0, 0.38);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--hud-text);
  background:
    linear-gradient(rgba(16, 20, 15, 0.88), rgba(16, 20, 15, 0.96)),
    linear-gradient(135deg, #10140f 0%, #1b2017 48%, #0b0e0a 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

code {
  color: var(--hud-text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(199, 219, 199, 0.18);
  padding: 0.1rem 0.35rem;
}

.site-header,
main,
.site-footer {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  background: rgba(16, 20, 15, 0.82);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--hud-text);
  font-weight: 800;
  text-decoration: none;
}

.brand-signal {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--hud-border);
  background: rgba(97, 115, 91, 0.28);
}

.brand-signal::after {
  content: "";
  position: absolute;
  inset: 0.28rem;
  background: var(--warning);
  box-shadow: 0 0 0.65rem rgba(213, 180, 92, 0.55);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a,
.button {
  color: var(--hud-text);
  text-decoration: none;
  background: rgba(97, 115, 91, 0.22);
  border: 1px solid var(--hud-border);
  padding: 0.62rem 0.85rem;
  font-weight: 800;
}

.main-nav .icon-link {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  padding: 0;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.button:hover {
  border-color: rgba(213, 180, 92, 0.72);
  background: rgba(97, 115, 91, 0.42);
}

.secondary-button {
  background: rgba(0, 0, 0, 0.18);
}

.small-button {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
}

.discord-icon {
  position: relative;
  display: inline-block;
  width: 1.22rem;
  height: 0.88rem;
  border: 2px solid var(--hud-text);
  border-radius: 0.42rem;
  opacity: 0.9;
}

.discord-icon::before,
.discord-icon::after {
  content: "";
  position: absolute;
  top: 0.28rem;
  width: 0.18rem;
  height: 0.18rem;
  background: var(--hud-text);
  border-radius: 50%;
}

.discord-icon::before {
  left: 0.28rem;
}

.discord-icon::after {
  right: 0.28rem;
}

.small-discord-icon {
  width: 1rem;
  height: 0.72rem;
  border-width: 1.5px;
}

.hud-panel {
  background: var(--hud-panel);
  border: 1px solid var(--hud-border);
  box-shadow: 0 1rem 2.5rem var(--shadow);
}

.hero {
  margin-top: 1.4rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.page-hero {
  max-width: 48rem;
  padding: 2.5rem 0 1rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--hud-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.75rem;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.9;
  white-space: nowrap;
}

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

p {
  color: var(--hud-muted);
}

.lead {
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.loop-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem 0;
}

.loop-card {
  padding: 0.95rem;
}

.loop-card h2 {
  font-size: 1.25rem;
}

.loop-card p:last-child {
  margin-bottom: 0;
}

.preview-panel {
  overflow: hidden;
  min-height: 18rem;
}

.preview-topbar {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--hud-border);
  background: rgba(0, 0, 0, 0.16);
  color: var(--hud-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.preview-screen {
  position: relative;
  min-height: 15rem;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(213, 180, 92, 0.08), transparent 22rem),
    linear-gradient(rgba(97, 115, 91, 0.12), rgba(12, 15, 11, 0.76)),
    repeating-linear-gradient(0deg, rgba(199, 219, 199, 0.06) 0 1px, transparent 1px 2rem),
    repeating-linear-gradient(90deg, rgba(199, 219, 199, 0.05) 0 1px, transparent 1px 2rem),
    #0c0f0b;
}

.large-preview {
  min-height: min(62vh, 38rem);
}

.preview-card {
  width: min(100%, 34rem);
  padding: 1.4rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.24);
  border: 1px dashed rgba(199, 219, 199, 0.34);
}

.preview-card p {
  margin-bottom: 1rem;
}

.preview-stats,
.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.preview-stats span,
.controls-grid span {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(199, 219, 199, 0.18);
  color: var(--hud-text);
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.play-section {
  padding: 1rem 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.section-title p:last-child {
  max-width: 34rem;
  margin-bottom: 0;
  text-align: right;
}

.game-card {
  overflow: hidden;
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--hud-border);
  background: rgba(0, 0, 0, 0.16);
  color: var(--hud-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.status-light {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.45rem;
  background: var(--warning);
  box-shadow: 0 0 1rem rgba(213, 180, 92, 0.65);
  vertical-align: -0.05rem;
}

.game-frame {
  display: block;
  width: 100%;
  height: min(68vh, 42rem);
  min-height: 30rem;
  border: 0;
  background: #0c0f0b;
}

.play-slot-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(16, 20, 15, 0.88), rgba(16, 20, 15, 0.95)),
    #0c0f0b;
}

.play-slot-wrap {
  width: min(42rem, calc(100% - 2rem));
}

.play-slot-card {
  padding: 1.5rem;
  text-align: center;
}

.play-slot-card h1 {
  margin: 0 auto 0.8rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.latest-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 2rem;
  padding: 1.1rem;
}

.latest-panel p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
}

.info-panel,
.changelog-panel {
  padding: 1.1rem;
}

.info-panel p:last-child,
.changelog-panel p:last-child {
  margin-bottom: 0;
}

.feature-list,
.changelog-entry ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--hud-muted);
}

.feature-list li,
.changelog-entry li {
  margin-bottom: 0.45rem;
}

.controls-grid {
  margin-top: 0.9rem;
}

.controls-grid b {
  color: var(--warning);
}

.changelog-panel {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.changelog-header {
  display: grid;
  grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
}

.changelog-header p:last-child {
  max-width: 36rem;
  justify-self: end;
  text-align: right;
}

.changelog-list {
  display: grid;
  gap: 0.65rem;
}

.changelog-entry {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(199, 219, 199, 0.2);
}

.changelog-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  color: var(--hud-text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.changelog-entry summary::-webkit-details-marker {
  display: none;
}

.changelog-entry summary::before {
  content: "+";
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--warning);
  border: 1px solid rgba(199, 219, 199, 0.22);
  background: rgba(97, 115, 91, 0.22);
}

.changelog-entry[open] summary::before {
  content: "-";
}

.changelog-entry time {
  color: var(--hud-muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.changelog-entry ul {
  margin: 0;
  padding: 0 1.2rem 0.9rem 3.2rem;
}

.site-footer {
  padding-bottom: 1.25rem;
}

.footer-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--hud-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--hud-text);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header,
  .main-nav,
  .section-title,
  .game-card-top,
  .footer-panel {
    align-items: stretch;
  }

  .site-header,
  .section-title,
  .game-card-top,
  .footer-panel {
    flex-direction: column;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .main-nav a {
    flex: 1;
    text-align: center;
  }

  .hero,
  .loop-strip,
  .content-grid,
  .changelog-header {
    grid-template-columns: 1fr;
  }

  .latest-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-panel {
    min-height: 16rem;
  }

  .section-title p:last-child {
    text-align: left;
  }

  .game-frame {
    height: 28rem;
    min-height: 28rem;
  }

  .preview-stats,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .changelog-header p:last-child {
    justify-self: start;
    text-align: left;
  }

  .changelog-entry summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .changelog-entry summary::before {
    display: none;
  }

  .changelog-entry ul {
    padding-left: 1.5rem;
  }
}
