/* Spiel-Teaser „Tutto Gas“ (kompakt) – sections/spiel-teaser.liquid
   Farben kommen als --cs-* aus den Section-Settings. */

.tt-spiel {
  --cs-akzent: #ED4A29;
  --cs-dunkel: #163E48;
  --cs-hell: #FFF8DF;
  margin-top: var(--space-1, 25px);
  margin-bottom: var(--space-1, 25px);
}
.tt-spiel__reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 32px;
}

/* ---------- kleiner Röhrenfernseher ---------- */
.tt-spiel__tv {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 230px;
  margin-top: 18px;
  color: inherit;
  text-decoration: none;
  transform: rotate(-3deg);
  transition: transform .25s ease;
}
.tt-spiel__tv:hover,
.tt-spiel__tv:focus-visible { transform: rotate(-1deg) scale(1.04); }
.tt-spiel__tv:focus-visible { outline: 3px solid var(--cs-akzent); outline-offset: 6px; border-radius: 20px; }
/* Zimmerantenne */
.tt-spiel__tv::before,
.tt-spiel__tv::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 26px;
  background: #6b7076;
  border-radius: 2px;
  transform-origin: bottom center;
}
.tt-spiel__tv::before { transform: translateX(-6px) rotate(-28deg); }
.tt-spiel__tv::after { transform: translateX(5px) rotate(24deg); }

.tt-spiel__gehaeuse {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 9px 7px;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(160deg, #4a4e55 0%, #2b2e33 45%, #1b1d21 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -5px 10px rgba(0, 0, 0, .55), 0 10px 20px rgba(0, 0, 0, .3);
}
.tt-spiel__bildschirm {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16% / 13%;
  background: #05070a;
  box-shadow: 0 0 0 3px #121418, 0 0 0 5px #3b3f45;
}
.tt-spiel__bildschirm video,
.tt-spiel__bildschirm img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.06);
}
/* Röhre: Zeilen, gewölbte Vignette, Glasreflex, leichtes Flimmern */
.tt-spiel__glas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .04) 28%, transparent 45%),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .55) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .55);
  animation: tt-spiel-flimmern 4s steps(1) infinite;
}
@keyframes tt-spiel-flimmern {
  0%, 100% { opacity: 1; }
  47% { opacity: .92; }
  48% { opacity: 1; }
  83% { opacity: .95; }
}
.tt-spiel__kanal {
  position: absolute;
  top: 8%;
  right: 10%;
  font: bold 11px/1 "Courier New", monospace;
  letter-spacing: 1px;
  color: #7dff8a;
  text-shadow: 0 0 5px rgba(125, 255, 138, .8);
}
.tt-spiel__leiste {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  padding: 0 6px;
}
.tt-spiel__knoepfe { display: flex; gap: 5px; }
.tt-spiel__knoepfe i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8d939b, #2a2d31 70%);
}
.tt-spiel__led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff3b2f;
  box-shadow: 0 0 5px 1px rgba(255, 59, 47, .8);
}

/* ---------- Text und Button ---------- */
.tt-spiel__inhalt {
  flex: 1 1 260px;
  max-width: 420px;
  text-align: center;
}
@media (min-width: 640px) { .tt-spiel__inhalt { text-align: left; } }
.tt-spiel .tt-spiel__titel { margin: 0 0 .3em; font-size: 1em; line-height: 0; }
.tt-spiel__logo { display: inline-block; width: 150px; max-width: 60%; height: auto; }
.tt-spiel__text { margin: 0 0 .9em; font-size: .85em; }
.tt-spiel__cta {
  display: inline-block;
  padding: .6em 1.4em;
  border-radius: 100px;
  background: var(--cs-akzent);
  color: var(--cs-hell) !important;
  font-size: .95em;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--cs-dunkel);
  transform: rotate(-2deg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tt-spiel__cta:hover { transform: rotate(-1deg) translateY(-2px); box-shadow: 0 6px 0 var(--cs-dunkel); }
.tt-spiel__cta:active { transform: rotate(-1deg) translateY(3px); box-shadow: 0 1px 0 var(--cs-dunkel); }
.tt-spiel__cta:focus-visible { outline: 3px solid var(--cs-dunkel); outline-offset: 4px; }

@media (max-width: 480px) {
  .tt-spiel__tv { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-spiel__glas { animation: none; }
  .tt-spiel__tv,
  .tt-spiel__cta { transition: none; }
}
