/* Burgwacht – Oberfläche. Querformat zuerst, sichere Bereiche, Touch-Ziele ≥ 44 px. */

@font-face {
	font-family: "BW Bitter";
	src: url("fonts/Bitter-Variable.woff") format("woff");
	font-weight: 100 900;
	font-display: swap;
}

.bw-root {
	--bw-bg: #1d2433;
	--bw-panel: rgba(24, 30, 44, 0.84);
	--bw-line: rgba(224, 180, 64, 0.35);
	--bw-gold: #e0b440;
	--bw-text: #fbf4e2;
	--bw-muted: #c9c2b0;
	--bw-red: #d9534f;
	--bw-fs: 15px;
	--bw-tap: 48px;
	--sat: env(safe-area-inset-top, 0px);
	--sar: env(safe-area-inset-right, 0px);
	--sab: env(safe-area-inset-bottom, 0px);
	--sal: env(safe-area-inset-left, 0px);
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 100vh;
	min-height: 320px;
	background: var(--bw-bg);
	overflow: hidden;
	font-family: "BW Bitter", Georgia, "Times New Roman", serif;
	font-size: var(--bw-fs);
	line-height: 1.3;
	color: var(--bw-text);
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: none;
	overscroll-behavior: none;
	contain: layout paint;
}
.bw-root *, .bw-root *::before, .bw-root *::after { box-sizing: border-box; }
.bw-root.bw-bigtext { --bw-fs: 18px; --bw-tap: 54px; }

html:has(.bw-body), .bw-body {
	margin: 0; height: 100%; overflow: hidden; background: #1d2433; overscroll-behavior: none;
}
.bw-body { position: fixed; inset: 0; }
.bw-root.bw-standalone,
.bw-root:fullscreen,
.bw-root.bw-fs {
	position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
	max-height: none; aspect-ratio: auto; z-index: 99999;
}
.bw-root:-webkit-full-screen { position: fixed; inset: 0; width: 100%; height: 100%; max-height: none; }

.bw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }

/* ---------- HUD ---------- */
.bw-hud { position: absolute; inset: 0; pointer-events: none; }
.bw-hud > * { pointer-events: auto; position: absolute; }
.bw-panel {
	background: var(--bw-panel);
	border: 1.5px solid var(--bw-line);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.bw-btn {
	appearance: none; -webkit-appearance: none;
	min-width: var(--bw-tap); min-height: var(--bw-tap);
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 0 12px; margin: 0;
	font: inherit; font-weight: 650; color: var(--bw-text);
	background: var(--bw-panel); border: 1.5px solid var(--bw-line); border-radius: 12px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer; touch-action: manipulation;
	transition: transform 0.08s, background 0.15s;
}
.bw-btn:active { transform: scale(0.94); }
.bw-btn:focus-visible { outline: 2px solid var(--bw-gold); outline-offset: 2px; }
.bw-btn svg { width: 24px; height: 24px; flex: none; }
.bw-btn.bw-primary { background: linear-gradient(#3f7d4e, #2c6e49); border-color: #8fd19e66; }
.bw-btn.bw-on { background: #6b4f1d; border-color: var(--bw-gold); }
.bw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bw-stats {
	top: calc(8px + var(--sat)); left: calc(8px + var(--sal));
	display: flex; gap: 4px; padding: 4px 6px;
}
.bw-stat { display: flex; align-items: center; gap: 5px; padding: 4px 8px; min-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bw-stat svg { width: 22px; height: 22px; image-rendering: pixelated; }
.bw-stat small { font-weight: 500; color: var(--bw-muted); font-size: 0.8em; }

.bw-tools {
	bottom: calc(8px + var(--sab)); left: calc(8px + var(--sal));
	display: flex; gap: 6px;
}

.bw-controls {
	bottom: calc(8px + var(--sab)); right: calc(8px + var(--sar));
	display: flex; gap: 6px;
}
.bw-controls .bw-speed { min-width: 58px; font-variant-numeric: tabular-nums; }

/* Turmleiste rechts, einklappbar */
.bw-towerbar {
	top: calc(8px + var(--sat)); right: calc(8px + var(--sar));
	bottom: calc(var(--bw-tap) + 18px + var(--sab));
	width: 96px;
	display: flex; flex-direction: column; gap: 5px; padding: 5px;
	overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
	transition: transform 0.22s ease, opacity 0.22s;
	touch-action: pan-y;
}
.bw-towerbar::-webkit-scrollbar { display: none; }
.bw-towerbar.bw-collapsed { transform: translateX(calc(100% + 16px + var(--sar))); opacity: 0; pointer-events: none; }
.bw-bartoggle {
	top: calc(8px + var(--sat)); right: calc(112px + var(--sar));
	min-width: 40px !important; padding: 0 !important;
}
.bw-towerbar.bw-collapsed + .bw-bartoggle,
.bw-root .bw-bartoggle.bw-moved { right: calc(8px + var(--sar)); }
.bw-tile {
	position: relative; flex: none;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 64px; padding: 4px 2px 3px; gap: 1px;
	font: inherit; color: var(--bw-text);
	background: rgba(255, 255, 255, 0.05); border: 1.5px solid transparent; border-radius: 10px;
	cursor: pointer; touch-action: pan-y;
}
.bw-tile:active { transform: scale(0.95); }
.bw-tile.bw-sel { border-color: var(--bw-gold); background: rgba(224, 180, 64, 0.16); }
.bw-tile svg { width: 34px; height: 34px; image-rendering: pixelated; }
.bw-tile .bw-name { font-size: 0.72em; font-weight: 600; line-height: 1.1; text-align: center; }
.bw-tile .bw-price { font-size: 0.8em; font-weight: 750; color: var(--bw-gold); display: flex; align-items: center; gap: 2px; }
.bw-tile .bw-price svg { width: 12px; height: 12px; }
.bw-tile .bw-key { position: absolute; top: 2px; left: 5px; font-size: 0.65em; color: var(--bw-muted); }
.bw-tile.bw-locked { opacity: 0.55; }
.bw-tile.bw-locked .bw-lock { position: absolute; top: 3px; right: 4px; width: 14px; height: 14px; }

/* Linkshänder: alles gespiegelt */
.bw-lefty .bw-stats { left: auto; right: calc(8px + var(--sar)); }
.bw-lefty .bw-towerbar { right: auto; left: calc(8px + var(--sal)); }
.bw-lefty .bw-towerbar.bw-collapsed { transform: translateX(calc(-100% - 16px - var(--sal))); }
.bw-lefty .bw-bartoggle { right: auto; left: calc(112px + var(--sal)); }
.bw-lefty .bw-towerbar.bw-collapsed + .bw-bartoggle { left: calc(8px + var(--sal)); }
.bw-lefty .bw-controls { right: auto; left: calc(8px + var(--sal)); }
.bw-lefty .bw-tools { left: auto; right: calc(8px + var(--sar)); }
.bw-lefty .bw-stats { top: calc(8px + var(--sat)); }
.bw-lefty .bw-stats, .bw-lefty .bw-bartoggle { }
.bw-root:not(.bw-lefty) .bw-stats { max-width: calc(100% - 180px); }

/* Info-Karte (langes Drücken) */
.bw-info {
	right: calc(118px + var(--sar)); top: calc(8px + var(--sat));
	width: min(300px, 46vw); padding: 10px 12px; font-size: 0.9em;
}
.bw-lefty .bw-info { right: auto; left: calc(118px + var(--sal)); }
.bw-info h3 { margin: 0 0 4px; font-size: 1.1em; display: flex; align-items: center; gap: 8px; }
.bw-info h3 svg { width: 28px; height: 28px; image-rendering: pixelated; }
.bw-info p { margin: 4px 0; }
.bw-info .bw-good { color: #9fe0a8; }
.bw-info .bw-bad { color: #f2a59f; }
.bw-hidden { display: none !important; }

/* Hinweis-Toast */
.bw-toast {
	left: 50%; top: calc(10px + var(--sat)); transform: translateX(-50%);
	max-width: min(440px, 60%); padding: 8px 14px; text-align: center; font-size: 0.92em;
	pointer-events: none !important; transition: opacity 0.25s;
}

/* Modale Fenster */
.bw-modal {
	position: absolute; inset: 0; z-index: 5;
	display: flex; align-items: center; justify-content: center;
	background: rgba(10, 13, 20, 0.55);
	padding: calc(8px + var(--sat)) calc(8px + var(--sar)) calc(8px + var(--sab)) calc(8px + var(--sal));
}
.bw-dialog { width: min(480px, 100%); max-height: 100%; overflow-y: auto; padding: 14px 16px; touch-action: pan-y; }
.bw-dialog h2 { margin: 0 0 10px; font-size: 1.25em; display: flex; justify-content: space-between; align-items: center; }
.bw-dialog p { margin: 6px 0; color: var(--bw-muted); }
.bw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bw-tap); border-bottom: 1px solid rgba(255,255,255,0.07); }
.bw-row label { flex: 1; }
.bw-seg { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bw-seg .bw-btn { min-height: 40px; padding: 0 10px; font-size: 0.88em; box-shadow: none; }
.bw-switch { width: 52px; height: 30px; appearance: none; -webkit-appearance: none; background: #4a4e57; border-radius: 15px; position: relative; cursor: pointer; flex: none; margin: 0; }
.bw-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.bw-switch:checked { background: #2c6e49; }
.bw-switch:checked::after { left: 25px; }
.bw-range { width: 150px; accent-color: var(--bw-gold); }

/* Pause */
.bw-pausecard { text-align: center; }
.bw-pausecard h2 { justify-content: center; font-size: 1.6em; }

/* Ladebildschirm und Fehler */
.bw-loader {
	position: absolute; inset: 0; z-index: 6;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: radial-gradient(ellipse at 50% 40%, #2a3550, #151a26);
	transition: opacity 0.4s;
}
.bw-loader h1 { margin: 0; font-size: 2.2em; font-weight: 800; letter-spacing: 0.04em; color: var(--bw-gold); text-shadow: 0 3px 0 #6b4f1d; }
.bw-loader .bw-bar { width: min(320px, 60%); height: 10px; border-radius: 5px; background: rgba(255,255,255,0.12); overflow: hidden; }
.bw-loader .bw-bar i { display: block; height: 100%; width: 0; background: var(--bw-gold); transition: width 0.2s; }
.bw-loader p { margin: 0; color: var(--bw-muted); }
.bw-error { text-align: center; max-width: 520px; padding: 18px 20px; }
.bw-error h2 { color: var(--bw-gold); margin: 0 0 8px; }

/* Hochformat-Hinweis */
.bw-rotate {
	position: absolute; inset: 0; z-index: 8;
	display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	padding: 24px; text-align: center; background: #151a26;
}
.bw-portrait .bw-rotate { display: flex; }
.bw-rotate h2 { margin: 0; color: var(--bw-gold); }
.bw-rotate p { margin: 0; max-width: 300px; color: var(--bw-muted); }
.bw-phone { width: 46px; height: 80px; border: 4px solid var(--bw-text); border-radius: 10px; position: relative; animation: bw-turn 2.4s ease-in-out infinite; }
.bw-phone::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 10px; height: 3px; margin-left: -5px; border-radius: 2px; background: var(--bw-text); }
@keyframes bw-turn { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .bw-phone { animation: none; transform: rotate(-90deg); } }

/* Debug-Anzeige */
.bw-debug { left: 50%; bottom: calc(8px + var(--sab)); transform: translateX(-50%); padding: 3px 8px; font: 11px/1.3 ui-monospace, monospace; pointer-events: none !important; white-space: pre; }

.bw-noscript { padding: 20px; color: #fff; }

/* Kleine Höhen (iPhone SE quer: 375 px) */
@media (max-height: 400px) {
	.bw-root { --bw-tap: 44px; --bw-fs: 14px; }
	.bw-root.bw-bigtext { --bw-fs: 16px; --bw-tap: 48px; }
	.bw-tile { min-height: 0; padding: 3px 2px 2px; gap: 0; }
	.bw-tile svg { width: 24px; height: 24px; }
	.bw-tile .bw-name { font-size: 0.68em; }
	.bw-towerbar { gap: 4px; padding: 4px; }
	.bw-towerbar { width: 88px; }
	.bw-bartoggle { right: calc(104px + var(--sar)); }
	.bw-lefty .bw-bartoggle { left: calc(104px + var(--sal)); }
	.bw-stat { min-height: 32px; padding: 2px 6px; }
}

/* ---------- 0.2: Wellenvorschau, Bauen, Turmkarte ---------- */
.bw-next {
	top: calc(62px + var(--sat)); left: calc(8px + var(--sal));
	display: flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: 0.8em;
	pointer-events: none !important;
}
.bw-lefty .bw-next { left: auto; right: calc(8px + var(--sar)); }
.bw-nextlabel { color: var(--bw-muted); }
.bw-nexti { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.bw-nexti svg { width: 18px; height: 18px; }

.bw-tile.bw-poor .bw-price { color: var(--bw-red); }
.bw-tile.bw-soon { opacity: 0.6; }
.bw-btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.bw-anchor { left: 0; top: 0; will-change: transform; z-index: 2; }
.bw-confirm { display: flex; gap: 8px; }
.bw-confirm .bw-btn { min-width: 52px; min-height: 52px; border-radius: 50%; padding: 0; }
.bw-confirm .bw-btn svg { width: 28px; height: 28px; }

.bw-card { width: 236px; padding: 8px 10px 10px; font-size: 0.86em; }
.bw-cardhead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bw-cardhead svg { width: 30px; height: 30px; flex: none; }
.bw-cardhead > div { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.bw-cardhead small { color: var(--bw-muted); }
.bw-card .bw-x { min-width: 36px; min-height: 36px; padding: 0; box-shadow: none; }
.bw-card .bw-x svg { width: 18px; height: 18px; }
.bw-stats-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bw-stats-t th { text-align: left; font-weight: 500; color: var(--bw-muted); padding: 1px 0; }
.bw-stats-t td { text-align: right; font-weight: 700; padding: 1px 0 1px 4px; white-space: nowrap; }
.bw-stats-t .bw-arrow { color: var(--bw-muted); font-weight: 400; }
.bw-stats-t .bw-up { color: #9fe0a8; }
.bw-cardbtns { display: flex; gap: 6px; margin-top: 8px; }
.bw-cardbtns .bw-btn { flex: 1; min-height: 44px; padding: 0 6px; font-size: 0.95em; box-shadow: none; }
.bw-cardbtns .bw-price { display: inline-flex; align-items: center; gap: 2px; color: var(--bw-gold); }
.bw-cardbtns .bw-price svg { width: 12px; height: 12px; }
.bw-sell.bw-armed { background: #7a2a26; border-color: var(--bw-red); }
.bw-max { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--bw-gold); font-weight: 700; }
.bw-note { margin: 6px 0 0; color: var(--bw-muted); font-size: 0.9em; }

.bw-shake { animation: bw-shake 0.4s; }
@keyframes bw-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); background: rgba(217, 83, 79, 0.4); } 75% { transform: translateX(4px); } }
.bw-stars { font-size: 2.4em; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.18); }
.bw-stars .bw-star-on { color: var(--bw-gold); text-shadow: 0 2px 0 #6b4f1d; }

@media (max-height: 400px) {
	.bw-next { top: calc(52px + var(--sat)); }
	.bw-card { width: 214px; }
}

/* ---------- 0.3: Zielwahl, Spezialisierungen, Rückgängig ---------- */
.bw-card { max-height: calc(100% - 16px); overflow-y: auto; touch-action: pan-y; }
.bw-card.bw-wide { width: 300px; }
.bw-fx { margin: 4px 0 0; color: #f3d98a; font-size: 0.88em; line-height: 1.25; }
.bw-fx:empty { display: none; }
.bw-target { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.bw-target > span { color: var(--bw-muted); flex: none; margin-right: 2px; }
.bw-target b { flex: 1; text-align: center; font-size: 0.98em; }
.bw-target .bw-btn { min-width: 40px; min-height: 40px; padding: 0; box-shadow: none; }
.bw-target .bw-btn svg { width: 20px; height: 20px; }
.bw-modehelp { margin: 2px 0 0; text-align: center; color: var(--bw-muted); font-size: 0.82em; }
.bw-specs { display: flex; gap: 6px; margin-top: 4px; }
.bw-spec { flex: 1; flex-direction: column; align-items: stretch; text-align: left; padding: 6px 7px !important; gap: 2px !important; box-shadow: none !important; min-height: 0 !important; }
.bw-spec b { font-size: 0.92em; line-height: 1.15; }
.bw-spec small { font-weight: 450; font-size: 0.78em; line-height: 1.2; color: var(--bw-muted); }
.bw-spec .bw-price { display: inline-flex; align-items: center; gap: 2px; color: var(--bw-gold); font-size: 0.9em; }
.bw-spec .bw-price svg { width: 12px; height: 12px; }
.bw-undo { min-height: 44px; padding: 0 12px; font-size: 0.9em; background: #6b4f1d; border-color: var(--bw-gold); }
.bw-undo svg { width: 20px; height: 20px; }
@media (max-height: 400px) {
	.bw-card.bw-wide { width: 290px; }
	.bw-stats-t th, .bw-stats-t td { padding: 0; }
	.bw-modehelp { display: none; }
}

/* ---------- 0.4: Modell-Icons, Lexikon, Freies Spiel ---------- */
.bw-mi { display: block; width: 34px; height: 34px; object-fit: contain; -webkit-user-drag: none; pointer-events: none; }
.bw-tile .bw-mi { width: 38px; height: 38px; margin: -3px 0 -2px; }
.bw-info h3 .bw-mi, .bw-cardhead .bw-mi { width: 34px; height: 34px; flex: none; }
.bw-nexti .bw-mi { width: 22px; height: 22px; }
.bw-freebadge { background: var(--bw-gold); color: #2a1d05; font-weight: 800; border-radius: 6px; padding: 0 6px; font-size: 0.85em; }
.bw-endbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

.bw-newfoe {
	left: 50%; top: calc(56px + var(--sat)); transform: translateX(-50%);
	display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 8px; z-index: 3;
	border-color: var(--bw-gold); animation: bw-pop 0.3s ease-out;
}
.bw-newfoe .bw-mi { width: 34px; height: 34px; }
.bw-newfoe span { font-weight: 700; }
.bw-newfoe .bw-btn { min-height: 40px; box-shadow: none; }
@keyframes bw-pop { from { transform: translateX(-50%) scale(0.8); opacity: 0; } }

.bw-dialog.bw-wide { width: min(680px, 100%); }
.bw-lex { display: flex; gap: 10px; min-height: 0; }
.bw-lexlist { flex: none; width: 168px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 72vh; touch-action: pan-y; }
.bw-lexitem {
	display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 2px 6px;
	font: inherit; font-size: 0.88em; color: var(--bw-text); text-align: left;
	background: rgba(255,255,255,0.05); border: 1.5px solid transparent; border-radius: 9px; cursor: pointer;
}
.bw-lexitem .bw-mi { width: 34px; height: 34px; }
.bw-lexitem.bw-sel { border-color: var(--bw-gold); background: rgba(224, 180, 64, 0.15); }
.bw-lexitem.bw-unseen { opacity: 0.45; cursor: default; }
.bw-q { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2em; background: rgba(0,0,0,0.3); border-radius: 6px; }
.bw-lexmain { flex: 1; min-width: 0; display: flex; gap: 10px; }
.bw-lexcv { width: 240px; height: 200px; flex: none; background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.08), transparent 70%); border-radius: 10px; touch-action: none; cursor: grab; }
.bw-lexinfo { flex: 1; min-width: 0; font-size: 0.9em; }
.bw-lexinfo h3 { margin: 0 0 4px; color: var(--bw-gold); }
.bw-lexinfo p { margin: 4px 0; }
.bw-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--bw-text) !important; }
.bw-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,0.1); font-size: 0.85em; }
.bw-chip.bw-res { background: rgba(120, 160, 230, 0.25); }
.bw-chip.bw-weak { background: rgba(230, 110, 90, 0.28); }
.bw-chip.bw-trait { background: rgba(224, 180, 64, 0.22); }
.bw-dmg { width: 14px; height: 14px; }
@media (max-width: 760px), (max-height: 420px) {
	.bw-lexmain { flex-direction: column; }
	.bw-lexcv { width: 200px; height: 150px; align-self: center; }
	.bw-lexlist { width: 130px; }
	.bw-lexitem span { font-size: 0.85em; }
}

/* ---------- 0.5: Königreichskarte, Schmiede, Menü ---------- */
.bw-scene-map .bw-hud > * { display: none !important; }
.bw-scene-map .bw-hud > .bw-toast { display: block !important; }
.bw-kingdom { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bw-kingdom > * { pointer-events: auto; }
.bw-ktop {
	position: absolute; top: calc(8px + var(--sat)); left: calc(8px + var(--sal)); right: calc(8px + var(--sar));
	display: flex; align-items: center; gap: 8px; padding: 5px 8px;
}
.bw-ktitle { flex: 1; font-size: 1.05em; color: var(--bw-gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-kstars { font-weight: 800; font-size: 1.1em; white-space: nowrap; }
.bw-star-on { color: var(--bw-gold); }
.bw-ktop .bw-btn { box-shadow: none; }
.bw-pins { position: absolute; inset: 0; pointer-events: none; }
.bw-pin {
	position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 44px; min-height: 44px; padding: 4px 9px 3px;
	font: inherit; font-weight: 700; font-size: 0.86em; color: var(--bw-text);
	background: var(--bw-panel); border: 1.5px solid var(--bw-gold); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
	will-change: transform;
}
.bw-pin::after { content: ""; position: absolute; bottom: -7px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--bw-gold); border-bottom: 0; }
.bw-pin.bw-pinlocked { border-color: rgba(255,255,255,0.25); opacity: 0.75; }
.bw-pin.bw-pinlocked::after { border-top-color: rgba(255,255,255,0.25); }
.bw-pinname { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.bw-pinname svg { width: 14px; height: 14px; }
.bw-pinstars i, .bw-stars-s i { font-style: normal; color: rgba(255,255,255,0.22); letter-spacing: 1px; }
.bw-pinstars i.bw-star-on, .bw-stars-s i.bw-star-on { color: var(--bw-gold); }
.bw-crown { color: var(--bw-gold); margin-left: 3px; }
.bw-kpanel {
	position: absolute; right: calc(8px + var(--sar)); top: calc(62px + var(--sat)); bottom: calc(8px + var(--sab));
	width: min(330px, 52%); padding: 10px 12px; overflow-y: auto; touch-action: pan-y; font-size: 0.92em;
}
.bw-kpanel h2 { margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--bw-gold); font-size: 1.2em; }
.bw-kpanel h3 { margin: 10px 0 4px; font-size: 1em; }
.bw-kpanel p { margin: 4px 0; }
.bw-kpanel .bw-x { min-width: 36px; min-height: 36px; padding: 0; box-shadow: none; }
.bw-kstat { display: flex; align-items: center; gap: 8px; font-size: 1.15em; }
.bw-kstat small { font-size: 0.75em; color: var(--bw-muted); }
.bw-kenemies { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.bw-kenemies .bw-mi, .bw-kenemies .bw-q { width: 30px; height: 30px; }
.bw-kbtns { display: flex; gap: 6px; margin-top: 6px; }
.bw-kbtns .bw-btn { flex: 1; }
.bw-kch { display: flex; flex-direction: column; gap: 5px; }
.bw-kch .bw-btn { justify-content: flex-start; box-shadow: none; font-weight: 600; font-size: 0.92em; }
.bw-modebadge { top: calc(62px + var(--sat)); left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 8px; background: rgba(107, 79, 29, 0.85); border: 1px solid var(--bw-gold); font-size: 0.8em; font-weight: 700; pointer-events: none !important; white-space: nowrap; }
.bw-endbtns.bw-col { flex-direction: column; align-items: stretch; max-width: 280px; margin: 8px auto 0; }
.bw-tile.bw-banned { opacity: 0.35; filter: grayscale(1); }
.bw-forgepts { font-weight: 800; color: var(--bw-text) !important; font-size: 1.1em; }
.bw-talents { display: flex; flex-direction: column; gap: 6px; }
.bw-talent { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,0.05); }
.bw-talent > div { flex: 1; display: flex; flex-direction: column; }
.bw-talent small { color: var(--bw-muted); }
.bw-talent.bw-owned { background: rgba(44, 110, 73, 0.3); }
.bw-talent .bw-btn { min-height: 40px; box-shadow: none; white-space: nowrap; }
.bw-spec small svg { width: 11px; height: 11px; vertical-align: -1px; }
@media (max-height: 400px) {
	.bw-kpanel { top: calc(54px + var(--sat)); }
	.bw-ktop .bw-btn span { display: none; }
}
.bw-kpanel { z-index: 4; }
.bw-ktop { z-index: 4; }
.bw-seth { margin: 12px 0 2px; font-size: 0.95em; color: var(--bw-gold); }

/* ---------- 0.7: Konto, Schwierigkeit ---------- */
.bw-root input[type="text"], .bw-root input[type="password"] { user-select: text; -webkit-user-select: text; }
.bw-field { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; }
.bw-field span { font-size: 0.85em; color: var(--bw-muted); }
.bw-field input {
	font: inherit; font-size: 16px; /* verhindert iOS-Zoom */ min-height: 44px; padding: 6px 10px;
	color: var(--bw-text); background: rgba(0,0,0,0.3); border: 1.5px solid var(--bw-line); border-radius: 9px; outline: none;
}
.bw-field input:focus { border-color: var(--bw-gold); }
.bw-acctabs { justify-content: flex-start; margin: 8px 0 4px; }
.bw-accmsg { min-height: 1.3em; color: var(--bw-muted); }
.bw-accmsg.bw-bad { color: #f2a59f; }
.bw-accbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bw-accbtns .bw-btn { box-shadow: none; }
.bw-code { font: 700 1.5em/1.2 ui-monospace, monospace; letter-spacing: 0.08em; text-align: center; color: var(--bw-gold) !important; background: rgba(0,0,0,0.3); border-radius: 10px; padding: 10px; user-select: all; -webkit-user-select: all; }
.bw-row2 { display: flex; gap: 6px; }
.bw-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.bw-check input { width: 22px; height: 22px; }
.bw-what summary { cursor: pointer; color: var(--bw-gold); margin-top: 8px; }
.bw-what p { font-size: 0.85em; }
.bw-accbtn.bw-on { border-color: #8fd19e; }
.bw-diff { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bw-diff > span { font-weight: 700; }
.bw-diff .bw-btn small { font-size: 0.75em; }
.bw-diffnote { margin-top: 2px !important; }
.bw-earned { color: var(--bw-gold) !important; font-weight: 700; }

/* ---------- 0.8: Bestenlisten ---------- */
.bw-lbbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 6px; }
.bw-lbbar .bw-seg { justify-content: flex-start; }
.bw-lbwrap { max-height: 52vh; overflow-y: auto; touch-action: pan-y; }
.bw-lbt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9em; }
.bw-lbt th { text-align: left; color: var(--bw-muted); font-weight: 600; padding: 3px 6px; position: sticky; top: 0; background: #1c2230; }
.bw-lbt td { padding: 4px 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.bw-lbt tr.bw-me td { background: rgba(224, 180, 64, 0.18); font-weight: 700; }
.bw-rankline { color: var(--bw-gold) !important; min-height: 1.2em; }

/* ---------- 0.9: Boss-Leiste ---------- */
.bw-bossbar { top: calc(8px + var(--sat)); left: 50%; transform: translateX(-50%); width: min(340px, 40%); padding: 4px 10px 6px; text-align: center; pointer-events: none !important; border-color: #c23b3b; }
.bw-bossbar b { display: block; font-size: 0.85em; color: #f2a59f; }
.bw-bossbar span { display: block; height: 9px; border-radius: 5px; background: rgba(0,0,0,0.5); overflow: hidden; margin-top: 2px; }
.bw-bossbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #c23b3b, #e07a3c); transition: width 0.15s; }
.bw-chap { min-width: 40px !important; padding: 0 !important; }
.bw-chap.bw-locked { opacity: 0.5; }

/* ---- Einführung (1.0) ---- */
.bw-tut { position: absolute; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); width: min(440px, 60vw); padding: 10px 12px; z-index: 30; display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--bw-gold); animation: bw-pop 0.3s; }
.bw-tut p { margin: 0; line-height: 1.35; }
.bw-tut .bw-tutn { font-size: 0.75em; color: var(--bw-gold); text-transform: uppercase; letter-spacing: 0.05em; }
.bw-tut .bw-btn { align-self: flex-end; min-height: 32px; font-size: 0.8em; }
.bw-tutglow { box-shadow: 0 0 0 3px var(--bw-gold), 0 0 18px 4px rgba(240, 190, 60, 0.7) !important; animation: bw-glow 1.2s ease-in-out infinite; }
@keyframes bw-glow { 50% { box-shadow: 0 0 0 3px var(--bw-gold), 0 0 6px 1px rgba(240, 190, 60, 0.4); } }

/* ---- Barrierefreiheit (1.0) ---- */
.bw-still *, .bw-still *::before, .bw-still *::after { animation: none !important; transition: none !important; }
.bw-contrast .bw-panel { background: rgba(8, 8, 10, 0.97) !important; border: 2px solid #f4f0e6 !important; color: #fff !important; }
.bw-contrast .bw-btn { border: 2px solid #f4f0e6 !important; color: #fff !important; }
.bw-contrast .bw-btn.bw-primary { background: #1f6f2a !important; }
.bw-contrast .bw-btn:disabled { opacity: 0.65; border-style: dashed !important; }
.bw-root :focus-visible { outline: 3px solid var(--bw-gold); outline-offset: 2px; }
.bw-contrast :focus-visible { outline-color: #fff; }
.bw-baltable table { border-collapse: collapse; width: 100%; font-size: 0.85em; margin: 6px 0; }
.bw-baltable th, .bw-baltable td { border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding: 3px 6px; text-align: left; }
.bw-tut { pointer-events: none; }
.bw-tut .bw-btn { pointer-events: auto; }

/* ---- Entwicklungen (1.3) ---- */
.bw-evochips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.bw-evochip { font-size: 0.72em; padding: 2px 6px; border-radius: 10px; background: rgba(240, 190, 60, 0.18); border: 1px solid rgba(240, 190, 60, 0.6); color: var(--bw-gold); }
.bw-evonote { color: var(--bw-gold) !important; font-weight: 600; }
.bw-evo { border-color: var(--bw-gold) !important; }
.bw-card { max-height: calc(100% - 16px); overflow-y: auto; overscroll-behavior: contain; }

/* ---- Kartenvorschau (1.3.2) ---- */
.bw-kpreview { position: absolute; left: calc(8px + var(--sal, 0px)); top: calc(62px + var(--sat)); bottom: calc(8px + var(--sab)); width: calc(100% - min(330px, 52%) - 32px - var(--sar) - var(--sal, 0px)); max-width: 560px; padding: 8px; z-index: 4; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.bw-kpreview img, .bw-kprevimg { width: 100%; height: auto; max-height: calc(100% - 44px); object-fit: contain; image-rendering: pixelated; border-radius: 6px; display: block; }
.bw-kprevimg { aspect-ratio: 28 / 18; background: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; }
.bw-kleg { margin: 0; font-size: 0.72em; color: var(--bw-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.bw-kleg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -4px; vertical-align: -1px; }
.bw-lg-start { background: #d9534f; } .bw-lg-gate { background: #4a90d9; }
.bw-lg-path { background: #ff6a3d; border-radius: 2px !important; height: 4px !important; }
.bw-lg-spot { background: rgba(255,215,90,0.4); border: 1px solid #ffd25a; border-radius: 2px !important; }
.bw-lg-air { background: #c8aaff; height: 3px !important; border-radius: 2px !important; }
@media (max-height: 400px) { .bw-kpreview { top: calc(54px + var(--sat)); } }
.bw-cardbtns { flex-wrap: wrap; }
.bw-cardbtns > .bw-btn, .bw-cardbtns > .bw-max { flex: 1 1 46%; min-width: 0; white-space: nowrap; }
.bw-cardbtns > .bw-btn[data-c="up"] { flex-basis: 100%; }

/* ---- Turm-Lexikon und Wolle (1.5) ---- */
.bw-lextabs { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
.bw-lextabs .bw-btn { min-height: 34px; padding: 0 12px; font-size: 0.8em; box-shadow: none; }
.bw-lextabs .bw-btn.bw-on { border-color: var(--bw-gold); color: var(--bw-gold); background: rgba(224, 180, 64, 0.15); }
.bw-lexitem.bw-locked { opacity: 0.6; }
.bw-lexitem small { display: block; font-size: 0.75em; color: var(--bw-muted); }
.bw-lexitem small svg, .bw-lockchip svg { width: 10px; height: 10px; vertical-align: -1px; }
.bw-lexscroll { max-height: 70vh; overflow-y: auto; touch-action: pan-y; padding-right: 4px; }
.bw-lexinfo h4 { margin: 10px 0 4px; color: var(--bw-gold); font-size: 0.95em; }
.bw-lexul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bw-lexul small { color: var(--bw-muted); }
.bw-evopair { display: flex; gap: 6px; align-items: stretch; margin-top: 3px; }
.bw-evopair > div { flex: 1; display: flex; flex-direction: column; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(240,190,60,0.3); }
.bw-evopair > span { align-self: center; font-size: 0.75em; color: var(--bw-muted); }
.bw-lockchip { background: rgba(0,0,0,0.3) !important; color: var(--bw-muted) !important; font-size: 0.75em; }
.bw-lvtable td, .bw-lvtable th { text-align: left !important; padding-right: 8px; }
.bw-memorial { color: #c8aaff !important; font-style: italic; }
.bw-soulsbox { margin-top: 6px; border: 1px solid rgba(160, 110, 230, 0.5); border-radius: 8px; padding: 4px 6px; background: rgba(90, 40, 140, 0.15); }
.bw-soulsbox summary { cursor: pointer; font-weight: 700; color: #c8aaff; font-size: 0.9em; }
.bw-souls { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; touch-action: pan-y; }
.bw-souls li { display: flex; gap: 6px; align-items: center; }
.bw-souls li > div { display: flex; flex-direction: column; min-width: 0; }
.bw-souls .bw-mi, .bw-souls img { width: 28px; height: 28px; flex: none; }
.bw-souls small { color: var(--bw-muted); }
.bw-soulevo { color: var(--bw-gold) !important; }
.bw-wmerge { border-color: #a06ee6 !important; }
.bw-wmerge.bw-armed { background: rgba(120, 60, 190, 0.6) !important; }
.bw-card .bw-soulsbox ~ *, .bw-cardbtns > .bw-btn[data-c="wexpand"], .bw-cardbtns > .bw-wmerge { flex-basis: 100%; white-space: normal; }
.bw-terr { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); white-space: nowrap; font-size: 0.72em; padding: 1px 7px; border-radius: 8px; background: rgba(0,0,0,0.6); color: #fff; pointer-events: none; }
.bw-terr:empty { display: none; }
.bw-terr.bw-forest { background: rgba(30, 90, 40, 0.85); }
.bw-confirm { position: absolute; }

/* ---- Lexikon breit und ohne innere Scrollbereiche (1.5.2) ---- */
.bw-dialog.bw-lexwide { width: min(1500px, 97vw); max-height: 96%; }
.bw-lexwide .bw-lex { display: grid; grid-template-columns: 180px 230px minmax(0, 1fr); gap: 14px; align-items: start; }
.bw-lexwide .bw-lexmain { display: contents; }
.bw-lexwide .bw-lexlist { width: auto; max-height: none; overflow: visible; }
.bw-lexwide .bw-lexcv { width: 230px; height: 200px; position: sticky; top: 0; }
.bw-lexwide .bw-lexinfo { overflow: visible; max-height: none; font-size: 0.92em; }
.bw-lexhead h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bw-lexgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin-top: 8px; }
.bw-lexcard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.bw-lexcard h4 { margin: 0 0 6px !important; }
.bw-lexevo { grid-column: 1 / -1; }
.bw-evotiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bw-evotier { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bw-evotier > b { font-size: 0.85em; color: var(--bw-gold); }
.bw-evotier.bw-locked { opacity: 0.55; }
.bw-evoopt { display: flex; flex-direction: column; padding: 5px 7px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(240,190,60,0.3); overflow-wrap: anywhere; }
.bw-evoopt small { color: var(--bw-muted); font-size: 0.8em; }
.bw-or { text-align: center; font-size: 0.7em; color: var(--bw-muted); }
.bw-lvtable { width: 100%; }
.bw-lexwide .bw-lexul small { overflow-wrap: anywhere; }
@media (max-width: 1150px) { .bw-evotiers { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
@media (max-width: 900px), (max-height: 520px) {
	.bw-lexwide .bw-lex { grid-template-columns: 170px minmax(0, 1fr); }
	.bw-lexwide .bw-lexlist { grid-row: 1 / span 2; }
	.bw-lexwide .bw-lexcv { width: 170px; height: 140px; position: static; }
	.bw-lexwide .bw-lexinfo { grid-column: 2; }
}
@media (max-width: 620px) {
	.bw-lexwide .bw-lex { grid-template-columns: minmax(0, 1fr); }
	.bw-lexwide .bw-lexlist { grid-row: auto; flex-direction: row; overflow-x: auto; }
	.bw-lexwide .bw-lexinfo { grid-column: 1; }
}
.bw-lexwide .bw-lexinfo > .bw-stats-t { max-width: 420px; }
.bw-lexwide h2 { position: sticky; top: -14px; z-index: 2; background: inherit; margin: -14px -16px 10px; padding: 12px 16px 8px; background: #1c1e26; }
.bw-terr.bw-why { background: rgba(160, 30, 25, 0.9); }
.bw-confirm.bw-hovering { pointer-events: none !important; }
.bw-confirm.bw-hovering .bw-btn { visibility: hidden; }
.bw-accstars { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 8px 0; }
.bw-accstars > div { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 10px; background: rgba(224, 180, 64, 0.12); border: 1px solid rgba(224, 180, 64, 0.35); }
.bw-accstars b { color: var(--bw-gold); font-size: 1.2em; }
.bw-accstars small { color: var(--bw-muted); font-size: 0.75em; line-height: 1.2; }
.bw-talgrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.bw-talent .bw-mi, .bw-talent img { width: 32px; height: 32px; flex: none; }
.bw-talent.bw-tlocked { opacity: 0.6; }
.bw-talent .bw-why { color: var(--bw-muted); }
.bw-talent .bw-why svg { width: 10px; height: 10px; vertical-align: -1px; }

/* ---- Karteneditor, eigene Karten, Handbuch (1.8) ---- */
.bw-editor { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; background: radial-gradient(ellipse at 50% 0%, #2a3346, var(--bw-bg) 70%); padding: var(--sat) var(--sar) var(--sab) var(--sal); }
.bw-editor input, .bw-editor select, .bw-editor textarea {
	font: inherit; font-size: 0.95em; color: var(--bw-text); background: rgba(0, 0, 0, 0.32); border: 1.5px solid var(--bw-line); border-radius: 8px;
	min-height: 38px; padding: 2px 8px; width: 100%; box-sizing: border-box; user-select: text; -webkit-user-select: text; touch-action: manipulation;
}
.bw-editor select option { background: #1d2433; color: var(--bw-text); }
.bw-editor textarea { resize: vertical; padding: 6px 8px; }
.bw-editor input[type="range"] { background: none; border: 0; min-height: 30px; padding: 0; }
.bw-etop { position: sticky; top: 0; z-index: 3; background: rgba(24, 30, 44, 0.97); display: flex; align-items: center; gap: 6px; padding: 5px 8px; margin: 8px 8px 0; }
.bw-etop .bw-btn { box-shadow: none; }
.bw-etitle { flex: 1 1 140px; min-width: 90px; font-weight: 700; }
.bw-etabs { flex-wrap: nowrap; }
.bw-ebody { padding: 8px; flex: 1 0 auto; }
.bw-etab-map { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(170px, 250px); gap: 8px; align-items: start; }
.bw-etools { display: grid; grid-template-columns: 64px; gap: 4px; }
.bw-etools .bw-btn { flex-direction: column; gap: 1px; min-height: 46px; padding: 3px 2px; font-size: 0.68em; box-shadow: none; }
.bw-etools .bw-btn svg { width: 22px; height: 22px; }
.bw-ecanvas { display: flex; justify-content: center; min-width: 0; }
.bw-ecanvas canvas { touch-action: none; border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); image-rendering: pixelated; cursor: crosshair; }
.bw-eopts { background: var(--bw-panel); border: 1.5px solid var(--bw-line); border-radius: 12px; padding: 8px 10px; font-size: 0.86em; display: flex; flex-direction: column; gap: 6px; }
.bw-eopts p { margin: 0; }
.bw-eopts .bw-seg { justify-content: flex-start; }
.bw-eopts .bw-btn { min-height: 38px; }
.bw-edot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.bw-ecard { background: var(--bw-panel); border: 1.5px solid var(--bw-line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.bw-ecard h3 { margin: 0 0 6px; font-size: 1em; color: var(--bw-gold); }
.bw-ecard h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 0.95em; }
.bw-ecard p { margin: 4px 0; }
.bw-eform { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }
.bw-eform label, .bw-egroup label { display: flex; flex-direction: column; gap: 3px; font-size: 0.82em; color: var(--bw-muted); }
.bw-eform .bw-wide2 { grid-column: 1 / -1; }
.bw-erow { display: flex; gap: 6px; align-items: center; }
.bw-erow .bw-btn { min-height: 38px; white-space: nowrap; box-shadow: none; flex: none; padding: 0 10px; }
.bw-erow input { flex: 1 1 70px; min-width: 0; }
.bw-erow b { white-space: nowrap; color: var(--bw-text); }
.bw-etab-values, .bw-etab-check { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; align-content: start; }
.bw-etab-waves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px; align-content: start; }
.bw-egen .bw-eform { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 700px) { .bw-etab-waves { grid-template-columns: 1fr; } }
.bw-ewaves { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.bw-epool { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.bw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; min-height: 32px; border: 1px solid var(--bw-line); border-radius: 16px; font-size: 0.8em; cursor: pointer; }
.bw-chip.bw-on { background: #6b4f1d; border-color: var(--bw-gold); }
.bw-chip input { display: none; }
.bw-chip img, .bw-chip svg { width: 22px; height: 22px; }
.bw-ewbtn { margin-left: auto; display: flex; gap: 4px; }
.bw-ewbtn .bw-btn, .bw-egroup > .bw-btn { min-width: 36px; min-height: 36px; padding: 0; box-shadow: none; }
.bw-ewbtn svg, .bw-egroup > .bw-btn svg { width: 18px; height: 18px; }
.bw-egroups { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.bw-egroup { display: grid; grid-template-columns: minmax(100px, 1.5fr) repeat(3, minmax(52px, 0.7fr)) auto auto; gap: 4px; align-items: end; }
.bw-egroup > select { align-self: end; }
.bw-ewave small, .bw-ecard small[data-pw] { font-weight: 500; color: var(--bw-muted); }
.bw-bad, small.bw-bad { color: #ff8a80 !important; }
.bw-ok { color: #8fd19e; }
.bw-echart { display: block; width: 100%; }
.bw-echecks { list-style: none; padding: 0; margin: 0 0 6px; }
.bw-echecks li { margin: 3px 0; }
.bw-epv img { width: 100%; height: auto; image-rendering: pixelated; border-radius: 6px; display: block; }
.bw-etab-check .bw-kbtns { flex-wrap: wrap; }
.bw-etab-check .bw-kbtns .bw-btn { flex: 1 1 auto; }
.bw-cmgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.bw-cmcard { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--bw-line); border-radius: 10px; background: rgba(0, 0, 0, 0.18); }
.bw-cmcard small { display: block; color: var(--bw-muted); font-size: 0.8em; }
.bw-cmbtns { display: flex; flex-wrap: wrap; gap: 4px; }
.bw-cmbtns .bw-btn { min-height: 40px; box-shadow: none; }
.bw-badge { display: inline-block; font-size: 0.72em; padding: 1px 7px; border-radius: 10px; border: 1px solid rgba(240, 190, 60, 0.6); color: var(--bw-gold); white-space: nowrap; }
.bw-badge.bw-rel { border-color: #8fd19e; color: #8fd19e; }
.bw-badge.bw-draft { border-color: rgba(255, 255, 255, 0.3); color: var(--bw-muted); }
.bw-cmview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.bw-cmview img { width: 100%; height: auto; image-rendering: pixelated; border-radius: 6px; display: block; }
.bw-hbnav { justify-content: flex-start; margin-bottom: 8px; }
.bw-hbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.bw-hbgrid ol { margin: 4px 0 4px 18px; padding: 0; color: var(--bw-muted); }
.bw-hbgrid li { margin: 3px 0; }
@media (max-width: 900px), (max-height: 520px) {
	.bw-etabs .bw-btn span, .bw-etop > .bw-btn span { display: none; }
	.bw-etools { grid-template-columns: repeat(2, 44px); }
	.bw-etools .bw-btn { min-height: 44px; min-width: 44px; padding: 0; }
	.bw-etools .bw-btn span { display: none; }
	.bw-etab-map { grid-template-columns: auto minmax(0, 1fr) minmax(150px, 200px); gap: 6px; }
	.bw-eopts { font-size: 0.78em; }
	.bw-ktop .bw-klabel { display: none; }
	.bw-cmview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) { .bw-etab-map { grid-template-columns: auto minmax(0, 1fr); } .bw-eopts { grid-column: 1 / -1; } .bw-cmview { grid-template-columns: 1fr; } }
/* 1.8.5: Gelände-Pinsel kompakt */
.bw-epaint .bw-btn { font-size: 0.86em; padding: 0 8px; }
@media (max-width: 900px), (max-height: 520px) {
	.bw-eopts > p.bw-note:first-of-type, .bw-eopts > p.bw-note:last-child { display: none; }
	.bw-eopts .bw-epaint { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
	.bw-eopts .bw-epaint .bw-btn, .bw-eopts .bw-btn { min-height: 34px; padding: 0 5px; font-size: 0.82em; justify-content: flex-start; }
	.bw-eopts { gap: 4px; padding: 6px; }
}
/* 1.9: Meisterkräfte in der Schmiede */
.bw-powergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.bw-powerbox { border: 1px solid var(--bw-line); border-radius: 10px; background: rgba(0, 0, 0, 0.18); padding: 4px 8px; }
.bw-powerbox[open] { grid-column: 1 / -1; }
.bw-powerbox > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none; }
.bw-powerbox > summary::-webkit-details-marker { display: none; }
.bw-powerbox > summary img, .bw-powerbox > summary svg { width: 28px; height: 28px; }
.bw-powerbox > summary small { margin-left: auto; color: var(--bw-gold); font-weight: 700; }
.bw-powerbox[open] > .bw-talent { display: inline-flex; width: calc(50% - 6px); margin: 3px; vertical-align: top; box-sizing: border-box; }
@media (max-width: 760px) { .bw-powerbox[open] > .bw-talent { width: 100%; } }
.bw-powerbox.bw-tlocked { opacity: 0.6; }
.bw-evochip.bw-power { background: rgba(160, 90, 255, 0.2); border-color: rgba(180, 120, 255, 0.7); color: #d9c2ff; }

/* ---------- 1.10: Held ---------- */
.bw-champ { bottom: calc(68px + var(--sab)); left: calc(8px + var(--sal)); display: flex; align-items: center; gap: 4px; padding: 4px; }
.bw-lefty .bw-champ { left: auto; right: calc(8px + var(--sar)); }
.bw-chpor { width: 48px; height: 48px; padding: 0; border-radius: 10px; border: 2px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.25); cursor: pointer; flex: none; }
.bw-chpor .bw-mi { width: 100%; height: 100%; }
.bw-chpor.bw-on { border-color: var(--bw-gold); box-shadow: 0 0 0 2px rgba(224,180,64,0.4); }
.bw-chinfo { display: flex; flex-direction: column; align-items: flex-start; min-width: 92px; max-width: 130px; padding: 2px 4px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.bw-chinfo b { font-size: 0.9em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bw-chinfo small { font-size: 0.7em; color: var(--bw-muted); white-space: nowrap; }
.bw-chhp { display: block; width: 100%; height: 6px; margin-top: 3px; border-radius: 3px; background: rgba(0,0,0,0.4); overflow: hidden; }
.bw-chhp i { display: block; height: 100%; width: 100%; background: #5fbf4a; }
.bw-chinfo em { position: absolute; right: 4px; top: 2px; font-style: normal; font-size: 0.75em; color: var(--bw-red); font-weight: 700; }
.bw-chdown .bw-chpor { filter: grayscale(1) brightness(0.6); }
.bw-chab { width: 46px; height: 46px; min-height: 0; padding: 0; position: relative; flex: none; }
.bw-chab .bw-chic svg { width: 24px; height: 24px; }
.bw-chab.bw-chult { border-color: var(--bw-gold); }
.bw-chab.bw-chready { box-shadow: inset 0 0 0 2px rgba(143,209,158,0.6); }
.bw-chab.bw-chlock { opacity: 0.35; }
.bw-chab:disabled { cursor: default; }
.bw-chcd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05em; color: #fff; text-shadow: 0 1px 2px #000; pointer-events: none; }
.bw-chcd:not(:empty) { background: rgba(0,0,0,0.55); border-radius: inherit; }
@media (max-height: 430px) {
	.bw-champ { bottom: calc(58px + var(--sab)); padding: 3px; }
	.bw-chpor { width: 40px; height: 40px; }
	.bw-chab { width: 40px; height: 40px; }
	.bw-chinfo { min-width: 80px; max-width: 110px; }
}
.bw-champbtn .bw-chmini { display: inline-flex; width: 26px; height: 26px; }
.bw-champbtn .bw-chmini .bw-mi { width: 26px; height: 26px; }
.bw-chdlg .bw-chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.bw-chcard { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: inherit; font: inherit; text-align: center; cursor: pointer; position: relative; }
.bw-chcard .bw-mi { width: 72px; height: 72px; }
.bw-chcard small { color: var(--bw-muted); font-size: 0.8em; }
.bw-chcard.bw-on { border-color: var(--bw-gold); background: rgba(224,180,64,0.14); }
.bw-chcard:disabled { opacity: 0.7; cursor: default; }
.bw-chcard .bw-badge { position: absolute; top: 6px; right: 6px; }
.bw-chsoon { opacity: 0.45; cursor: default; justify-content: center; min-height: 110px; }
.bw-chabl { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.bw-chabl i { font-style: normal; font-size: 0.72em; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,0.08); }
.bw-chform { display: flex; flex-direction: column; gap: 6px; }
.bw-chform .bw-field input, .bw-chnamerow input { padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: inherit; font: inherit; min-width: 0; }
.bw-chhead { display: flex; gap: 12px; align-items: center; }
.bw-chhead > .bw-mi { width: 96px; height: 96px; flex: none; }
.bw-chhead > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bw-chnamerow { display: flex; gap: 6px; }
.bw-chnamerow input { flex: 1; font-weight: 700; font-size: 1.1em; }
.bw-chcls { color: var(--bw-muted); }
.bw-chxp { height: 8px; border-radius: 4px; background: rgba(0,0,0,0.4); overflow: hidden; }
.bw-chxp i { display: block; height: 100%; background: linear-gradient(90deg, #c99a2e, #f2d06b); }
.bw-chsheet .bw-talents { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.bw-chsheet .bw-chic svg { width: 26px; height: 26px; color: var(--bw-gold); }
.bw-ktop .bw-champbtn .bw-chmini { display: inline-flex !important; }

/* ---------- 1.11: Wettbewerb der Woche ---------- */
.bw-wkrule { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(224,180,64,0.12); border: 1px solid rgba(224,180,64,0.4); }
.bw-wkrule svg { width: 22px; height: 22px; color: var(--bw-gold); flex: none; }

/* =====================================================================
   2.1 Designsystem „Burgwacht UI“
   Grundlage: Apple HIG (Spiele-Steuerung: häufige Ziele ≥ 44 pt in Daumennähe,
   Menüs oben, sichtbarer Druckzustand), Material 3 (48 dp, Abstände 8er-Raster),
   WCAG 2.2 AA (2.5.8 Zielgröße, 1.4.3/1.4.11 Kontrast, 2.4.7/2.4.11 Fokus),
   Nielsen-Heuristiken (Sichtbarkeit, Konsistenz, Minimalismus).
   Tokens: Abstand, Radius, Schrift, Fläche, Bewegung, Ebenen.
   ===================================================================== */
.bw-root {
	--bw-space-1: 4px; --bw-space-2: 8px; --bw-space-3: 12px; --bw-space-4: 16px; --bw-space-5: 24px;
	--bw-radius-s: 8px; --bw-radius-m: 12px; --bw-radius-l: 16px; --bw-radius-pill: 999px;
	--bw-tap-min: 44px;        /* HIG: häufige Ziele */
	--bw-tap-sec: 32px;        /* HIG: seltene Ziele ≥ 28 pt, WCAG ≥ 24 px */
	--bw-fs-xs: 0.75em; --bw-fs-s: 0.875em; --bw-fs-m: 1em; --bw-fs-l: 1.25em;
	--bw-surface: rgba(22, 27, 40, 0.86);
	--bw-surface-strong: rgba(18, 22, 33, 0.96);
	--bw-surface-hi: rgba(255, 255, 255, 0.06);
	--bw-focus: #ffd75e;
	--bw-success: #3f7d4e;
	--bw-dur-fast: 120ms; --bw-dur: 200ms;
	--bw-ease: cubic-bezier(0.2, 0, 0, 1);
	--bw-edge: max(8px, var(--sal));
	--bw-edge-r: max(8px, var(--sar));
	--bw-edge-t: max(8px, var(--sat));
	--bw-edge-b: max(8px, var(--sab));
}
/* Glas-Flächen (in Anlehnung an Liquid Glass/Material Surfaces) – nur, wenn Unschärfe verfügbar ist und keine reduzierte Transparenz gewünscht wird */
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
	.bw-panel, .bw-hud .bw-btn:not(.bw-primary):not(.bw-on):not(.bw-undo):not(.bw-armed), .bw-ktop .bw-btn:not(.bw-on) {
		background: var(--bw-surface);
		-webkit-backdrop-filter: blur(10px) saturate(1.25); backdrop-filter: blur(10px) saturate(1.25);
	}
}
@media (prefers-reduced-transparency: reduce) {
	.bw-panel, .bw-hud .bw-btn:not(.bw-primary):not(.bw-on):not(.bw-undo):not(.bw-armed), .bw-ktop .bw-btn:not(.bw-on) { background: var(--bw-surface-strong) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
/* Fokus deutlich sichtbar (WCAG 2.4.7, 2.4.11) */
.bw-root :focus-visible { outline: 3px solid var(--bw-focus); outline-offset: 2px; }
/* Druckzustand sichtbar, auch unter dem Finger (HIG) */
.bw-btn:active:not(:disabled), .bw-tile:active, .bw-chpor:active { filter: brightness(1.25); box-shadow: 0 0 0 3px rgba(224, 180, 64, 0.45); }
@media (prefers-reduced-motion: reduce) {
	.bw-root *, .bw-root *::before, .bw-root *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
/* Mindestgrößen (WCAG 2.5.8 / HIG) */
.bw-card .bw-x, .bw-kpanel .bw-x { min-width: var(--bw-tap-min); min-height: var(--bw-tap-min); }
.bw-bartoggle { min-width: var(--bw-tap-min) !important; }
.bw-target .bw-btn, .bw-seg .bw-btn, .bw-talent .bw-btn { min-height: var(--bw-tap-min); min-width: var(--bw-tap-min); }
.bw-chpor { width: 48px; height: 48px; }
.bw-chab { width: 48px; height: 48px; }

/* Dialoge: Kopf bleibt beim Scrollen sichtbar, Schließen immer erreichbar */
.bw-dialog { overscroll-behavior: contain; }
.bw-dialog:has(> h2:first-child) { padding-top: 0; }
.bw-dialog > h2:first-child { position: sticky; top: 0; z-index: 2; margin: 0 -16px 10px; padding: 12px 16px; background: var(--bw-surface-strong); border-bottom: 1px solid var(--bw-line); border-radius: var(--bw-radius-m) var(--bw-radius-m) 0 0; }
.bw-dialog > h2 .bw-btn { flex: none; }
.bw-dialog > h2:first-child { background: rgb(18, 22, 33); }

/* Statusleiste mit Menü (Menüs oben – HIG) */
.bw-stats { top: var(--bw-edge-t); left: var(--bw-edge); align-items: center; padding: 4px; gap: 2px; }
.bw-menubtn { min-width: var(--bw-tap-min); min-height: var(--bw-tap-min); padding: 0; box-shadow: none; border-color: transparent; background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.bw-stat { font-variant-numeric: tabular-nums; }
.bw-next { top: calc(var(--bw-edge-t) + 60px); left: var(--bw-edge); }

/* Schnellzugriff im Menü */
.bw-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--bw-space-2); margin: var(--bw-space-2) 0 var(--bw-space-3); }
.bw-qbtn { flex-direction: column; gap: 4px; min-height: 64px; padding: 6px 4px; font-size: var(--bw-fs-s); font-weight: 600; box-shadow: none; }
.bw-qbtn svg { width: 24px; height: 24px; }
.bw-quick-l { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.bw-pausecard .bw-endbtns.bw-col { max-width: 320px; }

/* Untere Daumenzonen: links Held, rechts Welle/Tempo/Pause */
.bw-controls { bottom: var(--bw-edge-b); right: var(--bw-edge-r); gap: var(--bw-space-2); }
.bw-champ { bottom: var(--bw-edge-b); left: var(--bw-edge); gap: var(--bw-space-1); }
.bw-lefty .bw-champ { left: auto; right: var(--bw-edge-r); }
.bw-lefty .bw-controls { left: var(--bw-edge); right: auto; }

/* Turmkarte als Seitenleiste rechts statt schwebend über dem Spielfeld (überall gleich; Turmleiste macht Platz) */
.bw-card.bw-docked {
	left: auto; right: var(--bw-edge-r); top: var(--bw-edge-t); bottom: calc(var(--bw-edge-b) + var(--bw-tap-min) + 16px);
	width: min(320px, 46vw) !important; max-height: none; transform: none !important;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
}
.bw-lefty .bw-card.bw-docked { right: auto; left: var(--bw-edge); }
.bw-cardopen .bw-towerbar, .bw-cardopen .bw-bartoggle, .bw-cardopen .bw-info { display: none !important; }
@media (min-width: 1100px) and (min-height: 700px) { .bw-card.bw-docked { width: 340px !important; font-size: 0.95em; } }

/* Königreich: „Mehr“-Knopf nur auf kleinen Bildschirmen */
.bw-ktop .bw-kmore { display: none; }

/* ---------- Kompakt: Handy quer und kleine Tablets ---------- */
@media (max-height: 520px), (max-width: 900px) {
	.bw-root { --bw-fs: 14px; }
	/* Status kompakt in einer Zeile */
	.bw-stat { min-height: 36px; padding: 2px 6px; gap: 4px; }
	.bw-stat svg { width: 20px; height: 20px; }
	.bw-next { top: calc(var(--bw-edge-t) + 54px); padding: 2px 8px; }
	.bw-nexti .bw-mi { width: 20px; height: 20px; }
	/* Hinweise unten mittig über den Daumenzonen, nicht über der Statusleiste */
	.bw-toast { top: auto; bottom: calc(var(--bw-edge-b) + 124px); max-width: min(62vw, 460px); padding: 6px 12px; font-size: var(--bw-fs-s); line-height: 1.3; }
	.bw-newfoe { top: auto; bottom: calc(var(--bw-edge-b) + 124px); }
	/* Wellen-Knopf: nur Symbol, wenn es eng wird */
	.bw-wavebtn { padding: 0 14px; }
	.bw-controls .bw-speed { min-width: 52px; }
	/* Held: kompakt */
	.bw-champ { padding: 3px; }
	.bw-chpor, .bw-chab { width: 44px; height: 44px; }
	.bw-chinfo { min-width: 64px; max-width: 96px; }
	.bw-chinfo small { font-size: 0.68em; }
	/* Turmleiste schmaler, endet über den Steuerknöpfen */
	.bw-towerbar { top: var(--bw-edge-t); right: var(--bw-edge-r); width: 84px; bottom: calc(var(--bw-edge-b) + var(--bw-tap-min) + 12px); }
	.bw-bartoggle { top: var(--bw-edge-t); right: calc(var(--bw-edge-r) + 92px); }
	/* Königreich-Leiste: seltene Knöpfe ins „Mehr“-Blatt */
	.bw-ktop { gap: var(--bw-space-1); padding: 4px 6px; }
	.bw-ktop .bw-kopt { display: none !important; }
	.bw-ktop .bw-kmore { display: inline-flex; }
	.bw-ktitle { font-size: 0.95em; min-width: 0; }
	.bw-kpanel { width: min(360px, 56%); }
	/* Dialoge nutzen die ganze Fläche */
	.bw-modal { padding: var(--bw-edge-t) var(--bw-edge-r) var(--bw-edge-b) var(--bw-edge); }
	.bw-dialog, .bw-dialog.bw-wide { width: 100%; max-height: 100%; }
}
/* Sehr eng (iPhone SE quer): Wellen-Beschriftung ausblenden, Heldenname kürzer */
@media (max-width: 720px) {
	.bw-wavebtn [data-v="wavelabel"] { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bw-wavebtn { min-width: 56px; padding: 0; }
	.bw-chinfo { min-width: 56px; max-width: 76px; }
	.bw-towerbar { width: 76px; }
	.bw-bartoggle { right: calc(var(--bw-edge-r) + 84px); }
	.bw-tile .bw-name { font-size: 0.64em; }
}
/* Große Bildschirme (Tablet quer, PC): mehr Luft */
@media (min-width: 1100px) and (min-height: 700px) {
	.bw-root { --bw-fs: 16px; }
	.bw-towerbar { width: 108px; }
	.bw-bartoggle { right: calc(var(--bw-edge-r) + 116px); }
	.bw-chinfo { max-width: 160px; }
}

/* 2.2: Held-Automatik */
.bw-chauto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.bw-chauto .bw-chic svg { width: 18px; height: 18px; }
.bw-chauto b { font-size: 10px; line-height: 1; letter-spacing: 0.02em; }
.bw-chauto.bw-on { background: rgba(61,122,79,0.85); border-color: rgba(143,209,158,0.8); }

/* 2.2: Aufstieg ab Stufe 1000 */
.bw-ascbox { margin: 8px 0; padding: 8px 12px; border-radius: var(--bw-r-m, 12px); border: 1px solid rgba(255, 214, 120, 0.55); background: linear-gradient(135deg, rgba(120, 80, 200, 0.22), rgba(255, 200, 90, 0.14)); }
.bw-ascbox p { margin: 2px 0; }
.bw-ascbox b { color: #ffe08a; }
.bw-ascchip { border-color: rgba(255, 224, 138, 0.7); color: #ffe08a; }
.bw-ascnote { color: #ffe08a; }
.bw-lexasc h4 { color: #ffe08a; }

/* 2.6: Wolles Einfälle */
.bw-idealist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 12px; }
.bw-idealist li { padding: 4px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.bw-idealist b { color: #d9b8ff; }
.bw-ideas summary { color: #d9b8ff; }
.bw-ideahelp { margin: 4px 0; font-size: 0.85em; opacity: 0.85; }
.bw-pendnote { color: #ffe08a; font-weight: 600; margin: 4px 0; }
