:root {
  --bg: #03060b;
  --panel: rgba(5, 12, 20, 0.92);
  --panel-strong: #07111d;
  --cyan: #00ffff;
  --cyan-soft: rgba(0, 255, 255, 0.16);
  --pink: #ff007f;
  --pink-soft: rgba(255, 0, 127, 0.22);
  --text: #d8fbff;
  --muted: #7aaab2;
  --line: rgba(0, 255, 255, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 255, 255, 0.08), transparent 32rem),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 127, 0.1), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: "Courier New", "Share Tech Mono", monospace;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

.landing-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.landing-shell {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 32px;
}

.hero-panel {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(640px, 72vh);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050c14;
  box-shadow:
    0 0 34px rgba(0, 255, 255, 0.18),
    inset 0 0 48px rgba(0, 0, 0, 0.78);
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(5, 10, 20, 0.85) 75%, rgba(5, 10, 20, 0.98) 100%),
    linear-gradient(rgba(0, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 127, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  align-content: end;
  justify-items: center;
  padding: clamp(32px, 6vw, 84px) clamp(28px, 5vw, 72px) clamp(44px, 7vw, 92px);
  text-align: center;
}

.logo-mark {
  width: min(80%, 380px);
  max-width: 380px;
  margin: 0;
  filter:
    drop-shadow(0 0 14px rgba(0, 255, 255, 0.36))
    drop-shadow(3px 5px 0 rgba(0, 0, 0, 0.72));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 0.92;
  text-shadow:
    0 0 10px rgba(0, 255, 255, 0.72),
    0 0 32px rgba(0, 255, 255, 0.32),
    3px 3px 0 rgba(0, 0, 0, 0.86);
}

.subtitle {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.45rem);
  text-shadow:
    0 0 14px rgba(0, 255, 255, 0.32),
    2px 2px 0 rgba(0, 0, 0, 0.86);
}

.site-footer {
  padding: 18px 24px 28px;
  text-align: center;
}

.tester-link,
.terminal-button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 20, 0.72);
  color: var(--cyan);
  cursor: pointer;
  padding: 10px 16px;
  text-transform: uppercase;
  box-shadow: inset 0 0 22px rgba(0, 255, 255, 0.08);
}

.tester-link:hover,
.terminal-button:hover {
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.36);
}

.guide-page {
  min-height: 100vh;
  padding: 28px;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 22px;
  max-width: 1280px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 20px;
}

.guide-header h1 {
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  line-height: 1;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.guide-sidebar,
.walkthrough-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.12);
}

.guide-sidebar {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  position: sticky;
  top: 20px;
}

.sidebar-label {
  margin: 0 0 8px;
  color: var(--pink);
  font-weight: 700;
}

.guide-sidebar a {
  border-left: 2px solid transparent;
  color: var(--muted);
  padding: 9px 10px;
  text-decoration: none;
}

.guide-sidebar a:hover {
  border-left-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.walkthrough-panel {
  padding: 18px;
}

details {
  border: 1px solid rgba(0, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.26);
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--cyan);
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "[+] ";
  color: var(--pink);
}

details[open] > summary::before {
  content: "[-] ";
}

.act-log > summary {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.12), transparent);
}

.level-log {
  margin: 12px;
  background: rgba(7, 17, 29, 0.76);
}

.walkthrough-panel > .level-log {
  margin: 0 0 12px;
}

.level-log > summary {
  color: var(--text);
}

.log-body {
  border-top: 1px solid rgba(0, 255, 255, 0.16);
  padding: 16px;
}

.log-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.log-body img {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 1px dashed rgba(0, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(255, 0, 127, 0.08)),
    #02060a;
  object-fit: cover;
}

.solution-shot {
  max-width: 100%;
  border: 1px solid var(--cyan);
  margin-top: 14px;
}

.solution-placeholder {
  margin-top: 10px;
  border: 1px solid rgba(255, 0, 127, 0.55);
  background:
    linear-gradient(90deg, rgba(255, 0, 127, 0.14), transparent),
    rgba(0, 0, 0, 0.42);
  color: var(--pink);
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.step-gallery {
  display: grid;
  gap: 15px;
  margin-top: 16px;
}

.step-shot {
  margin: 0;
}

.step-label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.step-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  margin-bottom: 15px;
  border: 1px solid #00ffff;
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(255, 0, 127, 0.08)),
    #02060a;
  object-fit: cover;
}

.step-shot figcaption {
  border: 1px solid rgba(255, 0, 127, 0.55);
  background:
    linear-gradient(90deg, rgba(255, 0, 127, 0.14), transparent),
    rgba(0, 0, 0, 0.42);
  color: var(--pink);
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.puzzle-group-anchor {
  height: 1px;
  scroll-margin-top: 24px;
}

.code-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.code-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.18);
  padding: 10px 0;
}

.code-list strong {
  color: var(--pink);
}

@media (max-width: 760px) {
  .guide-header,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-header {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-sidebar {
    position: static;
  }
}
