/* Joculus Studios — game.css
   Spiel-Unterseiten. Baut auf style.css auf (Farben, Schrift, .btn, .section,
   .tag, .badge) und ergänzt nur, was es auf der Startseite nicht gibt. */

.game-page { padding-top: 88px; }

/* ---------- Brotkrumen ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Kopfbereich ---------- */
.game-hero { padding: 26px 0 56px; background: var(--gradient-hero); }
.game-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.game-hero-title { display: flex; align-items: center; gap: 18px; }
.game-hero-icon {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
.game-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  margin: 0;
}
.game-tagline { margin: 6px 0 0; color: var(--accent); font-weight: 600; }
.game-lead { margin: 22px 0 0; font-size: 1.12rem; color: var(--text-muted); max-width: 34em; }

.game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.game-chips li {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.game-actions .btn { text-decoration: none; }

.game-hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 2 / 1;
  background: var(--surface);
}
.game-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Early Access ---------- */
.early-access { padding: 0 0 8px; margin-top: -24px; }
.early-box {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 184, 77, 0.4);
  background: linear-gradient(100deg, rgba(255, 184, 77, 0.14), rgba(139, 123, 255, 0.12)), var(--surface);
  box-shadow: var(--shadow-card);
}
.early-text { flex: 1; min-width: 0; }
.early-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffce7a;
  border: 1px solid rgba(255, 184, 77, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.early-box h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 6px; }
.early-text p { margin: 0; color: var(--text-muted); }
.early-action { flex: none; text-align: center; }
.early-action .btn { text-decoration: none; }
.early-action p { margin: 10px 0 0; font-size: 0.86rem; color: var(--text-faint); }
.early-action p a { color: var(--accent); }
@media (max-width: 800px) {
  .early-box { flex-direction: column; align-items: stretch; text-align: center; }
  .early-action .btn { width: 100%; justify-content: center; }
}

/* ---------- Abschnitte ---------- */
.game-section { padding: 56px 0; }
.game-section + .game-section { border-top: 1px solid var(--border); }
.game-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin: 0 0 22px;
}

/* ---------- Video ---------- */
.game-video {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
  display: block;
}
@media (max-width: 700px) {
  .game-video { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
}

/* ---------- Screenshots ---------- */
.shot-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.shot-strip a {
  flex: none;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  line-height: 0;
}
/* 420 px Höhe: So bleiben die Beschriftungen der Store-Grafiken lesbar. */
.shot-strip img { height: 420px; width: auto; display: block; }
.shot-strip.shot-quer img { height: 280px; }
.game-description-shots { margin-bottom: 28px; min-width: 0; }
.shot-caption {
  display: block;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Highlights: große Werbemotive mit Botschaft ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.highlight-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--surface);
}
.shot-strip a:hover, .shot-strip a:focus-visible { border-color: var(--primary); }
.shot-hint { margin: 10px 0 0; font-size: 0.86rem; color: var(--text-faint); }

.shot-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
  color: var(--text);
}
.shot-dialog::backdrop { background: rgba(5, 7, 15, 0.9); }
.shot-dialog img { max-width: 92vw; max-height: 84vh; display: block; margin: 0 auto; border-radius: var(--radius-sm); }
.shot-bar { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; }
.shot-bar button {
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.shot-bar button:hover { background: var(--surface-hover); }

/* ---------- Beschreibung + Steckbrief ---------- */
.game-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.game-description { color: var(--text-muted); line-height: 1.7; }
.game-description h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.08rem;
  margin: 26px 0 8px;
}
.game-description p { margin: 0 0 14px; }
.game-description ul { margin: 0 0 16px; padding-left: 1.2em; }
.game-description li { margin: 4px 0; }

.game-facts {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.game-facts h2 { font-size: 1.2rem; margin-bottom: 14px; }
.game-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 0.94rem; }
.game-facts dt { color: var(--text-faint); }
.game-facts dd { margin: 0; color: var(--text); font-weight: 600; }
.game-facts .btn { margin-top: 20px; width: 100%; justify-content: center; text-decoration: none; }
.game-facts-note { margin: 12px 0 0; font-size: 0.8rem; color: var(--text-faint); }

/* ---------- Bug / Feedback ---------- */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.help-card h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.15rem; }
.help-card p { margin: 0 0 18px; color: var(--text-muted); flex: 1; }
.help-card .btn { align-self: flex-start; text-decoration: none; }

/* ---------- Teilen ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}
.share-btn:hover, .share-btn:focus-visible { background: var(--surface-hover); border-color: var(--primary); }
.share-btn[data-share-native] { background: var(--gradient-brand); color: #0a0d18; border: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); }
.faq a { color: var(--accent); }

/* ---------- Weitere Spiele ---------- */
.more-grid {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.more-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.more-grid a:hover, .more-grid a:focus-visible { border-color: var(--primary); background: var(--surface-hover); }
.more-grid img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.more-grid strong { display: block; font-family: var(--font-display); }
.more-grid span { display: block; font-size: 0.86rem; color: var(--text-faint); }
.more-all { color: var(--accent); font-weight: 700; text-decoration: none; }
.more-all:hover { text-decoration: underline; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .game-hero-inner, .game-columns { grid-template-columns: 1fr; gap: 30px; }
  .game-hero-media { order: -1; }
  .game-facts { position: static; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .game-hero-icon { width: 68px; height: 68px; border-radius: 17px; }
  .help-grid { grid-template-columns: 1fr; }
  .shot-strip img { height: 340px; }
  .shot-strip.shot-quer img { height: 200px; }
  .game-actions .btn { width: 100%; justify-content: center; }
}

.game-hero-media.game-hero-media-icon { min-height: 210px; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #172438, #101627); }
.game-hero-media.game-hero-media-icon img { width: 128px; height: 128px; object-fit: contain; border-radius: 24px; }
