:root {
  --bg-deep: #0a0c0f;
  --bg: #12151a;
  --panel: rgba(28, 32, 38, 0.72);
  --line: rgba(196, 205, 214, 0.18);
  --text: #eef1f4;
  --muted: #9aa4af;
  --metal-bright: #f4f6f8;
  --metal: #c5ced6;
  --metal-dark: #7f8a95;
  --accent: #d7dee5;
  --support-bg: #1b222b;
  --support-text: #f7f9fb;
  --support-border: #d7dee6;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(170, 184, 198, 0.16), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(120, 132, 146, 0.12), transparent 50%),
    linear-gradient(180deg, #0d1014 0%, #15191f 45%, #0b0d10 100%);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.7;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.01) 2px,
    rgba(255, 255, 255, 0.01) 3px
  );
  opacity: 0.5;
}

a { color: var(--accent); }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 12, 15, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f7f8fa, #aeb8c3 45%, #e8edf2 70%, #8f99a4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.links a:hover,
.links a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f5f7f9 0%, #c2ccd6 38%, #8d98a3 58%, #e2e7ec 100%);
  color: #0e1115;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: rgba(220, 228, 235, 0.45);
  background: rgba(255, 255, 255, 0.04);
  filter: none;
}

/* High-contrast Support Me: charcoal fill + bright text (not silver-on-silver) */
.btn-support {
  background: var(--support-bg);
  color: var(--support-text);
  border: 1px solid var(--support-border);
  box-shadow: none;
  text-shadow: none;
  padding: 0.55rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.cta-row .btn-support,
.ot-cta .btn-support,
.mods-hero .btn-support {
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}

.btn-support:hover {
  background: #10161d;
  color: #ffffff;
  border-color: #f0f3f6;
  filter: none;
}

.btn-full { width: 100%; }

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--metal);
  font-weight: 600;
}

.lede,
.section-lede {
  margin: 18px auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.section-lede {
  margin: 0 auto 28px;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.85s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

.hero-logo-sm {
  width: min(120px, 28vw);
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

.mods-hero {
  padding: 72px 0 28px;
  text-align: center;
}

.mods-hero-simple {
  padding: 56px 0 12px;
}

.mods-hero h1,
.ot-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 10%, #c8d1da 45%, #8f9aa6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mods-list {
  padding: 20px 0 100px;
}

.mod-downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.mod-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(34, 38, 45, 0.85), rgba(18, 21, 26, 0.9));
  transition: border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.mod-item:hover {
  border-color: rgba(220, 228, 235, 0.35);
}

.mod-accordion {
  padding: 0;
}

.mod-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px 12px 0;
}

.mod-dropdown {
  min-width: 0;
}

.mod-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 10px;
  margin-right: 10px;
  min-width: 9.5rem;
}

.mod-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.mod-like:hover {
  border-color: rgba(220, 228, 235, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.mod-like:active {
  transform: scale(0.98);
}

.mod-like-icon {
  color: var(--metal);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mod-like.is-liked {
  border-color: rgba(232, 120, 140, 0.55);
  background: rgba(232, 120, 140, 0.12);
}

.mod-like.is-liked .mod-like-icon {
  color: #e8788c;
  transform: scale(1.08);
}

.mod-like:disabled {
  cursor: default;
  opacity: 1;
}

.mod-dl-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.mod-dl-label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.72rem;
}

.mod-dl-count,
.mod-like-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

.mod-download {
  align-self: stretch;
  width: 100%;
}

.mod-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 8px 10px 22px;
  cursor: pointer;
}

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

.mod-summary-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.mod-thumb {
  width: 72px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.mod-expand-hint {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-right: 1.1rem;
}

.mod-expand-hint::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--metal);
  border-bottom: 2px solid var(--metal);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.mod-dropdown[open] .mod-expand-hint::after {
  transform: translateY(-20%) rotate(225deg);
}

.mod-info h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.mod-meta {
  margin: 0 0 8px;
  color: var(--metal);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.mod-summary-text,
.mod-info p,
.mod-loading {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.mod-summary-text {
  font-size: 0.98rem;
}

.mod-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  padding: 0 22px 24px;
  border-top: 1px solid var(--line);
  animation: rise-in 0.35s ease;
}

.mod-panel-copy {
  padding-top: 18px;
}

.mod-panel-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.mod-detail-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.mod-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2f4f6, #8d98a3);
}

/* Keep the media at its natural height; stretching it to the text column left a tall black box under the clip. */
.mod-panel-media {
  padding-top: 18px;
  display: grid;
  gap: 12px;
  align-self: start;
  align-content: start;
}

.mod-gif,
.mod-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0c0f;
}

.mod-gif a,
.mod-shot a {
  display: block;
}

.mod-gif img,
.mod-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mod-shot img {
  transition: transform 0.2s ease;
}

.mod-shot a:hover img {
  transform: scale(1.04);
}

.mod-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mod-changelog {
  margin-top: 10px !important;
  font-size: 0.95rem;
}

.mod-updated {
  margin-top: 8px !important;
  font-size: 0.85rem;
  opacity: 0.85;
}

.mod-info code,
.mods-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--metal-bright);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.mods-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Old Times */
.ot-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: end center;
  padding: 48px 0 64px;
  overflow: hidden;
}

.ot-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ot-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.04);
  animation: slow-pan 18s ease-in-out infinite alternate;
}

.ot-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.35) 0%, rgba(8, 10, 12, 0.72) 48%, rgba(8, 10, 12, 0.94) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 20%, rgba(0, 0, 0, 0.45) 80%);
}

.ot-hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ot-trailer,
.ot-about,
.ot-feature,
.ot-scoring,
.ot-cta {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.ot-trailer h2,
.ot-about h2,
.ot-feature h2,
.ot-scoring h2,
.ot-cta h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.ot-trailer,
.ot-scoring,
.ot-cta {
  text-align: center;
}

.trailer-frame {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.trailer-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ot-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.ot-split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.ot-split p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 22px;
}

.ot-media {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.ot-media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.ot-media.wide {
  margin-top: 34px;
}

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

.traits li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-weight: 500;
}

.traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2f4f6, #8d98a3);
}

.score-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  text-align: left;
}

.score-grid li {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.score-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.score-grid strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.score-grid em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Dragon */
.play-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.shot-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.shot-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.shot-grid a:hover img {
  transform: scale(1.03);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-pan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 820px) {
  .ot-split,
  .ot-split.reverse {
    grid-template-columns: 1fr;
  }

  .ot-split.reverse .ot-media {
    order: -1;
  }

  .mod-row {
    grid-template-columns: 1fr;
    padding: 8px 12px 14px;
  }

  .mod-aside {
    margin: 0 8px 4px;
    width: calc(100% - 16px);
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .mod-stats {
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 10px;
  }

  .mod-like {
    width: auto;
    min-width: 5.5rem;
  }

  .mod-download {
    width: auto;
    min-width: 8rem;
    margin-left: auto;
  }

  .mod-panel {
    grid-template-columns: 1fr;
  }

  .mod-gallery,
  .shot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .ot-hero {
    min-height: auto;
    padding: 36px 0 48px;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }
}
