/* ============================================================
   VF-Services · «Der verschüttete Umsatz» (VFS-GAME-001, R1)
   Nur auf /umsatz-ausgrabung/ geladen. Nutzt die Tokens aus main.css.
   ============================================================ */

.game-page{ padding-block:24px 56px; padding-inline:16px; }
@media (min-width:768px){ .game-page{ padding-inline:40px; padding-block:28px 72px; } }
@media (min-width:1280px){ .game-page{ padding-inline:80px; } }

.game-wrap{ max-width:1280px; margin-inline:auto; }

.game-intro{ max-width:780px; margin:0 auto 16px; text-align:center; }
.game-intro .eyebrow{ margin-bottom:6px; }
.game-intro h1{ color:var(--paper); margin-bottom:6px; }
.game-lede{ margin:0; color:var(--text-secondary); font-size:16px; line-height:24px; }
@media (min-width:768px){ .game-lede{ font-size:18px; line-height:28px; } }
@media (max-width:767px){
  .game-intro h1{ font-size:30px; line-height:36px; }
}
/* Auf niedrigen Bildschirmen tritt der Kopf zurueck, damit die Spielflaeche passt. */
@media (min-width:768px) and (max-height:820px){
  .game-intro h1{ font-size:34px; line-height:40px; }
  .game-lede{ font-size:16px; line-height:24px; }
}

/* ---------- Buehne: stabile 16:9-Flaeche ---------- */
.game-stage{
  position:relative;
  width:100%;
  max-width:min(1280px, calc((100svh - 250px) * 16 / 9));
  min-width:min(100%, 320px);
  aspect-ratio:16 / 9;
  margin-inline:auto;
  border-radius:var(--r-l);
  overflow:hidden;
  background:#0c0d0f;
  border:1px solid var(--hairline);
  touch-action:none;            /* kein Scrollen oder Zoomen waehrend des Spiels */
  overscroll-behavior:contain;
  -webkit-user-select:none; user-select:none;
  -webkit-tap-highlight-color:transparent;
  cursor:pointer;
}
@media (max-width:599px){
  .game-stage{ width:calc(100% + 32px); max-width:none; margin-inline:-16px; border-radius:0; border-inline:0; }
}
.game-poster, .game-poster img, .game-stage canvas{
  position:absolute; inset:0; width:100%; height:100%; display:block;
}
.game-poster img{ object-fit:cover; }
.game-stage canvas{ z-index:1; }
.js .game.is-live .game-poster{ visibility:hidden; }

/* ---------- HUD: feste Breiten, tabellarische Ziffern, kein Layoutsprung ---------- */
.game-hud{
  position:absolute; z-index:2; inset:0 0 auto 0;
  display:flex; justify-content:space-between; align-items:flex-start;
  padding:clamp(6px, 1.4vw, 16px);
  pointer-events:none;
}
.hud-chip{
  margin:0;
  display:flex; flex-direction:column; gap:1px;
  padding:5px 10px 6px;
  background:rgba(20,22,26,.82);
  border:1px solid rgba(176,141,87,.55);
  border-radius:var(--r-s);
  color:var(--paper);
}
.hud-label{
  font-family:var(--font-ui); font-size:10px; line-height:12px; letter-spacing:.9px;
  text-transform:uppercase; color:var(--text-secondary);
}
.hud-value{
  font-family:var(--font-ui); font-weight:700;
  font-size:15px; line-height:19px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.hud-chip--score .hud-value{ min-width:9.2ch; }
.hud-chip--time{ text-align:right; }
.hud-chip--time .hud-value{ min-width:4.2ch; }
.hud-chip--time.is-low{ border-color:var(--orange); }
.hud-chip--time.is-low .hud-value{ color:var(--orange); }
@media (min-width:768px){
  .hud-chip{ padding:7px 14px 8px; }
  .hud-label{ font-size:11px; line-height:14px; }
  .hud-value{ font-size:22px; line-height:28px; }
}
@media (min-width:1280px){
  .hud-value{ font-size:26px; line-height:32px; }
}

/* ---------- Kopfzeile ----------
   Auf der Spielseite bleibt die klebende Kopfzeile gleich hoch. Ihr
   Kompaktmodus (main.js, ab 80 px Scrolltiefe) aendert sonst die Hoehe im
   Fluss: die Spielflaeche springt, und nahe 80 px pendelt der Zustand. */
.site-header.is-compact .masthead{ padding-block:14px; }
@media (min-width:768px){ .site-header.is-compact .masthead{ padding-block:16px; } }
@media (min-width:1280px){ .site-header.is-compact .masthead{ padding-block:18px; } }

/* ---------- Status, Panel, Hinweise ---------- */
.game-status{
  min-height:24px; margin:10px auto 0; text-align:center;
  font-size:15px; line-height:24px; color:var(--paper);
}
.game-panel{ max-width:780px; margin:6px auto 0; text-align:center; min-height:124px; }
.game-panel [hidden]{ display:none!important; }
.game-howto{ margin:0 auto 14px; max-width:640px; font-size:15px; line-height:24px; color:var(--text-secondary); }
.game-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.game-actions .btn{ width:auto; min-width:200px; }
.game-actions .game-dig{ min-width:240px; }
@media (max-width:599px){
  .game-actions .btn{ flex:1 1 140px; min-width:0; }
}
.game-paused-title{ margin:0 0 12px; color:var(--paper); font-weight:600; }

.game-result{
  font-family:var(--font-display); font-weight:500; color:var(--paper);
  font-size:26px; line-height:32px; margin:0 0 6px;
}
@media (min-width:768px){ .game-result{ font-size:34px; line-height:42px; } }
.game-result:focus{ outline:none; }
.game-result:focus-visible{ outline:none; } /* nur per Skript fokussiert, nicht in der Tab-Reihenfolge */
.game-disclaimer{
  margin:0 0 10px; color:var(--brass); font-weight:600; font-size:15px; line-height:22px;
}
.game-stats{ margin:0 0 18px; font-size:14px; line-height:22px; color:var(--text-secondary); font-variant-numeric:tabular-nums; }
.game-cta{
  margin:0 auto 16px; padding:18px 16px; max-width:560px;
  border:1px solid var(--hairline); border-radius:var(--r-l); background:var(--surface);
}
.game-cta .btn{ width:100%; }
@media (min-width:600px){ .game-cta .btn{ width:auto; min-width:320px; } }
.game-cta-note{ margin:10px 0 0; font-size:13px; line-height:20px; color:var(--text-tertiary); }

.game-note{
  margin:18px auto 0; max-width:780px; text-align:center;
  font-size:13px; line-height:20px; color:var(--text-tertiary);
}
.game-hint-portrait{ display:none; }
@media (max-width:599px) and (orientation:portrait){
  .js .game-hint-portrait{ display:block; margin:8px 0 0; text-align:center; font-size:13px; line-height:20px; color:var(--text-tertiary); }
}
.game-nojs{ margin:12px auto 0; text-align:center; color:var(--paper); }
.js .game-nojs{ display:none; }
.game-panel{ display:none; }
.js .game-panel{ display:block; }
.game-status{ display:none; }
.js .game-status{ display:block; }

/* ---------- Legende ---------- */
.game-legend{ max-width:980px; margin:44px auto 0; }
.game-legend h2{ font-size:24px; line-height:30px; text-align:center; margin-bottom:18px; }
.game-legend-grid{ display:grid; gap:16px; }
@media (min-width:768px){ .game-legend-grid{ grid-template-columns:1fr 1fr; gap:24px; } }
.game-legend-col{ background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-l); padding:16px 18px; }
.game-legend-col h3{ font-family:var(--font-ui); font-size:13px; line-height:18px; letter-spacing:1px; text-transform:uppercase; color:var(--brass); margin:0 0 10px; }
.game-legend-list{ list-style:none; margin:0; padding:0; }
.game-legend-list li{ display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:12px; margin:0; padding:7px 0; border-top:1px solid var(--hairline); }
.game-legend-list li:first-child{ border-top:0; }
.game-legend-name{ color:var(--paper); font-weight:600; font-size:15px; line-height:21px; }
.game-legend-name small{ display:block; font-weight:400; font-size:13px; line-height:19px; color:var(--text-secondary); }
.game-legend-val{ font-variant-numeric:tabular-nums; color:var(--paper); font-size:14px; white-space:nowrap; }
.game-legend-ico{ width:48px; height:44px; display:flex; align-items:center; justify-content:center; }
.game-legend-icon{
  display:block;
  background-repeat:no-repeat;
  background-image:url("/assets/game/game-sprites.6e93f1f0.webp");
  background-image:image-set(url("/assets/game/game-sprites.2e5ae73a.avif") type("image/avif"), url("/assets/game/game-sprites.6e93f1f0.webp") type("image/webp"));
}
.game-legend-icon[data-t="coin"]{ width:40.0px; height:35.8px; background-size:426.7px auto; background-position:0.0px -227.9px; }
.game-legend-icon[data-t="nugget"]{ width:39.1px; height:40.0px; background-size:303.4px auto; background-position:-154.4px -116.7px; }
.game-legend-icon[data-t="chance"]{ width:40.0px; height:37.0px; background-size:252.8px auto; background-position:-88.1px -97.3px; }
.game-legend-icon[data-t="chest"]{ width:40.0px; height:24.2px; background-size:163.8px auto; background-position:0.0px -63.0px; }
.game-legend-icon[data-t="slow"]{ width:40.0px; height:26.6px; background-size:204.8px auto; background-position:-131.0px -78.8px; }
.game-legend-icon[data-t="nofollow"]{ width:40.0px; height:32.8px; background-size:204.8px auto; background-position:-36.4px 0.0px; }
.game-legend-icon[data-t="crm"]{ width:40.0px; height:29.0px; background-size:195.0px auto; background-position:-121.1px 0.0px; }
.game-legend-icon[data-t="dino"]{ width:40.0px; height:25.1px; background-size:163.8px auto; background-position:-61.4px 0.0px; }

@media (prefers-reduced-motion:reduce){
  .game-stage, .game-panel *{ transition:none!important; animation:none!important; }
}
