/* Wortbananen — DOM-basiertes Spiel-UI (kein Canvas).
   Farbwelt Bananario: Banana-Gelb, Dschungelgrün, Himmelblau, Sand.
   Farbenblind-freundlich: Futtersorten & Zustände immer Symbol + Text,
   nie nur Farbe (KONZEPT.md §15.1). */

/* --- Modus-Tabs (Klassik/Vollernte) --- */
.wb-modus-tabs button {
	font: inherit; cursor: pointer;
	text-decoration: none; font-weight: 700; font-size: .92rem;
	background: #fff; color: #234d20;
	padding: .45em 1em; border: none; border-radius: 999px;
	box-shadow: 0 2px 6px #00000022;
	transition: transform .15s ease;
}
.wb-modus-tabs button:hover { transform: translateY(-2px); }

.wb-select {
	font: inherit; font-size: .95rem;
	padding: .5em .8em;
	border: 2px solid #c9a227; border-radius: 12px;
	background: #fffdf4;
}

/* --- Wort-Lichtung (Vollernte-Modus) --- */
.wb-lichtung {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: .6rem 0 .8rem;
	max-width: 640px;
	margin-left: auto; margin-right: auto;
}
.wb-lichtung-reihe {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
	justify-content: center;
}
.wb-lichtung-label {
	font-size: .78rem; font-weight: 700; color: #234d20;
	min-width: 68px; text-align: right;
}
.wb-knospe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1em;
	height: 2.1em;
	padding: 0 .3em;
	border-radius: 50%;
	background: #d8ecc4;
	border: 2px solid #7cb35c;
	font-weight: 800;
	font-size: .95rem;
	color: transparent;
	transition: all .3s ease;
}
.wb-knospe.wb-gefunden {
	background: linear-gradient(160deg, #ffe680, #f2c14e);
	border-color: #a87c14;
	color: #3d2f00;
	border-radius: 45% 45% 50% 50% / 55% 55% 45% 45%;
	animation: wbBluete .5s ease;
}
.wb-knospe.wb-bonus {
	border-color: #c9a227;
	box-shadow: 0 0 0 3px #ffd70055;
}
.wb-knospe.wb-bonus.wb-gefunden {
	background: linear-gradient(160deg, #fff2b0, #ffcf3f);
	box-shadow: 0 0 10px #ffcf3f99;
}
@keyframes wbBluete {
	0% { transform: scale(.6); opacity: .3; }
	60% { transform: scale(1.15); }
	100% { transform: scale(1); opacity: 1; }
}
.wb-lichtung-fertig { text-align: center; font-weight: 700; color: #1b5e20; }

.wb-kranz .wb-banane.wb-wurzel-hinweis {
	outline: 3px solid #66bb6a;
	outline-offset: 2px;
}

.wb-hud {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 1rem;
}
.wb-hud-item {
	background: #fff8e1;
	border: 2px solid #f2c14e;
	border-radius: 14px;
	padding: .35rem .9rem;
	text-align: center;
	min-width: 86px;
}
.wb-hud-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #8a6d1a; }
.wb-hud-value { display: block; font-weight: 700; font-size: 1.15rem; color: #3d2f00; }

.wb-game {
	position: relative;
	background: linear-gradient(180deg, #bfe8ff 0%, #d9f4d0 45%, #f7e8b0 100%);
	border: 3px solid #2e7d32;
	border-radius: 18px;
	padding: 1rem;
	max-width: 860px;
	margin: 0 auto;
	min-height: 480px;
}

/* --- Tierkarten --- */
.wb-tiere {
	display: flex;
	gap: .8rem;
	justify-content: center;
	flex-wrap: wrap;
}
.wb-tier {
	background: #ffffffd9;
	border: 2px solid #2e7d32;
	border-radius: 14px;
	padding: .55rem .7rem;
	width: 220px;
	cursor: default;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.wb-tier .wb-tier-kopf { display: flex; align-items: center; gap: .45rem; }
.wb-tier .wb-tier-icon { font-size: 1.9rem; }
.wb-tier .wb-tier-name { font-weight: 700; font-size: .95rem; line-height: 1.15; }
.wb-tier .wb-tier-vorliebe { font-size: .78rem; color: #444; margin-top: .2rem; }
.wb-tier .wb-balken {
	position: relative;
	height: 18px;
	background: #e8e2cf;
	border-radius: 9px;
	overflow: hidden;
	margin-top: .4rem;
	border: 1px solid #b7ad8d;
}
.wb-tier .wb-balken-fuellung {
	position: absolute; inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient(90deg, #f2a643, #f2c14e);
	transition: width .4s ease;
}
.wb-tier .wb-balken-text {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: .72rem; font-weight: 700; color: #3d2f00;
}
.wb-tier.wb-satt { border-color: #1565c0; }
.wb-tier.wb-satt .wb-balken-fuellung { background: linear-gradient(90deg, #64b5f6, #90caf9); }
.wb-tier .wb-preview {
	display: none;
	margin-top: .35rem;
	font-weight: 700;
	font-size: .88rem;
	text-align: center;
	border-radius: 8px;
	padding: .15rem .3rem;
	background: #fff3c4;
	border: 1px dashed #c79a17;
}
.wb-tier.wb-waehlbar { cursor: pointer; box-shadow: 0 0 0 3px #f2c14e88; }
.wb-tier.wb-waehlbar:hover { transform: translateY(-3px); }
.wb-tier.wb-waehlbar .wb-preview { display: block; }
.wb-tier.wb-gesperrt { opacity: .55; cursor: not-allowed; }
.wb-tier.wb-frisst { animation: wbMampf .5s ease; }
.wb-tier.wb-tier-kritisch { border-color: #c62828; animation: wbKritisch 1s ease-in-out infinite; }
.wb-tier.wb-tier-kritisch .wb-balken-fuellung { background: linear-gradient(90deg, #ef5350, #ff8a80); }
@keyframes wbKritisch {
	0%, 100% { box-shadow: 0 0 0 0 #c6282855; }
	50% { box-shadow: 0 0 0 6px #c6282800; }
}
@keyframes wbMampf {
	0% { transform: scale(1); }
	35% { transform: scale(1.08) rotate(-2deg); }
	70% { transform: scale(1.04) rotate(2deg); }
	100% { transform: scale(1); }
}

/* --- Statuszeile --- */
.wb-status {
	text-align: center;
	min-height: 1.4em;
	margin: .6rem 0 .3rem;
	font-weight: 600;
	color: #234d20;
}

/* --- Futtertrog --- */
.wb-trog-zone { display: flex; gap: .7rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.wb-trog {
	display: flex;
	gap: .3rem;
	min-height: 52px;
	min-width: 220px;
	background: #8d6e63;
	border: 3px solid #5d4037;
	border-radius: 12px;
	padding: .35rem .5rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
.wb-trog.wb-schuettel { animation: wbShake .4s ease; }
@keyframes wbShake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-7px); }
	50% { transform: translateX(6px); }
	75% { transform: translateX(-4px); }
}
.wb-trog-leer { color: #efebe9; font-size: .85rem; }

/* --- Buchstaben-Bananen --- */
.wb-kranz {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: .45rem;
	max-width: 460px;
	margin: 1rem auto 0;
}
.wb-banane {
	font: inherit;
	font-size: 1.35rem;
	font-weight: 800;
	color: #3d2f00;
	background: radial-gradient(circle at 30% 25%, #ffe680, #f2c14e 65%, #d9a520);
	border: 2px solid #a87c14;
	border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
	width: 100%;
	aspect-ratio: 1 / 1.05;
	min-height: 48px;
	cursor: pointer;
	transition: transform .12s;
	touch-action: manipulation;
}
.wb-banane:hover:not(:disabled) { transform: scale(1.1) rotate(-4deg); }
.wb-banane:disabled { visibility: hidden; }
.wb-banane.wb-neu { animation: wbWachsen .45s ease; }
@keyframes wbWachsen {
	from { transform: scale(0); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}
.wb-banane.wb-rb-ziel { outline: 3px dashed #7e57c2; outline-offset: 2px; }
.wb-trog .wb-banane { width: 44px; min-height: 44px; font-size: 1.15rem; }

.wb-aktionen { display: flex; gap: .45rem; }

/* --- Joker-Leiste --- */
.wb-joker {
	display: flex;
	gap: .5rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1rem;
}
.wb-joker-btn {
	font: inherit;
	font-size: .95rem;
	background: #fff8e1;
	border: 2px solid #f2c14e;
	border-radius: 12px;
	padding: .4rem .7rem;
	cursor: pointer;
}
.wb-joker-btn:disabled { opacity: .45; cursor: not-allowed; }

/* --- Overlays --- */
.wb-overlay {
	position: absolute;
	inset: 0;
	background: #1b3a1bb3;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 15px;
	z-index: 5;
	padding: 1rem;
}
.wb-overlay[hidden] { display: none; }
.wb-overlay-card {
	background: #fffdf4;
	border-radius: 16px;
	padding: 1.4rem 1.6rem;
	max-width: 430px;
	text-align: center;
	box-shadow: 0 12px 40px #00000055;
}
.wb-overlay-card h2 { margin-top: 0; }
.wb-picker-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: .35rem;
	margin: .8rem 0 1rem;
}
.wb-picker-grid button {
	font: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	padding: .45rem 0;
	border-radius: 10px;
	border: 2px solid #a87c14;
	background: #ffe680;
	cursor: pointer;
}

/* Punkte-Popup */
.wb-pop {
	position: absolute;
	font-weight: 800;
	color: #1b5e20;
	pointer-events: none;
	animation: wbPop 1.1s ease forwards;
	z-index: 6;
	text-shadow: 0 1px 0 #fff;
}
@keyframes wbPop {
	from { opacity: 1; transform: translateY(0); }
	to   { opacity: 0; transform: translateY(-46px); }
}

/* --- Mobil --- */
@media (max-width: 640px) {
	.wb-tier { width: 100%; max-width: 340px; padding: .4rem .6rem; }
	.wb-tiere { gap: .5rem; }
	.wb-kranz { grid-template-columns: repeat(6, 1fr); gap: .35rem; max-width: 100%; }
	.wb-banane { font-size: 1.15rem; min-height: 44px; }
	.wb-game { padding: .7rem; }
}
