/* Startseite – heller, verspielter Hub im Stil von neal.fun */
:root {
  --bg: #fffdf7;
  --ink: #1d1a2f;
  --muted: #77738a;
  --display: 'Lilita One', 'Arial Black', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  text-align: center;
  padding: clamp(40px, 9vh, 90px) 20px 18px;
}
.logo {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 12vw, 108px);
  line-height: 1;
  letter-spacing: -1px;
  display: inline-flex;
}
.logo .l {
  display: inline-block;
  transform-origin: 50% 90%;
  animation: letterIn 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  text-shadow: 0 5px 0 rgba(29, 26, 47, 0.12);
}
.logo .l:hover {
  animation: wobble 0.5s ease;
}
.l1 { color: #ff4d6d; animation-delay: 0.02s !important; }
.l2 { color: #ff922b; animation-delay: 0.06s !important; }
.l3 { color: #fcc419; animation-delay: 0.1s !important; }
.l4 { color: #51cf66; animation-delay: 0.14s !important; }
.l5 { color: #20c997; animation-delay: 0.18s !important; }
.l6 { color: #4dabf7; animation-delay: 0.22s !important; }
.l7 { color: #845ef7; animation-delay: 0.26s !important; }
.l8 { color: #f06595; animation-delay: 0.3s !important; }
@keyframes letterIn {
  from { opacity: 0; transform: translateY(30px) scale(0.6) rotate(-10deg); }
}
@keyframes wobble {
  30% { transform: rotate(-10deg) scale(1.15); }
  60% { transform: rotate(8deg); }
}
.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 20px);
}

/* Kacheln */
.grid {
  max-width: 1080px;
  margin: 26px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px 26px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tile.soon {
  cursor: default;
}
.art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.8;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 rgba(29, 26, 47, 0.06), 0 12px 28px -12px rgba(29, 26, 47, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.25s;
}
.tile.live:hover .art,
.tile.live:focus-visible .art {
  transform: translateY(-6px) rotate(-1.5deg) scale(1.02);
  box-shadow: 0 2px 0 rgba(29, 26, 47, 0.06), 0 22px 40px -14px rgba(29, 26, 47, 0.45);
}
.tile:focus-visible {
  outline: none;
}
.tile.live:focus-visible .art {
  outline: 4px solid #845ef7;
  outline-offset: 4px;
}
.tile.soon .art {
  filter: saturate(0.55);
  opacity: 0.75;
}
.tile.soon:hover .art {
  transform: rotate(1deg);
}
.big {
  font-size: 84px;
  line-height: 1;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.12));
}
.tile-title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.1;
}
.tile-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 2px;
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #fff;
  background: #ff4d6d;
  padding: 4px 10px 2px;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  transform: rotate(4deg);
}
.badge.gray {
  background: #adb5bd;
}

.art-who { background: linear-gradient(135deg, #ffe066, #ffa94d); }
.art-guess { background: linear-gradient(135deg, #96f2d7, #38d9a9); }
.art-draw { background: linear-gradient(135deg, #ffc9c9, #f783ac); }
.art-react { background: linear-gradient(135deg, #a5d8ff, #4dabf7); }
.art-words { background: linear-gradient(135deg, #d0bfff, #9775fa); }

/* Quiz-Arena-Illustration aus reinem CSS */
.art-quiz {
  background: radial-gradient(120% 100% at 50% 0%, #4c2fb8 0%, #1f1458 60%, #120b33 100%);
}
.spot {
  position: absolute;
  top: -20%;
  width: 46%;
  height: 140%;
  background: linear-gradient(180deg, rgba(255, 236, 153, 0.55), transparent 75%);
  filter: blur(2px);
  transform-origin: 50% 0;
  animation: sweep 4s ease-in-out infinite alternate;
}
.spot.s1 { left: 0; transform: rotate(18deg); }
.spot.s2 { right: 0; transform: rotate(-18deg); animation-delay: -2s; }
@keyframes sweep {
  from { rotate: -8deg; }
  to { rotate: 8deg; }
}
.qa-board {
  position: relative;
  width: 58%;
  aspect-ratio: 1.6;
  border-radius: 14px;
  background: linear-gradient(160deg, #3a288f, #160f3d);
  border: 4px solid #ffd43b;
  box-shadow: 0 0 0 4px #120b33, 0 0 30px rgba(255, 212, 59, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-q {
  font-family: var(--display);
  font-size: 56px;
  color: #ffd43b;
  text-shadow: 0 4px 0 #8a6400;
  animation: qbob 2s ease-in-out infinite;
}
@keyframes qbob {
  50% { transform: translateY(-6px) rotate(6deg); }
}
.qa-bulbs {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  height: 10px;
  background-image: radial-gradient(circle, #ffd43b 4px, transparent 5px);
  background-size: 22px 10px;
  animation: bulbs 0.8s steps(2) infinite;
}
@keyframes bulbs {
  50% { opacity: 0.45; }
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 20px 40px;
}

/* Dialog */
.dialog {
  width: min(94vw, 760px);
  max-height: 92vh;
  border: 0;
  border-radius: 26px;
  padding: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(29, 26, 47, 0.4);
}
.dialog[open] {
  animation: dialogIn 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.dialog::backdrop {
  background: rgba(29, 26, 47, 0.45);
  backdrop-filter: blur(3px);
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
}
.close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f0f5;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.close:hover {
  background: #e6e4ee;
}
.dialog-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-right: 40px;
}
.dialog-emoji {
  font-size: 48px;
}
.dialog-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
}
.dialog-head p {
  margin: 2px 0 0;
  color: var(--muted);
}
.dialog-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .dialog {
    padding: 20px 16px;
  }
  .dialog-cols {
    grid-template-columns: 1fr;
  }
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f5fc;
}
.panel h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
}
.panel label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.panel input {
  display: block;
  width: 100%;
  margin-top: 4px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 12px;
  border: 2px solid #e3e0ee;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.panel input:focus {
  border-color: #845ef7;
  box-shadow: 0 0 0 4px rgba(132, 94, 247, 0.18);
}
.code-input {
  font-family: var(--display) !important;
  font-size: 26px !important;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-align: center;
}
.btn {
  font-family: var(--display);
  font-size: 19px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px 10px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(2px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.btn.primary {
  background: #845ef7;
  box-shadow: 0 4px 0 #5f3dc4;
}
.btn.green {
  background: #37b24d;
  box-shadow: 0 4px 0 #2b8a3e;
}
.small {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.error {
  margin: 0;
  min-height: 1.2em;
  color: #e03131;
  font-size: 14px;
  font-weight: 600;
}
.how {
  margin: 20px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
}
.how li {
  margin: 4px 0;
}
.how strong {
  color: var(--ink);
}
.how code {
  background: #f1f0f5;
  border-radius: 6px;
  padding: 1px 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
