/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* --- Grundlagen ------------------------------------------------------- */

html, body { margin: 0; padding: 0; background: #07070a; color: #edeef2; }
* { box-sizing: border-box; }
a { color: #c8ff4d; text-decoration: none; }
a:hover { color: #e6ff9b; }
::selection { background: #c8ff4d; color: #07070a; }

@keyframes posharl-dust {
  0%   { transform: translateY(0);    opacity: .45 }
  50%  { transform: translateY(-6px); opacity: .9 }
  100% { transform: translateY(0);    opacity: .45 }
}

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

/* --- Rahmen: Kopf, Fuss, Hintergrund ---------------------------------- */

.shell {
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% -10%, #14141c 0%, #07070a 55%);
  font-family: 'Space Grotesk', Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}

.shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid #1b1b23;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.shell__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #74757f;
}

/* button_to erzeugt ein Formular; das soll im Layout nicht auffallen. */
.shell__nav-form,
.landing__form form { margin: 0; display: flex; }

.pill {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #24242e;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}

.pill:hover { border-color: #c8ff4d; color: #c8ff4d; }

.shell__footer {
  border-top: 1px solid #1b1b23;
  padding: 20px clamp(20px, 5vw, 64px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f505b;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.flash {
  margin: 0 clamp(20px, 5vw, 64px) 8px;
  padding: 14px 22px;
  border: 1px solid #24242e;
  border-radius: 14px;
  background: #0d0d13;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #a8a9b3;
}

/* --- Startseite ------------------------------------------------------- */

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(48px, 8vh, 96px);
  padding: clamp(48px, 9vh, 120px) clamp(20px, 5vw, 64px);
}

.landing__intro {
  display: grid;
  gap: 40px;
  /* 360px statt der 300px des Entwurfs: zweispaltig erst, wenn die Headline
     ihre drei gesetzten Umbrueche auch halten kann. */
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6d6e78;
  margin: 0 0 22px;
}

.landing__headline {
  /* Der Entwurf gibt clamp(52px, 9vw, 104px) vor. Bei 104px ist die laengste
     Zeile ("davon hast du") 668px breit, die Hero-Spalte aber nur 570px -- die
     drei gesetzten <br> wuerden auf jeder Desktop-Breite zusaetzlich brechen.
     Diese Kurve haelt sie von 375px aufwaerts. */
  font-size: clamp(52px, 6.5vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-weight: 700;
}

.accent { color: #c8ff4d; }

.landing__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: #a8a9b3;
  max-width: 46ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.landing__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.landing__note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #6d6e78;
}

.field {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #edeef2;
  background: #0d0d13;
  border: 1px solid #24242e;
  border-radius: 999px;
  padding: 16px 22px;
  min-width: 14rem;
}

.field::placeholder { color: #5e5f6b; letter-spacing: 0.08em; }
.field:focus-visible { outline: none; border-color: #c8ff4d; }

.btn--primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #07070a;
  background: #c8ff4d;
  border: 0;
  border-radius: 999px;
  padding: 17px 30px;
  cursor: pointer;
}

.btn--primary:hover { background: #e6ff9b; }

.landing__emblem { display: flex; justify-content: center; }

.emblem {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.emblem__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 77, 0.14) 0%, rgba(200, 255, 77, 0) 68%);
}

.emblem__dust--near { animation: posharl-dust 3.4s ease-in-out infinite; }
.emblem__dust--far  { animation: posharl-dust 4.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .emblem__dust { animation: none; }
}

/* --- Die drei Schritte ------------------------------------------------ */

.steps {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: #1b1b23;
  border: 1px solid #1b1b23;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.step { background: #09090d; padding: 32px 28px; }

.step__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #c8ff4d;
}

.step__title { font-size: 21px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.step__body  { font-size: 15px; line-height: 1.55; color: #8d8e99; margin: 0; }

/* --- Vorschlagsseite -------------------------------------------------- */

@keyframes posharl-scan {
  0%   { transform: translateY(-100%) }
  100% { transform: translateY(400%) }
}

.shell__library { color: #c8ff4d; }

/* Auf schmalen Screens quetscht sich die Bibliotheks-Zeile drei-zeilig
   zwischen Logo und Abmelden-Pill. Die Zahl steht ohnehin direkt darunter
   in der Wurf-Zeile. */
@media (max-width: 640px) {
  .shell__library { display: none; }
}

.suggestion {
  flex: 1;
  padding: clamp(32px, 6vh, 64px) clamp(20px, 5vw, 64px);
}

.suggestion__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.suggestion__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6d6e78;
}

.suggestion__body {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  align-items: start;
}

/* Bildspalte */

/* min-width: 0, sonst weitet der Inhalt die Grid-Spalte ueber ihre Bahn hinaus. */
.media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.media__hero {
  position: relative;
  aspect-ratio: 460 / 215;
  border: 1px solid #24242e;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #10101a 0 10px, #0b0b11 10px 20px);
  display: grid;
  place-items: center;
}

.media__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(200, 255, 77, 0) 0%, rgba(200, 255, 77, 0.06) 50%, rgba(200, 255, 77, 0) 100%);
  animation: posharl-scan 6s linear infinite;
}

.media__hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5e5f6b;
  text-align: center;
  padding: 0 16px;
}

.media__shots {
  display: grid;
  /* minmax(0, 1fr) statt 1fr: sonst zieht die Eigenbreite der Steam-Thumbnails
     die Spalten auf und das Raster laeuft in die Textspalte. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.media__shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #1e1e27;
  background: repeating-linear-gradient(135deg, #0e0e16 0 8px, #0a0a10 8px 16px);
  display: grid;
  place-items: center;
}

.media__shot-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #4f505b;
}

.media__note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f505b;
  margin: 4px 0 0;
}

.media__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Infospalte */

.game__playtime {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8ff4d;
  margin: 0 0 14px;
}

.game__title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 700;
}

.game__studio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #74757f;
  margin: 0 0 26px;
}

.game__description {
  font-size: 16px;
  line-height: 1.65;
  color: #a8a9b3;
  margin: 0 0 26px;
  text-wrap: pretty;
}

.game__jab {
  font-size: 15px;
  line-height: 1.6;
  color: #c8ff4d;
  margin: 0 0 30px;
  font-style: italic;
}

.game__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9ba5;
  border: 1px solid #24242e;
  border-radius: 999px;
  padding: 7px 13px;
}

.stats {
  display: grid;
  /* Der Entwurf sagt repeat(auto-fit, minmax(152px, 1fr)). In der maximal
     570px breiten Infospalte ergibt das 3 Spalten -- die vierte Kachel rutscht
     in eine zweite Reihe und laesst ein leeres Rasterfeld sichtbar stehen.
     Feste 2 bzw. 4 Spalten teilen die vier Kacheln immer glatt auf. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #1b1b23;
  border: 1px solid #1b1b23;
  margin-bottom: 34px;
}

@media (min-width: 1180px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat { background: #09090d; padding: 18px 16px; }

.stat__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d6e78;
  margin: 0 0 9px;
}

.stat__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #edeef2;
  line-height: 1.35;
  cursor: default;
}

.stat__value:hover { color: #c8ff4d; }

.game__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.game__action { margin: 0; }

/* Der Entwurf setzt die Buttons hier 1px flacher als den Landing-CTA. */
.game__actions .btn { padding: 16px 28px; }

.btn--ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #edeef2;
  background: transparent;
  border: 1px solid #2b2b36;
  border-radius: 999px;
  cursor: pointer;
}

.btn--ghost:hover { border-color: #c8ff4d; color: #c8ff4d; }

/* Merkliste */

.shortlist {
  border-top: 1px solid #1b1b23;
  padding-top: 26px;
}

.shortlist__heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6d6e78;
  margin: 0 0 16px;
}

.shortlist__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shortlist__entry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #c8ff4d;
  border: 1px solid #2b2b36;
  border-radius: 999px;
  padding: 9px 16px;
}

@media (prefers-reduced-motion: reduce) {
  .media__scan { animation: none; }
}

/* Hinweisseite, wenn Steam keine Bibliothek herausrueckt */

.notice {
  max-width: 560px;
  padding: 48px 0 80px;
}

.notice__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.notice__body {
  font-size: 16px;
  line-height: 1.7;
  color: #9b9ca6;
  margin: 0 0 24px;
}

.notice__body strong { color: #c8ff4d; }

.notice__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6d6e78;
  margin: 0;
}
