:root { --farbe: #3fd47a; --dunkel: #10241a; --hell: #f6f3e8; --gold: #ffd23f; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--dunkel); color: var(--hell);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; overscroll-behavior: none; }
body { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
[hidden] { display: none !important; }
h1 { font-size: 30px; margin: 0 0 20px; letter-spacing: -.02em; }
h1 span { color: var(--gold); }
.klein { font-size: 13px; opacity: .75; }

#beitritt { padding: 32px 20px; max-width: 420px; margin: 0 auto; text-align: center; }
#form { display: grid; gap: 14px; }
label { display: grid; gap: 4px; text-align: left; font-weight: 600; }
input, select { font: inherit; font-size: 20px; padding: 10px 12px; border-radius: 10px; border: 0; background: #fff; color: var(--dunkel); }
#raum { text-transform: uppercase; letter-spacing: .2em; font-weight: 800; }
button { font: inherit; font-weight: 800; font-size: 20px; border: 0; border-radius: 14px; padding: 14px; background: var(--gold); color: var(--dunkel); }
#pruefung { padding: 32px 20px; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
#pruefText { font-weight: 800; font-size: 20px; margin: 0; min-height: 2.4em; }
.kreis.geschafft { border-color: var(--gold); }
#fehler { color: #ff8a80; font-weight: 700; min-height: 1.2em; }

#pult { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--farbe) 35%, var(--dunkel)), var(--dunkel) 75%);
  touch-action: none; }
#pult header { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
#ich { font-weight: 900; font-size: 22px; color: var(--farbe); }
.kreis { position: relative; width: min(64vw, 42vh); aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.2); flex: none; }
.kreis::before, .kreis::after { content: ''; position: absolute; background: rgba(255,255,255,.15); }
.kreis::before { left: 50%; top: 8%; bottom: 8%; width: 2px; }
.kreis::after { top: 50%; left: 8%; right: 8%; height: 2px; }
.punkt { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--farbe);
  transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
#meldung { min-height: 2.4em; margin: 0; text-align: center; font-weight: 800; font-size: 20px; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.zweit { font-size: 16px; padding: 10px 16px; background: rgba(255,255,255,.15); color: var(--hell); }
#los { background: var(--gold); color: var(--dunkel); }
#sprung { width: 100%; flex: 1; min-height: 90px; max-height: 220px; font-size: 28px; background: var(--farbe); color: var(--dunkel); }
#sprung:active { filter: brightness(1.2); }
/* Power-up-Taste: Symbol des gehaltenen Power-ups, leer ausgegraut */
#power { width: 100%; flex: 0.75; min-height: 80px; max-height: 170px; display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 26px; background: var(--gold); color: var(--dunkel); box-shadow: 0 0 0 4px rgba(255,255,255,.5), 0 6px 18px rgba(0,0,0,.35); }
#power #powerSymbol { font-size: 46px; line-height: 1; }
#power.leer { background: rgba(255,255,255,.1); color: rgba(246,243,232,.4); box-shadow: none; }
#power.leer #powerSymbol { filter: grayscale(1); opacity: .5; }
#power:active { filter: brightness(1.2); }
#empfZeile { display: flex; align-items: center; gap: 8px; }
#empfZeile select { font-size: 14px; padding: 4px 8px; }
#spitze { font-variant-numeric: tabular-nums; min-width: 4em; }

/* Nur im ausdrücklich geöffneten Browser-Testmodus. */
.browser-test #pult .kreis { cursor: grab; touch-action: none; }
.browser-test #pult .kreis:active { cursor: grabbing; }
.browser-test .punkt { pointer-events: none; }
#testhinweis { margin: 0; text-align: center; color: var(--gold); opacity: 1; }
