@font-face {
    font-family: "CBG-Font";
    src: url("../assets/Fonts/Michroma-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Undervalued-Font";
    src: url("../assets/Fonts/CinzelDecorative-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Display-Font";
    src: url("../assets/Fonts/PlayfairDisplay-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Body-Font";
    src: url("../assets/Fonts/Lato-Regular.ttf") format("truetype");
}

.company-name {
    font-family: "CBG-Font", sans-serif !important;
}

.game-name {
    font-family: "Undervalued-Font", sans-serif !important;
}

a.disabled {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 120, 120, 0.35) transparent;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(120, 120, 120, 0.35);
  border-radius: 10px;
  border: 2px solid transparent; /* makes it look thinner/softer */
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 120, 0.5);
}


/* ── TOKENS ────────────────────────────────────────── */
:root {
  --font-display: 'Display-Font', Georgia, serif;
  --font-body:    'Body-Font', system-ui, sans-serif;

  /* Dark antique palette */
  --bg-base:       #0E0B08;
  --bg-surface:    #16110C;
  --bg-raised:     #1E1710;
  --bg-hover:      #261E14;

  --border-subtle: rgba(180, 140, 80, 0.10);
  --border-mid:    rgba(180, 140, 80, 0.20);
  --border-strong: rgba(180, 140, 80, 0.35);

  --gold:          #C9973A;
  --gold-light:    #E4B96A;
  --gold-dim:      #8A6520;

  --text-primary:  #EDE4D4;
  --text-secondary:#A8916E;
  --text-muted:    #6B5540;

  --accent:        #A0522D;
  --accent-hover:  #C46A2E;

  /* Layout */
  --max-w:         1500px;
  --radius-sm:     3px;
  --radius-md:     6px;
  --radius-lg:     10px;

  /* Transitions */
  --t-fast:        0.18s ease;
  --t-mid:         0.3s ease;
}


/* ── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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


/* ── GRAIN OVERLAY ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ensure all sections sit above grain */
nav, main, footer, section, .page-header { position: relative; z-index: 1; }


/* ── NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(14, 11, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav__logo-img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0.9;
}

.nav__logo-img--fallback {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast);
}

.nav__links a:hover,
.nav__links a.active { color: var(--gold-light); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-secondary);
  transition: var(--t-fast);
}


/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--gold);
  color: var(--bg-base);
}
.btn--primary:hover { background: var(--gold-light); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
}
.btn--ghost:hover {
  color: var(--gold-light);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.btn--steam {
  background: var(--accent);
  color: var(--text-primary);
}
.btn--steam:hover { background: var(--accent-hover); }

.btn__icon {
  width: 14px; height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn__icon__extended {
  filter: brightness(0) invert(1);
  width: auto;
  height: 50px;
}


/* ── HERO ───────────────────────────────────────────── */

.hero__announcement {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  gap: 0;
}

.hero__banner {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid var(--border-mid);
  box-shadow:
    0 0 0 1px var(--border-subtle),
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(180, 120, 40, 0.07);
}

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

.hero__banner-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed var(--border-mid);
  border-radius: var(--radius-md);
}

.hero__banner-placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.hero__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* ── SECTION SHARED ─────────────────────────────────── */
.section {
  padding: 5.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.8rem;
}

.section__rule {
  border: none;
  border-top: 3px solid var(--border-subtle);
  max-width: var(--max-w);
  margin: 0 auto;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 auto 2.5rem;
  opacity: 0.6;
}

.divider-small {
  width: 50%;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 0 1rem;
  opacity: 0.6;
}


/* ── GAME SECTION ───────────────────────────────────── */
.game__screenshots {
  position: relative;
  overflow: hidden;
  cursor: default;
  width: 100%;
  transition: transform 0.2s ease;
}

.game__screenshot-slide {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.game__screenshot-slide img {
  min-width: 100%;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.game__screenshot-arrow {
  display: flex;
  padding: 0 0 2px 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.game__screenshot-arrow--left  { left: 10px; }
.game__screenshot-arrow--right { right: 10px; }

.game__screenshots:hover .game__screenshot-arrow:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.game__screenshots:hover {
  transform: scale(1.03);
}

.game__screenshot-arrow.hidden {
  display: none;
}

.game__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.game__image-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  background: var(--bg-surface);
}

.game__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game__image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed var(--border-subtle);
}

.game__image-placeholder span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.game__team-wrapper {
  position: relative;
  display: inline-block;
}

.game__dev {
  position: relative;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0rem;
  opacity: 0.8;
}

.game__team {
  cursor: pointer;
  position: relative;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--gold-dim);
  margin-bottom: 1.2rem;
}

.game__team-members {
    margin-top: 0rem;
    margin-bottom: 0rem;

    padding: 12px 16px;
    border-radius: 8px;

    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(194, 140, 77, 0.3);
    color: var(--gold-dim);

    transition:
        max-height 0.25s ease,
        opacity 0.25s ease,
        margin 0.25s ease;

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    margin-top: 0;
    margin-bottom: 0;
}

.game__team-members.open {
    max-height: 200px;
    opacity: 1;

    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.game__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.game__genre {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.2rem;
}

.game__credits {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.2rem;
}

.game__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.game__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* ── ABOUT SECTION ──────────────────────────────────── */
.about__body {
  max-width: 600px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.about__body + .about__body { margin-top: 1rem; }

.about__socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.about__contact-link {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast);
}
.about__contact-link:hover { color: var(--gold-light); }


/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem 2rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.footer__logo img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0.85;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.5rem; }

.footer__col a {
  font-size: 0.87rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer__col a:hover { color: var(--text-secondary); }

.footer__col p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__bottom p,
.footer__bottom a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--t-fast);
}
.footer__bottom a:hover { opacity: 1; }


/* ── IMPRESSUM PAGE ─────────────────────────────────── */
.page-header {
  padding: 8rem 2rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color var(--t-fast);
}
.back-link:hover { color: var(--gold); }
.back-link::before { content: '←'; }

.impressum-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.impressum-content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.impressum-content .subtitle {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.impressum-content h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 2.2rem 0 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.impressum-content p,
.impressum-content li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.impressum-content ul {
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

.impressum-content a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast);
}
.impressum-content a:hover { color: var(--gold-light); }

.impressum-content p + p { margin-top: 0.6rem; }


/* ── FADE-IN ANIMATION ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.65s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.64s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 1.25rem; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }
  .nav__hamburger { display: flex; }

  .game__layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .game__ctas { flex-direction: column; }
}