:root {
  color-scheme: dark;
  --bg: #070708;
  --bg-soft: #111214;
  --panel: #17181b;
  --panel-strong: #202126;
  --line: #30323a;
  --text: #f2f1eb;
  --muted: #b7b2a5;
  --muted-strong: #d8d2c3;
  --gold: #efbd4f;
  --gold-soft: #f4d37a;
  --green: #64d087;
  --blue: #79b8ff;
  --danger: #ff7d73;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(239, 189, 79, 0.08), rgba(7, 7, 8, 0) 340px),
    radial-gradient(circle at 10% 0%, rgba(121, 184, 255, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a,
.text-link {
  border: 1px solid transparent;
  color: var(--muted-strong);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 12px;
}

.nav-links a:hover,
.text-link:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.language-select {
  display: block;
  min-width: 88px;
}

.language-select select {
  min-height: 38px;
  border-color: rgba(239, 189, 79, 0.55);
  background: rgba(17, 18, 20, 0.88);
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: end;
  min-height: clamp(380px, 58vh, 580px);
  padding: 34px 0 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(239, 189, 79, 0.16);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: clamp(270px, 27vw, 360px);
  margin-top: 4px;
  overflow: hidden;
  align-items: end;
  border: 1px solid rgba(239, 189, 79, 0.36);
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.16), rgba(7, 7, 8, 0.12) 44%, rgba(7, 7, 8, 0.9) 78%),
    url("hero-reversing-anime-v1.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, transparent 1px, transparent 6px),
    radial-gradient(circle at 76% 42%, rgba(121, 184, 255, 0.16), transparent 28%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  mix-blend-mode: screen;
  opacity: 0.58;
  pointer-events: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 240, 168, 0.16);
  pointer-events: none;
}

.hero-brand-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  width: min(520px, calc(100% - 32px));
  margin: 16px;
  margin-left: auto;
  border: 1px solid rgba(239, 189, 79, 0.44);
  background: rgba(7, 7, 8, 0.76);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 28px rgba(121, 184, 255, 0.07);
  padding: 16px;
  backdrop-filter: blur(4px);
}

.hero-brand-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.hero-brand-title,
.hero-brand-subtitle,
.hero-brand-line {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

.hero-brand-title {
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 0 14px rgba(242, 241, 235, 0.28), 0 0 34px rgba(121, 184, 255, 0.2);
}

.hero-brand-subtitle {
  margin-top: 4px;
  color: var(--gold);
  font-size: clamp(1.4rem, 3.7vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.hero-brand-line {
  margin-top: 10px;
  color: var(--muted-strong);
  font-size: clamp(0.68rem, 1.2vw, 0.9rem);
  font-weight: 800;
}

.lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.03rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  padding: 11px 16px;
}

.button-primary {
  border-color: rgba(239, 189, 79, 0.85);
  background: var(--gold);
  color: #14100a;
}

.button-primary:hover {
  background: var(--gold-soft);
}

.button-ghost:hover {
  border-color: rgba(239, 189, 79, 0.6);
  background: rgba(239, 189, 79, 0.08);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 208, 135, 0.46);
  background:
    linear-gradient(180deg, rgba(7, 16, 10, 0.98), rgba(3, 6, 4, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(100, 208, 135, 0.1),
    inset 0 0 32px rgba(100, 208, 135, 0.08),
    var(--shadow);
  padding: 42px 22px 22px;
  font-family: "Lucida Console", "Cascadia Mono", "Courier New", ui-monospace, monospace;
}

.hero-panel::before {
  content: "C:\\DOSGAME\\ARCHIVE> STATUS";
  position: absolute;
  top: 14px;
  right: 20px;
  left: 20px;
  z-index: 1;
  overflow: hidden;
  color: rgba(100, 208, 135, 0.82);
  font-size: 0.72rem;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(100, 208, 135, 0.34);
  white-space: nowrap;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(100, 208, 135, 0.09) 0,
    rgba(100, 208, 135, 0.09) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.25;
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.metric + .metric {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(100, 208, 135, 0.32);
}

.metric-value {
  display: block;
  color: #f6fff4;
  font-family: "Lucida Console", "Cascadia Mono", "Courier New", ui-monospace, monospace;
  font-size: clamp(2rem, 5.5vw, 3.05rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(100, 208, 135, 0.34),
    0 0 18px rgba(100, 208, 135, 0.12);
  white-space: nowrap;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: rgba(156, 241, 180, 0.78);
  font-family: "Lucida Console", "Cascadia Mono", "Courier New", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-label::before {
  content: "[ ";
  color: rgba(100, 208, 135, 0.6);
}

.metric-label::after {
  content: " ]";
  color: rgba(100, 208, 135, 0.6);
}

.sync-line {
  margin-top: 18px;
  border: 1px solid rgba(100, 208, 135, 0.32);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  color: var(--green);
  font-family: "Lucida Console", "Cascadia Mono", "Courier New", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(100, 208, 135, 0.32);
  white-space: nowrap;
}

.sync-line::before {
  content: "> ";
}

.sync-line::after {
  animation: terminal-caret 1s steps(1, end) infinite;
  content: "_";
  margin-left: 4px;
}

@keyframes terminal-caret {
  50% {
    opacity: 0;
  }
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.intro-band h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.intro-band p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted-strong);
}

.youtube-shell {
  padding: 58px 0 28px;
}

.youtube-feature {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.youtube-copy {
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(239, 189, 79, 0.12), rgba(121, 184, 255, 0.08)),
    var(--panel);
  padding: 22px;
}

.youtube-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.06;
}

.youtube-copy p {
  margin: 12px 0 0;
  color: var(--muted-strong);
}

.video-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 22px 0;
}

.video-stats div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.mini-label {
  display: block;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1.1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(121, 184, 255, 0.78);
  background: var(--panel-strong);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0d10;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 30px;
  place-items: center;
  background: rgba(7, 7, 8, 0.86);
  color: var(--gold-soft);
  font-size: 0.9rem;
  line-height: 1;
}

.video-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.video-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.25;
}

.ad-band {
  display: grid;
  min-height: 112px;
  place-items: center;
  margin: 34px 0 0;
  border: 1px dashed rgba(239, 189, 79, 0.56);
  background:
    repeating-linear-gradient(135deg, rgba(239, 189, 79, 0.07) 0, rgba(239, 189, 79, 0.07) 8px, transparent 8px, transparent 16px),
    rgba(17, 18, 20, 0.72);
  text-align: center;
}

.ad-band div {
  padding: 20px;
}

.ad-band span {
  display: block;
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-band strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.ad-band p {
  margin: 6px 0 0;
  color: var(--muted);
}

.archive-shell {
  padding: 58px 0 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.result-count {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 10px;
  margin: 24px 0 28px;
}

.search-field,
.select-field {
  display: block;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  padding: 11px 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(239, 189, 79, 0.18);
}

::placeholder {
  color: #8f8a80;
  opacity: 1;
}

.status-message,
.empty-state {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted-strong);
  padding: 18px;
}

.status-message[hidden] {
  display: none;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.article-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 189, 79, 0.7);
  background: var(--panel-strong);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 189, 79, 0.24), rgba(121, 184, 255, 0.14)),
    #0c0d10;
}

.thumb::after {
  content: "DOSGAME.AT";
  position: absolute;
  inset: auto 14px 12px;
  color: rgba(242, 241, 235, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  filter: saturate(1.08) contrast(1.04);
}

.thumb.is-empty img {
  display: none;
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.article-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.5em;
  margin: 12px 0 16px;
  color: var(--muted-strong);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.archive-link {
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.imprint-shell {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
}

.imprint-shell h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.imprint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.imprint-grid div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.imprint-grid span {
  display: block;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.imprint-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1rem;
}

.imprint-grid a {
  color: var(--blue);
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  border: 1px solid var(--danger);
  background: #1a1010;
  color: var(--text);
  padding: 16px;
  z-index: 10;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 820px) {
  .topbar,
  .intro-band,
  .section-heading,
  .imprint-shell,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 14px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 38px 0 42px;
  }

  .hero-panel {
    width: 100%;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .youtube-feature {
    grid-template-columns: 1fr;
  }

  .imprint-shell {
    grid-template-columns: 1fr;
  }

  .imprint-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max), calc(100% - 22px));
  }

  .topbar {
    padding-top: 14px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .language-select {
    width: 100%;
  }

  .youtube-shell {
    padding-top: 34px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .ad-band {
    min-height: 96px;
  }

  .hero {
    gap: 10px;
    padding: 14px 0 14px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 3.2rem);
    line-height: 0.94;
  }

  .lede {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .hero-art {
    min-height: 220px;
    background-position: 37% center;
  }

  .hero-brand-card {
    grid-template-columns: 50px minmax(0, 1fr);
    width: calc(100% - 22px);
    margin: 11px;
    padding: 10px;
  }

  .hero-brand-card img {
    width: 50px;
    height: 50px;
  }

  .hero-brand-title {
    font-size: 1.58rem;
  }

  .hero-brand-subtitle {
    font-size: 1.06rem;
  }

  .hero-brand-line {
    margin-top: 6px;
    font-size: 0.5rem;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 42px;
    padding: 10px 14px;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 32px 12px 12px;
  }

  .hero-panel::before {
    top: 10px;
    right: 12px;
    left: 12px;
    font-size: 0.58rem;
  }

  .metric + .metric {
    margin-top: 0;
    border-top: 0;
    border-left: 1px dashed rgba(100, 208, 135, 0.32);
    padding-top: 0;
    padding-left: 12px;
  }

  .metric-value {
    font-size: 1.32rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }

  .sync-line {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 8px 10px;
    font-size: 0.62rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}
