:root {
  --ks-bg: #120818;
  --ks-text: #fbeefa;
  --ks-ink: #2a1033;
  --ks-paper: #fff8fc;
  --ks-pink: #ff2ec4;
  --ks-green: #39ff14;
  --ks-lemon: #ffe94a;
  --ks-red: #ff3b3b;
  --ks-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ks-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Arial Black", "Noto Sans", system-ui, sans-serif;
}
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ks-text);
  background: var(--ks-bg);
  font-family: var(--ks-font);
  overscroll-behavior: none;
}
html[lang^="de"] .wd-en, html:not([lang^="de"]) .wd-de { display: none !important; }

.ks {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.ks-bild {
  position: absolute;
  top: 0; left: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.ks button { touch-action: manipulation; }
.ks button:focus-visible, .ks a:focus-visible { outline: 3px solid var(--ks-pink); outline-offset: 3px; }

.ks-hud { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.ks-hud[hidden] { display: none; }
.ks-top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 10px; right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ks-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
  margin: 0;
  padding: 3px 12px 4px;
  color: var(--ks-ink);
  background: var(--ks-paper);
  border: 3px solid var(--ks-ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ks-pink);
  line-height: 1.05;
}
.ks-pill__l { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ks-pill b { font-family: var(--ks-display); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ks-zeit { background: var(--ks-green); transform: rotate(-1.5deg); }
.ks-zeit.is-knapp { background: var(--ks-lemon); }
.ks-zeit.is-knapp b { animation: ks-puls .5s ease-in-out infinite alternate; }
.ks-rund {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ks-ink);
  background: var(--ks-paper);
  border: 3px solid var(--ks-ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ks-pink);
  pointer-events: auto;
  cursor: pointer;
}
.ks-rund svg { width: 20px; height: 20px; }

.ks-meter {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ks-meter__l {
  margin-right: 6px;
  font-family: var(--ks-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ks-kaesten {
  display: flex;
  align-items: center;
}
.ks-meter i {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 2px;
  background: rgba(255, 248, 252, .14);
  border: 2px solid var(--ks-paper);
  border-radius: 4px;
  transform: rotate(-4deg);
}
.ks-meter i:nth-child(odd) { transform: rotate(5deg); }
.ks-meter i.is-voll { background: #0b0b0b; border-color: var(--ks-red); }
.ks-meter.is-eng i.is-voll { animation: ks-wackel .28s ease-in-out infinite alternate; }

.ks-stapel {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: flex;
  align-items: center;
  margin: 0;
  padding: 5px 16px 5px 7px;
  color: var(--ks-ink);
  background: var(--ks-paper);
  border: 3px solid var(--ks-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ks-pink);
  transform: translateX(-50%) rotate(.8deg);
  white-space: nowrap;
}
.ks-stapel canvas { display: block; width: 50px; height: 50px; margin-right: 8px; }
.ks-stapel b { font-family: var(--ks-display); font-size: 26px; font-weight: 900; }
.ks-stapel__l { margin-left: 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ks-stapel.is-leer { background: #d9cfdc; }
.ks-stapel.is-leer canvas { opacity: .25; }
.ks-stapel.is-nein { animation: ks-nein .35s ease-in-out; }
.ks-stapel.is-plus { animation: ks-plus .45s ease-out; }

.ks-schirm {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px calc(env(safe-area-inset-bottom, 0px) + 16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(18, 8, 24, .74);
  box-sizing: border-box;
}
.ks-schirm[hidden] { display: none; }
.ks-karte {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 20px 20px 22px;
  color: var(--ks-ink);
  background: var(--ks-paper);
  border: 3px solid var(--ks-ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ks-pink);
  box-sizing: border-box;
  transform: rotate(-.6deg);
}
.ks-titel {
  margin: 0 0 12px;
  font-family: var(--ks-display);
  font-size: 31px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}
.ks-titel span span {
  display: inline-block;
  margin: 0 3px 5px 0;
  padding: 2px 9px 3px;
  background: var(--ks-pink);
  border: 3px solid var(--ks-ink);
  border-radius: 9px;
  transform: rotate(-2.5deg);
}
.ks-titel span span:nth-child(2) { background: var(--ks-green); transform: rotate(2deg); }
.ks-titel span span:nth-child(3) {
  color: #fff;
  background: #0b0b0b;
  text-decoration: line-through;
  text-decoration-color: var(--ks-pink);
  text-decoration-thickness: 5px;
  transform: rotate(-1deg);
}
.wd-crumbs { margin: -6px 0 8px; color: #6e5876; font-size: 13px; font-weight: 700; line-height: 1.4; }
.wd-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.wd-crumbs li { display: inline-flex; align-items: center; }
.wd-crumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 9px 0 5px;
  border-top: 2px solid var(--ks-pink);
  border-right: 2px solid var(--ks-pink);
  transform: rotate(45deg);
}
.wd-crumbs a {
  display: inline-block;
  padding: 4px 0;
  color: var(--ks-ink);
  text-decoration: underline;
  text-decoration-color: var(--ks-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ks-lead { margin: 0 0 14px; font-size: 16px; line-height: 1.4; }
.ks-regeln { margin: 0 0 16px; padding: 0; list-style: none; }
.ks-regeln li { display: flex; align-items: center; margin: 0 0 9px; font-size: 15px; line-height: 1.3; }
.ks-regeln svg { flex: none; width: 36px; height: 36px; margin-right: 10px; }
.ks-knoepfe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 4px; }
.ks-los {
  min-height: 52px;
  margin: 4px 0;
  padding: 0 26px;
  color: var(--ks-ink);
  background: var(--ks-green);
  border: 3px solid var(--ks-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ks-ink);
  font-family: var(--ks-display);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.ks-los:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ks-ink); }
.ks-mehr { display: flex; flex-wrap: wrap; align-items: center; }
.ks-klein {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 4px 0 4px 8px;
  padding: 0 13px;
  color: var(--ks-ink);
  background: var(--ks-paper);
  border: 2px solid var(--ks-ink);
  border-radius: 999px;
  font: 800 14px var(--ks-font);
  text-decoration: none;
  cursor: pointer;
}
.ks-klein svg { width: 18px; height: 18px; margin-right: 6px; }
.ks-ton[aria-pressed="true"] { background: var(--ks-lemon); }
.ks-ton[aria-pressed="true"] .ks-aus, .ks-ton[aria-pressed="false"] .ks-an,
.ks-ton[aria-pressed="true"] .ks-i-aus, .ks-ton[aria-pressed="false"] .ks-i-an { display: none; }
.ks-rekord { margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.ks-rekord[hidden] { display: none; }
.ks-ohne { margin: 0 0 14px; padding: 9px 12px; background: #fdeaf6; border-left: 4px solid var(--ks-pink); border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.4; }

.ks-recht {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 0;
  font-size: 13px;
}
.ks-recht a {
  display: inline-block;
  margin: 0 9px;
  padding: 8px 2px;
  color: var(--ks-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ks-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ks-unter { margin: -4px 0 12px; font-size: 16px; line-height: 1.4; }
.ks-gross {
  margin: 0;
  font-family: var(--ks-display);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ks-gross small { margin-left: 6px; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
.ks-neu {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 10px;
  background: var(--ks-lemon);
  border: 2px solid var(--ks-ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.ks-neu[hidden] { display: none; }
.ks-zahlen { display: flex; flex-wrap: wrap; margin: 14px 0 0; padding: 0; }
.ks-zahlen div { width: 50%; margin: 0 0 8px; }
.ks-zahlen dt { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ks-zahlen dd { margin: 0; font-family: var(--ks-display); font-size: 22px; font-weight: 900; }
.ks-tipp { margin: 8px 0 16px; padding: 9px 12px; background: #fdeaf6; border-left: 4px solid var(--ks-pink); border-radius: 6px; font-size: 14px; line-height: 1.4; }

.ks-quer {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  background: var(--ks-bg);
  font-family: var(--ks-display);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}
.ks-quer svg { width: 64px; height: 64px; margin-bottom: 12px; }
@media (orientation: landscape) and (max-height: 500px) {
  .ks-quer { display: flex; }
}

.ks-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes ks-puls { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes ks-wackel { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes ks-nein {
  0%, 100% { transform: translateX(-50%) rotate(.8deg); }
  25% { transform: translateX(calc(-50% - 9px)) rotate(-2deg); }
  75% { transform: translateX(calc(-50% + 9px)) rotate(3deg); }
}
@keyframes ks-plus {
  0% { transform: translateX(-50%) rotate(.8deg) scale(1); }
  40% { transform: translateX(-50%) rotate(-2deg) scale(1.12); }
  100% { transform: translateX(-50%) rotate(.8deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ks-zeit.is-knapp b, .ks-meter.is-eng i.is-voll, .ks-stapel.is-nein, .ks-stapel.is-plus { animation: none; }
}
@media (max-width: 350px) {
  .ks-titel { font-size: 26px; }
  .ks-pill { min-width: 66px; padding: 3px 9px 4px; }
  .ks-pill b { font-size: 19px; }
  .ks-lead, .ks-unter { font-size: 15px; }
  .ks-regeln li { font-size: 14px; }
}
