* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #7ec8f0; font-family: "Avenir Next", "Nunito", "Segoe UI", system-ui, sans-serif; color: #24331b; -webkit-user-select: none; user-select: none; touch-action: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

.panel { background: rgba(255, 251, 238, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 18px; box-shadow: 0 6px 24px rgba(30, 60, 20, .22); padding: 12px 16px; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button, #hud canvas { pointer-events: auto; }
#me { position: absolute; top: 14px; left: 14px; min-width: 170px; }
#me .row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
#me .big { font-size: 38px; font-weight: 800; line-height: 1.1; color: #2f5d1e; }
#me .big small { font-size: 14px; font-weight: 600; color: #6a7d5c; }
#me .sub { font-size: 13px; color: #5b6b4d; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 -2px 3px rgba(0,0,0,.25); }

#board { position: absolute; top: 14px; right: 14px; min-width: 190px; max-width: 240px; font-size: 14px; }
#board .title { font-weight: 800; margin-bottom: 6px; color: #3c5a26; }
#board ol { list-style: none; }
#board li { display: flex; align-items: center; gap: 7px; padding: 3px 0; }
#board li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#board li .sc { font-weight: 800; }
#board li.me .nm { font-weight: 800; }
#board li.dead { opacity: .45; }

#feed { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { background: rgba(255, 251, 238, .9); padding: 7px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.15); animation: toast 4s forwards; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-10px) scale(.9); } 8% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }

#minimap { position: absolute; right: 14px; bottom: 14px; width: 176px; height: 176px; border-radius: 18px; box-shadow: 0 6px 24px rgba(30, 60, 20, .3); border: 3px solid rgba(255, 251, 238, .85); }
#buttons { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
#buttons button { width: 46px; height: 46px; border-radius: 14px; border: 0; font-size: 20px; background: rgba(255, 251, 238, .85); box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
#buttons button:active { transform: scale(.93); }
#hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; transition: opacity 1s; }

#deathMsg { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); animation: pop .4s; }
#deathText { font-size: 30px; font-weight: 800; }
#deathCount { font-size: 18px; margin-top: 6px; opacity: .9; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

.touchzone { position: absolute; top: 0; bottom: 0; width: 50%; pointer-events: auto; }
#touchL { left: 0; } #touchR { right: 0; }
#hud > *:not(.touchzone) { z-index: 2; }
#hurtFx { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(200, 0, 0, 0) 50%, rgba(190, 0, 0, .55) 100%); }
.hearts { margin-left: auto; padding-left: 10px; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
#btnSprint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; border: 0; font-size: 34px; background: rgba(255, 251, 238, .85); box-shadow: 0 4px 14px rgba(0,0,0,.25); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#btnSprint.on { background: #ffd23a; box-shadow: 0 0 0 4px rgba(255, 210, 58, .45), 0 4px 14px rgba(0,0,0,.25); }

#lobby { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(ellipse at center, rgba(255,255,255,0) 30%, rgba(20,50,10,.35)); overflow-y: auto; }
#lobby .card { width: min(640px, 100%); background: rgba(255, 251, 238, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 28px; padding: 28px 30px; box-shadow: 0 20px 60px rgba(20, 50, 10, .35); animation: rise .7s cubic-bezier(.2,1.4,.4,1); max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes rise { from { transform: translateY(40px) scale(.95); opacity: 0; } }
h1 { font-size: 46px; font-weight: 900; letter-spacing: -1px; color: #2f6b1e; line-height: 1; }
h1 span { color: #e8892b; }
.tag { margin: 8px 0 18px; color: #556b45; font-size: 15px; }
label, .label { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #6a7d5c; margin-bottom: 6px; }
input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 18px; border-radius: 14px; border: 2px solid #cfdcb9; background: #fff; font-family: inherit; color: #24331b; outline: none; text-transform: none; letter-spacing: 0; font-weight: 600; -webkit-user-select: text; user-select: text; }
input:focus { border-color: #6fbf4a; }
label { margin-bottom: 16px; }
#species { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
#species .sp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; border: 2px solid #dfe6cf; background: rgba(255, 255, 255, .7); cursor: pointer; text-align: left; font-family: inherit; color: #24331b; transition: border-color .15s, background .15s; }
#species .sp:hover { border-color: #b9cc9a; }
#species .sp.sel { border-color: #4a7d2e; background: #fff; box-shadow: 0 3px 10px rgba(40, 80, 20, .15); }
#species canvas { width: 96px; height: 37px; flex: none; }
#species .sp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#species .sp-text b { font-size: 15px; font-weight: 800; }
#species .sp-text small { font-size: 12px; line-height: 1.3; color: #5b6b4d; }
#colors { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
#colors button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 -3px 5px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.15); transition: transform .15s; }
#colors button.sel { border-color: #24331b; transform: scale(1.15); }
.primary { width: 100%; padding: 16px; font-size: 22px; font-weight: 800; border: 0; border-radius: 18px; cursor: pointer; color: #fff; font-family: inherit; background: linear-gradient(180deg, #7fd156, #4a9d2e); box-shadow: 0 6px 0 #357a1f, 0 10px 24px rgba(40, 100, 20, .35); transition: transform .1s; }
.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #357a1f; }
#online { text-align: center; margin: 12px 0 18px; font-size: 14px; color: #556b45; min-height: 18px; }
.cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; }
#hsList { list-style: none; font-size: 14px; }
#hsList li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
#hsList li .nm { flex: 1; } #hsList li b { font-weight: 800; }
.muted { color: #8a9a7d; }
.help p { font-size: 13px; line-height: 1.45; color: #4b5d3e; margin-bottom: 6px; }
#conn { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #fff8e0; padding: 10px 18px; border-radius: 99px; box-shadow: 0 4px 14px rgba(0,0,0,.2); font-weight: 600; }

@media (max-width: 640px) {
  h1 { font-size: 36px; }
  .cols { grid-template-columns: 1fr; }
  #species { grid-template-columns: 1fr; }
  #lobby .card { padding: 22px 18px; }
  #board { min-width: 0; font-size: 12px; padding: 8px 10px; }
  #me { min-width: 0; padding: 8px 12px; }
  #me .big { font-size: 28px; }
  #minimap { width: 110px; height: 110px; bottom: 74px; }
  #hint { display: none; }
}

/* ---------- Radar, große Karte, Namensschilder (radar.js) ---------- */
#minimap { cursor: pointer; }
#markers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#hud > #markers { z-index: 1; }
.pm { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 99px; background: rgba(18, 26, 16, .66); color: #fff; font: 600 12px/1.25 system-ui, -apple-system, sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); will-change: transform; }
.pm::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: rgba(18, 26, 16, .66); }
.pm.off::after { display: none; }
.pm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 0 2px rgba(255,255,255,.85); flex: none; }
.pm-dist { opacity: .8; font-weight: 500; }
.pm-dist:empty { display: none; }
.pm.bot { opacity: .72; font-size: 11px; padding: 2px 7px 2px 5px; }
.pm.bot .pm-dot { width: 7px; height: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.pm.me { background: rgba(255, 255, 255, .88); color: #1b2a12; }
.pm.me::after { border-top-color: rgba(255, 255, 255, .88); }
.pa { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.pa::before { content: ""; position: absolute; left: -16px; top: -9px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent var(--c, #fff); filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); }
#bigmap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(10, 20, 8, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 5 !important; cursor: pointer; }
#bigmapCanvas { width: min(86vmin, 768px); height: min(86vmin, 768px); border-radius: 20px; border: 3px solid rgba(255, 251, 238, .9); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.bm-hint { color: #fff; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
@media (max-width: 640px) { .pm { font-size: 11px; padding: 2px 7px 2px 5px; } }

/* ---------- Kirschkerne ---------- */
#btnSpit { position: absolute; left: calc(50% + 52px); bottom: 26px; width: 60px; height: 60px; border-radius: 50%; border: 0; font-size: 28px; background: rgba(255, 251, 238, .85); box-shadow: 0 4px 14px rgba(0,0,0,.25); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#btnSpit:active { transform: scale(.92); }
#crosshair { position: fixed; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; z-index: 3; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.25); }
#crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: #fff; }

/* ---------- Einstieg ins Abenteuer (Lobby) ---------- */
#advLink { display: block; margin: 10px 0 2px; padding: 12px 16px; border-radius: 16px; text-align: center; text-decoration: none; font-weight: 800; color: #6b4a2a; background: linear-gradient(135deg, #fff1c8, #ffe0b0); box-shadow: 0 4px 14px rgba(140, 90, 30, .22); }
#advLink small { display: block; font-weight: 600; font-size: 12px; color: #8a6a4a; margin-top: 2px; }
#advLink:hover { filter: brightness(1.04); }

/* Ladebildschirm (js/loadscreen.js): deckt die Szene ab, bis Welt, Dateien und Shader fertig sind */
#loadScreen { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 38%, #3f6e28 0%, #1e3c13 55%, #0b1806 100%); color: #f4ecd6; transition: opacity .7s ease; touch-action: none; }
#loadScreen::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 82%, rgba(232, 198, 74, .12), transparent 42%), radial-gradient(circle at 84% 16%, rgba(126, 200, 240, .10), transparent 45%); }
#loadScreen.ls-done { opacity: 0; pointer-events: none; }
.ls-card { position: relative; width: min(470px, 100%); text-align: center; }
.ls-card h1 { font-size: clamp(38px, 9vw, 56px); font-weight: 800; letter-spacing: -.5px; line-height: 1.05; color: #f4ecd6; text-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.ls-card h1 span { color: #f0a050; }
.ls-sub { margin-top: 4px; font-weight: 700; color: #b9cfa3; }
.ls-snake { display: flex; justify-content: center; align-items: center; gap: 2px; height: 58px; margin-bottom: 8px; }
.ls-snake i { --s: calc(8px + var(--k) * .7px); width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: #6d7650;
  box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .35); animation: lsWave 1.15s ease-in-out infinite; animation-delay: calc(var(--k) * -.085s); }
.ls-snake i.collar { background: #f0d24a; }
.ls-snake i.head { --s: 21px; position: relative; border-radius: 50% 60% 60% 50%; background: #5f6844; }
.ls-snake i.head::before, .ls-snake i.head::after { content: ""; position: absolute; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: #11140c; }
.ls-snake i.head::before { top: 4px; } .ls-snake i.head::after { bottom: 4px; }
@keyframes lsWave { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }
.ls-bar { margin: 24px auto 10px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.ls-fill { height: 100%; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, #5aa83a, #9fd14f 60%, #e8c64a); }
.ls-status { font-size: 14px; font-weight: 600; color: #dfe9d2; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.ls-tip { margin: 28px auto 0; max-width: 400px; font-size: 14px; line-height: 1.45; color: #b9cfa3; min-height: 3em; transition: opacity .35s; }
#loadScreen.ls-error .ls-snake i { animation-play-state: paused; }
#loadScreen.ls-error .ls-status { color: #ffc0a8; }
@media (prefers-reduced-motion: reduce) { .ls-snake i { animation: none; } }

/* Schlangen-Porträt (js/portrait.js): durchsichtiger Rahmen unter der Punkteanzeige, das Bild zeichnet WebGL dahinter */
.portrait { position: absolute; left: 0; top: calc(100% + 8px); width: 210px; height: 118px; border-radius: 16px; pointer-events: none;
  border: 3px solid rgba(255, 251, 238, .85); box-shadow: 0 6px 24px rgba(30, 60, 20, .3), inset 0 0 18px rgba(0, 0, 0, .35); }
.portrait span { position: absolute; left: 10px; bottom: 6px; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
@media (max-width: 699px) { .portrait { display: none !important; } }

/* Willkommensbildschirm: Karte links, der Garten bleibt rechts sichtbar; zwei Spielarten als große Kacheln */
#lobby { justify-content: flex-start; align-items: stretch; padding: 0; background: linear-gradient(90deg, rgba(14, 34, 8, .55) 0%, rgba(14, 34, 8, .18) 46%, rgba(14, 34, 8, 0) 70%); }
#lobby .card { width: min(560px, 100%); max-height: none; height: 100%; border-radius: 0 34px 34px 0; padding: 34px 34px 26px; display: flex; flex-direction: column; gap: 16px; background: rgba(255, 252, 242, .93); animation: lobbyIn .6s cubic-bezier(.2, 1, .3, 1); }
@keyframes lobbyIn { from { transform: translateX(-40px); opacity: 0; } }
.hero h1 { font-size: clamp(40px, 6vw, 58px); line-height: 1; letter-spacing: -1px; }
.hero .tag { margin: 10px 0 0; font-size: 16px; line-height: 1.45; }
.modes { display: grid; gap: 10px; }
.mode { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: #24331b; }
#advLink.mode { margin: 0; text-align: left; font-weight: 400; background: linear-gradient(135deg, #fff1c8, #ffd9a0); box-shadow: 0 6px 18px rgba(140, 90, 30, .25); transition: transform .15s, box-shadow .15s; }
#advLink.mode:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(140, 90, 30, .32); filter: none; }
.mode-multi { background: rgba(90, 168, 58, .14); box-shadow: inset 0 0 0 2px rgba(74, 125, 46, .25); border-radius: 20px 20px 0 0; margin-bottom: -16px; padding-bottom: 20px; }
.mode-art { flex: none; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .08); }
.mode-text { flex: 1; min-width: 0; }
.mode-text b { display: block; font-size: 19px; font-weight: 800; }
.mode-text small, #advLink.mode small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; font-weight: 500; color: #5b5a40; }
.mode-go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; background: #e07a2a; box-shadow: 0 4px 10px rgba(160, 80, 20, .35); }
.setup { padding: 16px; border-radius: 0 0 20px 20px; background: rgba(90, 168, 58, .14); box-shadow: inset 0 0 0 2px rgba(74, 125, 46, .25); border-top: 0; clip-path: inset(0 -4px -4px -4px); }
.setup #species { margin-bottom: 12px; } .setup #colors { margin-bottom: 14px; }
.fold { border-radius: 16px; background: rgba(0, 0, 0, .04); padding: 10px 14px; }
.fold summary { cursor: pointer; font-weight: 800; font-size: 14px; color: #3c5a26; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "▾"; color: #8a9a7c; transition: transform .2s; }
.fold[open] summary::after { transform: rotate(180deg); }
.fold[open] summary { margin-bottom: 8px; }
.fold.help p { font-size: 13px; line-height: 1.45; color: #4b5d3e; margin-bottom: 6px; }
@media (max-width: 720px) { #lobby { background: rgba(14, 34, 8, .3); } #lobby .card { border-radius: 0; padding: 22px 16px; } }
.setup #online { margin: 10px 0 0; }
#advLink.mode { display: flex; }
.setup #species .sp { min-width: 0; padding: 8px; gap: 8px; }
.setup #species canvas { width: 72px; height: 28px; }

/* Startbildschirm wie beim Abenteuer: großer Titel unten links über dem Garten, darunter die Auswahl „Geschichte“ oder
   „Wettkriechen“. Erst fürs Wettkriechen erscheinen die Einstellungen (Karte links). */
#lobby.choose { justify-content: flex-start; align-items: flex-end; background: linear-gradient(20deg, rgba(8, 22, 4, .85) 0%, rgba(8, 22, 4, .5) 40%, rgba(8, 22, 4, 0) 70%); }
#lobby.choose .card { display: none; }
#lobby:not(.choose) #chooser { display: none; }
#chooser { width: min(900px, 100%); padding: clamp(20px, 5vw, 64px); color: #f4ecd6; animation: lobbyIn .7s cubic-bezier(.2, 1, .3, 1); }
#chooser .eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #f6d38a; margin-bottom: 6px; }
#chooser h1 { font-size: clamp(48px, 8vw, 96px); line-height: .95; color: #fffbe8; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
#chooser h1 span { color: #f0a050; }
#chooser .tag { margin: 18px 0 24px; max-width: 36em; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; color: #e9e3cc; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "art name" "art kind" "text text" "go go"; column-gap: 14px; align-items: center; text-align: left; padding: 20px; border: 0; border-radius: 26px; cursor: pointer; text-decoration: none; font-family: inherit; color: #24331b;
  background: rgba(255, 252, 242, .95); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), box-shadow .18s; }
.choice:hover, .choice:focus-visible { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(0, 0, 0, .45); outline: none; }
.choice-art { grid-area: art; width: 72px; height: 72px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.choice-story .choice-art { background: linear-gradient(135deg, #fff1c8, #ffd08a); }
.choice-multi .choice-art { background: linear-gradient(135deg, #d9f2c4, #9fd97a); }
.choice b { grid-area: name; align-self: end; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.5px; line-height: 1; color: #2f5d1e; }
.choice em { grid-area: kind; align-self: start; font-style: normal; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #e07a2a; margin-top: 4px; }
.choice small { grid-area: text; font-size: 15px; line-height: 1.45; color: #4b5d3e; margin: 12px 0 14px; min-height: 4.4em; }
.choice-go { grid-area: go; justify-self: start; padding: 13px 22px; border-radius: 16px; font-size: 18px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #7fd156, #4a9d2e); box-shadow: 0 5px 0 #357a1f; }
.choice-story .choice-go { background: linear-gradient(180deg, #f6a04a, #e07a2a); box-shadow: 0 5px 0 #b05a12; }
#backToStart { align-self: flex-start; border: 0; background: none; padding: 0; font: 700 14px inherit; font-family: inherit; color: #6a7d5c; cursor: pointer; }
#backToStart:hover { color: #2f5d1e; }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; gap: 12px; } .choice { padding: 16px; border-radius: 22px; } .choice small { min-height: 0; } #lobby.choose { overflow-y: auto; } }

/* Tasten-Hilfe (js/keyhelp.js): gezeichnete Tastatur mit farbig markierten Spieltasten und Erklärungen */
.kb { display: inline-flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 14px; background: #2c3327; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.kb-row { display: flex; gap: 3px; }
.kb-key { width: var(--k, 22px); height: var(--k, 22px); border-radius: calc(var(--k, 22px) * .22); background: #4a5244; color: #cfd6c6; font: 700 calc(var(--k, 22px) * .5)/var(--k, 22px) system-ui, sans-serif; text-align: center; font-style: normal; flex: none; }
.kb-wide { width: calc(var(--k, 22px) * 1.55); } .kb-space { width: calc(var(--k, 22px) * 5 + 12px); } .kb-gap { visibility: hidden; }
.kb-go { background: #7fd156; color: #17300c; } .kb-fast { background: #f6c64a; color: #3a2a04; } .kb-talk { background: #6fc3f0; color: #06283a; } .kb-info { background: #f0a050; color: #3a1c04; } .kb-sound { background: #d9b8f0; color: #2c1440; }
.kb-key.kb-go, .kb-key.kb-fast, .kb-key.kb-talk, .kb-key.kb-info, .kb-key.kb-sound { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.kb-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; text-align: left; }
.kb-list li { display: flex; gap: 10px; align-items: flex-start; }
.kb-cap { flex: none; min-width: 46px; padding: 6px 8px; border-radius: 9px; font: 800 14px/1.1 system-ui, sans-serif; text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.kb-list b { display: block; font-size: 14px; } .kb-list small { display: block; font-size: 13px; line-height: 1.35; opacity: .85; }
