/* Titelbildschirm (14.11.26, Christoph: „mach mir diese Seite mal besser“, die Startseite gefällt ihm).
   Wie die Startseite: Logo groß in der Mitte über dem laufenden Spiel, ein großer Spielen-Knopf,
   die übrigen Knöpfe klein in einer Reihe darunter. Kein dunkler Block links mehr.
   Wird nach style.css / look_neu.css geladen; „html body #scr-title.screen“ schlägt deren Regeln,
   auch die später nachgeladene stufen.css. */
html body #scr-title.screen {
  flex-direction: column; align-items: center; justify-content: flex-start;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(13, 8, 32, .62) 0, rgba(13, 8, 32, .18) 30%, rgba(13, 8, 32, 0) 46%, rgba(13, 8, 32, .5) 68%, rgba(13, 8, 32, .9) 100%);
}
html body #scr-title .title-wrap {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: none; padding: clamp(6px, 4vh, 44px) 0 0;
}

/* Logo */
html body #scr-title .logo {
  display: grid; grid-template-columns: auto; justify-items: center; column-gap: 0; position: relative;
  width: max-content; max-width: 100%; margin: 0; line-height: .86; filter: none; font-weight: 700;
  --o: #1a0f33;
}
html body #scr-title .logo-a, html body #scr-title .logo-b, html body #scr-title .logo-c { grid-column: 1; }
html body #scr-title .logo-a {
  font-size: clamp(13px, 2.4vh, 24px); letter-spacing: .6em; margin: 0 -.6em .45em 0; color: #fff; text-shadow: 0 3px 0 var(--o);
}
html body #scr-title .logo-b {
  font-size: clamp(46px, min(17vw, 21vh), 190px); letter-spacing: -.01em; color: #ff5470; animation: none; transform: none;
  text-shadow: .03em 0 0 #c4284a, .06em .06em 0 var(--o), -.03em -.03em 0 var(--o), .03em -.03em 0 var(--o), -.03em .03em 0 var(--o), .09em .12em 0 rgba(13, 8, 32, .55);
}
html body #scr-title .logo-c {
  font-size: clamp(21px, min(7.7vw, 9.5vh), 86px); letter-spacing: .02em; margin-top: .12em; color: #fff;
  text-shadow: .05em .05em 0 var(--o), -.04em -.04em 0 var(--o), .04em -.04em 0 var(--o), -.04em .04em 0 var(--o), .1em .13em 0 rgba(13, 8, 32, .55);
}
html body #scr-title .logo-v {
  position: absolute; right: 0; top: clamp(2px, 2.4vh, 22px); grid-column: auto; grid-row: auto; margin: 0; align-self: auto; justify-self: auto;
  transform: translate(42%, 0) rotate(8deg); animation: none;
  font-size: clamp(12px, 2.3vh, 22px); line-height: 1; padding: .3em .55em; border-radius: 8px;
  background: #ffd36b; color: #2a1600; box-shadow: 0 4px 0 rgba(0, 0, 0, .5);
}
html body #scr-title .tagline {
  margin: clamp(6px, 1.8vh, 18px) 0 0; font-size: clamp(15px, min(2.2vw, 3.2vh), 26px); font-weight: 700; color: #fff;
  text-shadow: 0 3px 0 #1a0f33, 0 0 18px rgba(26, 15, 51, .8);
}
html body #scr-title .title-new { display: none; }

/* Stufen-Plakette: schmal unter der Zeile */
html body.stufen-an #scr-title.screen .st-entry { margin: clamp(6px, 1.4vh, 14px) 0 0; background: rgba(13, 8, 32, .72); }

/* Menü: unten, ein großer Knopf, vier kleine */
html body #scr-title .menu {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: center; align-items: stretch;
  gap: 10px; width: 100%; max-width: none; margin: auto 0 0; padding-top: 12px;
}
html body #scr-title .menu .btn { justify-content: center; }
html body #scr-title #btn-play {
  grid-column: 1 / -1; justify-self: center; min-width: min(360px, 100%);
  font-size: clamp(22px, 3.6vh, 32px); padding: clamp(12px, 2.2vh, 20px) clamp(34px, 5vw, 64px); margin-bottom: clamp(2px, 1vh, 10px);
}
html body #scr-title .menu .btn:not(.btn-big) {
  font-size: clamp(13px, 1.9vh, 16px); padding: clamp(7px, 1.2vh, 10px) clamp(10px, 1.4vw, 18px);
  background: rgba(21, 14, 46, .82); border-color: rgba(255, 255, 255, .22);
}
html body #scr-title #btn-updates { padding-right: 24px; }
html body #scr-title .menu .btn:not(.btn-big):hover, html body #scr-title .menu .btn:not(.btn-big):focus-visible { background: #3d2c6e; border-color: #ffd36b; }

html body #scr-title .title-stats { margin-top: clamp(8px, 1.6vh, 16px); color: #ded6f5; font-size: clamp(12px, 1.8vh, 14px); text-shadow: 0 1px 0 #1a0f33; }
html body #scr-title button.title-stats { margin-top: 4px; }
html body #scr-title .title-foot {
  position: static; left: auto; right: auto; bottom: auto; flex: 0 0 auto; width: 100%; margin: clamp(6px, 1.4vh, 14px) 0 0;
  text-align: center; font-size: 12px; color: #b9b0d6;
}

@media (prefers-reduced-motion: no-preference) {
  html body #scr-title.show .logo span, html body #scr-title.show .tagline { animation: titel-land .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  html body #scr-title.show .logo-b { animation-delay: .08s; }
  html body #scr-title.show .logo-c { animation-delay: .16s; }
  html body #scr-title.show .logo-v { animation: titel-stempel .35s .5s both; }
  html body #scr-title.show .tagline { animation-delay: .28s; }
  @keyframes titel-land { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
  @keyframes titel-stempel { from { opacity: 0; transform: translate(42%, 0) rotate(8deg) scale(2.2); } to { opacity: 1; transform: translate(42%, 0) rotate(8deg) scale(1); } }
}

/* Hochkant-Handy: vier kleine Knöpfe als 2×2 */
@media (max-width: 620px) {
  html body #scr-title .menu { grid-template-columns: 1fr 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  html body #scr-title #btn-play { justify-self: stretch; min-width: 0; }
  html body #scr-title .logo-v { transform: translate(8%, -75%) rotate(8deg); }
  @keyframes titel-stempel { from { opacity: 0; } to { opacity: 1; } }
}
/* Handy quer: alles in eine Bildschirmhöhe */
@media (max-height: 470px) {
  html body #scr-title .title-wrap { padding-top: 0; }
  html body #scr-title .logo-b { font-size: clamp(38px, 19vh, 80px); }
  html body #scr-title .logo-c { font-size: clamp(18px, 8.6vh, 36px); }
  html body #scr-title .tagline { font-size: 14px; margin-top: 4px; }
  html body #scr-title .menu { gap: 6px; padding-top: 6px; }
  html body #scr-title #btn-play { font-size: 20px; padding: 9px 40px; margin-bottom: 0; }
  html body #scr-title .menu .btn:not(.btn-big) { font-size: 12px; padding: 6px 10px; }
  html body #scr-title .title-stats { margin-top: 4px; font-size: 11px; }
  html body #scr-title #title-daily { display: none; }
  html body #scr-title .title-foot { margin-top: 2px; font-size: 10px; }
}
@media (max-height: 340px) {
  html body #scr-title .tagline, html body #scr-title .logo-a { display: none; }
}
