/**
 * NoPixels Sectorum — Community-CSS (Phase 13).
 *
 * Reactions-Bar, Comment-Drawer, Challenge-Cards, Activity-Feed.
 * Animationen sind absichtlich subtil-aber-präsent — kein „Web-2.0-bouncy",
 * mehr „Sektor-Datenstrom".
 */

/* ===== Reactions ===== */
.np-sec-battle-social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	padding: 10px 14px;
	border-top: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	background: var(--np-sec-card-deep, rgba(0,0,0,.18));
}

.np-sec-reactions {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.np-sec-reaction-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	background: transparent;
	color: inherit;
	border-radius: 14px;
	font-size: 13px;
	cursor: pointer;
	transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.np-sec-reaction-btn:hover {
	background: var(--np-sec-card, rgba(255,255,255,.04));
	transform: translateY(-1px);
}
.np-sec-reaction-btn.is-mine {
	border-color: var(--np-sec-accent, #6a5acd);
	background: rgba(106, 90, 205, .14);
}
.np-sec-reaction-btn.is-busy { opacity: .5; }
.np-sec-reaction-emoji { font-size: 15px; line-height: 1; }
.np-sec-reaction-count { font-variant-numeric: tabular-nums; font-size: 11px; opacity: .85; }
.np-sec-reaction-count:empty { display: none; }

.np-sec-reaction-pop {
	font-size: 22px;
	animation: np-sec-reaction-fly .9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes np-sec-reaction-fly {
	0%   { transform: translate(0,0)    scale(1)   ; opacity: 1; }
	60%  { transform: translate(0,-40px) scale(1.4); opacity: .9; }
	100% { transform: translate(0,-70px) scale(.9) ; opacity: 0; }
}

/* ===== Comment-Toggle ===== */
.np-sec-comment-toggle {
	margin-left: auto;
	background: transparent;
	color: inherit;
	border: none;
	cursor: pointer;
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 8px;
	transition: background .18s ease;
}
.np-sec-comment-toggle:hover { background: var(--np-sec-card, rgba(255,255,255,.05)); }

/* ===== Comment-Drawer ===== */
.np-sec-comments {
	border-top: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	padding: 12px 14px;
	background: var(--np-sec-card-deep, rgba(0,0,0,.24));
	animation: np-sec-drawer-down .25s ease-out;
}
@keyframes np-sec-drawer-down {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0);   }
}
.np-sec-comment-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.np-sec-comment {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-left: 3px solid var(--np-sec-actor, #6a5acd);
	background: rgba(255,255,255,.03);
	border-radius: 0 6px 6px 0;
	font-size: 13px;
	line-height: 1.45;
}
.np-sec-comment header { display: flex; gap: 6px; align-items: baseline; opacity: .85; }
.np-sec-comment header time { margin-left: auto; font-size: 11px; opacity: .55; }
.np-sec-comment p { margin: 0; }
.np-sec-comment-empty, .np-sec-comment-loading {
	list-style: none;
	padding: 8px 10px;
	font-size: 13px;
	opacity: .6;
}
.np-sec-comment-form { display: flex; gap: 6px; align-items: stretch; }
.np-sec-comment-form textarea {
	flex: 1;
	background: var(--np-sec-input, rgba(0,0,0,.3));
	color: inherit;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.12));
	border-radius: 6px;
	padding: 6px 8px;
	font-family: inherit;
	font-size: 13px;
	resize: vertical;
}
.np-sec-mention {
	color: var(--np-sec-accent, #6a5acd);
	background: rgba(106,90,205,.14);
	padding: 1px 4px;
	border-radius: 4px;
	font-weight: 600;
}

/* ===== Challenges ===== */
.np-sec-challenge-form-wrap {
	margin: 16px 0;
	padding: 0;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	border-radius: 10px;
	background: var(--np-sec-card, rgba(255,255,255,.02));
}
.np-sec-challenge-form-toggle {
	padding: 10px 14px;
	cursor: pointer;
	font-weight: 600;
	user-select: none;
}
.np-sec-challenge-form {
	padding: 0 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.np-sec-form-row { display: flex; flex-direction: column; gap: 4px; }
.np-sec-form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.np-sec-form-row label { font-size: 12px; opacity: .85; display: flex; flex-direction: column; gap: 4px; }
.np-sec-form-row input, .np-sec-form-row select, .np-sec-form-row textarea {
	background: var(--np-sec-input, rgba(0,0,0,.3));
	color: inherit;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.12));
	border-radius: 6px;
	padding: 6px 8px;
	font-family: inherit;
}
.np-sec-challenge-msg { font-size: 12px; opacity: .85; }

.np-sec-challenge-list { list-style: none; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.np-sec-challenge-row {
	padding: 12px 14px;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	border-radius: 10px;
	background: var(--np-sec-card, rgba(255,255,255,.03));
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.np-sec-challenge-row[data-status="accepted"] { border-color: var(--np-sec-accent, #6a5acd); }
.np-sec-challenge-row:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(0,0,0,.6); }
.np-sec-challenge-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}
.np-sec-challenge-icon { font-size: 18px; }
.np-sec-challenge-vs { opacity: .6; }
.np-sec-challenge-open { opacity: .65; }
.np-sec-challenge-status {
	margin-left: auto;
	font-size: 10px;
	padding: 3px 8px;
	border-radius: 10px;
	background: rgba(255,255,255,.05);
	text-transform: uppercase;
	letter-spacing: .05em;
}
.np-sec-challenge-msg-text { margin: 0; font-style: italic; opacity: .85; font-size: 13px; }
.np-sec-challenge-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.np-sec-chip {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 12px;
	background: rgba(255,255,255,.05);
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.06));
}

/* ===== Activity-Feed ===== */
.np-sec-activity-list { list-style: none; padding: 8px 0; margin: 0; }
.np-sec-activity-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-left: 3px solid var(--np-sec-actor, #1f6feb);
	background: linear-gradient(90deg, color-mix(in srgb, var(--np-sec-actor, #1f6feb) 7%, transparent), transparent 60%);
	transition: background .25s ease;
}
.np-sec-activity-row + .np-sec-activity-row { border-top: 1px solid var(--np-sec-border, rgba(255,255,255,.06)); }
.np-sec-activity-icon { font-size: 20px; min-width: 22px; text-align: center; }
.np-sec-activity-text { flex: 1; min-width: 0; }
.np-sec-activity-actor { display: block; font-size: 13px; }
.np-sec-activity-label { display: block; font-size: 12px; opacity: .75; }
.np-sec-activity-time { font-size: 11px; opacity: .6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.np-sec-activity-empty { padding: 24px 16px; text-align: center; opacity: .6; }

/* Eintrag der gerade reingekommen ist */
.np-sec-activity-new {
	animation: np-sec-activity-slide-in .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes np-sec-activity-slide-in {
	from {
		transform: translateX(-20px);
		opacity: 0;
		background: color-mix(in srgb, var(--np-sec-actor, #1f6feb) 30%, transparent);
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Live-Dot Pulse */
.np-sec-live-dot {
	display: inline-block;
	width: 8px; height: 8px;
	background: #39d353;
	border-radius: 50%;
	margin-left: 4px;
	box-shadow: 0 0 0 0 rgba(57, 211, 83, .7);
	animation: np-sec-live-pulse 1.8s ease-out infinite;
}
@keyframes np-sec-live-pulse {
	0%   { box-shadow: 0 0 0 0   rgba(57, 211, 83, .65); }
	70%  { box-shadow: 0 0 0 10px rgba(57, 211, 83, 0); }
	100% { box-shadow: 0 0 0 0   rgba(57, 211, 83, 0); }
}

/* Push-Toggle-Button bekommt is-on State */
.np-sec-push-toggle[aria-pressed="true"] {
	background: var(--np-sec-success, #39d353) !important;
	color: #fff !important;
}

/* ===== Phase 14: Story-Arc ===== */
.np-sec-arc {
	padding: 18px 22px;
}
.np-sec-arc-head { margin-bottom: 18px; }
.np-sec-arc-title { margin: 0 0 6px; font-size: 22px; }
.np-sec-arc-synopsis { opacity: .85; line-height: 1.5; margin: 0 0 10px; }
.np-sec-arc-progress { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.np-sec-arc-pip {
	width: 14px; height: 14px;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	border: 2px solid rgba(255,255,255,.2);
	transition: transform .3s ease, background .3s ease;
}
.np-sec-arc-pip.is-done {
	background: var(--np-sec-accent, #6a5acd);
	border-color: var(--np-sec-accent, #6a5acd);
	transform: scale(1.1);
	box-shadow: 0 0 8px rgba(106,90,205,.5);
}
.np-sec-arc-progress small { margin-left: 8px; opacity: .65; font-variant-numeric: tabular-nums; }

.np-sec-arc-chapters { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.np-sec-arc-chapter {
	padding: 16px 20px;
	border-left: 4px solid var(--np-sec-border, rgba(255,255,255,.1));
	background: rgba(255,255,255,.02);
	border-radius: 0 8px 8px 0;
	animation: np-sec-chapter-reveal .55s cubic-bezier(.2,.7,.2,1);
}
.np-sec-arc-chapter.is-latest {
	border-left-color: var(--np-sec-accent, #6a5acd);
	background: linear-gradient(135deg, rgba(106,90,205,.08), transparent 60%);
	box-shadow: -2px 0 20px -10px rgba(106,90,205,.7);
}
@keyframes np-sec-chapter-reveal {
	from { opacity: 0; transform: translateX(-10px); }
	to   { opacity: 1; transform: translateX(0); }
}
.np-sec-arc-chapter header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.np-sec-arc-chapter-num { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .65; padding: 2px 8px; background: rgba(255,255,255,.05); border-radius: 10px; }
.np-sec-arc-chapter header h4 { margin: 0; flex: 1; font-size: 17px; }
.np-sec-arc-chapter header time { font-size: 11px; opacity: .55; font-variant-numeric: tabular-nums; }
.np-sec-arc-chapter-body { line-height: 1.6; opacity: .92; }
.np-sec-arc-cliffhanger {
	margin: 12px 0 0;
	padding: 10px 14px;
	background: linear-gradient(90deg, rgba(248,81,73,.12), transparent 70%);
	border-left: 3px solid var(--np-sec-danger, #f85149);
	font-style: italic;
	animation: np-sec-cliffhanger-pulse 2.4s ease-in-out infinite;
}
@keyframes np-sec-cliffhanger-pulse {
	0%,100% { box-shadow: 0 0 0 0 rgba(248,81,73,0); }
	50%     { box-shadow: -4px 0 12px -4px rgba(248,81,73,.4); }
}
.np-sec-arc-cliffhanger-label { display: inline-block; font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; margin-right: 6px; color: var(--np-sec-danger, #f85149); }

/* ===== Phase 14: Lore-Wiki ===== */
.np-sec-lore-form-wrap { margin: 16px 18px; padding: 12px 16px; border: 1px solid var(--np-sec-border, rgba(255,255,255,.08)); border-radius: 8px; }
.np-sec-lore-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.np-sec-lore-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; opacity: .85; }
.np-sec-lore-form input, .np-sec-lore-form textarea {
	background: var(--np-sec-input, rgba(0,0,0,.3));
	color: inherit;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.12));
	border-radius: 6px;
	padding: 8px 10px;
	font-family: inherit;
}

.np-sec-lore-list { list-style: none; padding: 0 18px 24px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.np-sec-lore-entry {
	padding: 16px 20px;
	background: rgba(255,255,255,.02);
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	border-radius: 8px;
}
.np-sec-lore-entry header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.np-sec-lore-scope { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: var(--np-sec-accent, #6a5acd); color: #fff; letter-spacing: .08em; }
.np-sec-lore-entry header h3 { margin: 0; flex: 1; font-size: 17px; }
.np-sec-lore-entry header small { opacity: .6; font-size: 11px; }
.np-sec-lore-body { line-height: 1.5; opacity: .9; }

.np-sec-notice { padding: 10px 16px; margin: 12px 18px; border-radius: 6px; font-size: 13px; }
.np-sec-notice-success { background: rgba(57,211,83,.14); border-left: 3px solid var(--np-sec-success, #39d353); }

/* ===== Phase 14: Season-Voting ===== */
.np-sec-poll {
	padding: 18px 20px;
	margin: 12px 18px;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	border-radius: 10px;
	background: rgba(255,255,255,.02);
}
.np-sec-poll-question { margin: 0 0 6px; font-size: 17px; }
.np-sec-poll-closes { display: block; opacity: .6; margin-bottom: 12px; }
.np-sec-poll-form { display: flex; flex-direction: column; gap: 10px; }
.np-sec-poll-options { display: flex; flex-direction: column; gap: 8px; }
.np-sec-poll-option {
	display: grid;
	grid-template-columns: 24px 1fr auto auto;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	border-radius: 8px;
	background: linear-gradient(90deg, rgba(106,90,205,.18) var(--np-sec-poll-pct, 0%), transparent var(--np-sec-poll-pct, 0%));
	cursor: pointer;
	transition: transform .15s ease, border-color .15s ease;
	user-select: none;
	position: relative;
	overflow: hidden;
}
.np-sec-poll-option:hover { transform: translateY(-1px); border-color: var(--np-sec-accent, #6a5acd); }
.np-sec-poll-option.is-mine {
	border-color: var(--np-sec-accent, #6a5acd);
	box-shadow: 0 0 0 2px rgba(106,90,205,.4);
}
.np-sec-poll-option-text { font-weight: 600; }
.np-sec-poll-option-pct { font-variant-numeric: tabular-nums; opacity: .85; min-width: 36px; text-align: right; }
.np-sec-poll-option-cnt { font-size: 11px; opacity: .55; min-width: 26px; text-align: right; }
.np-sec-poll-total { display: block; margin-top: 8px; opacity: .55; }
.np-sec-poll-login { font-size: 13px; opacity: .8; }

/* ===== Phase 16: Check-In + Rivalry ===== */
.np-sec-checkin-row {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
}
.np-sec-checkin-btn { display: inline-flex; align-items: center; gap: 8px; }
.np-sec-streak-badge {
	display: inline-block;
	padding: 2px 8px;
	background: rgba(255,255,255,.18);
	border-radius: 10px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	animation: np-sec-streak-glow 1.8s ease-in-out infinite;
}
@keyframes np-sec-streak-glow {
	0%,100% { box-shadow: 0 0 0 0 rgba(248,165,73,0); }
	50%     { box-shadow: 0 0 0 5px rgba(248,165,73,.45); }
}

.np-sec-rivalry-row {
	margin-top: 14px;
	padding: 10px 12px;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.08));
	border-radius: 8px;
	background: rgba(248,81,73,.05);
}
.np-sec-rivalry-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.np-sec-rivalry-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	padding: 4px 6px;
	border-radius: 4px;
}
.np-sec-rivalry-list li strong { flex: 1; }
.np-sec-rivalry-balance { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .8; }
.np-sec-rivalry-list li.is-winning { background: rgba(57,211,83,.08); }
.np-sec-rivalry-list li.is-winning .np-sec-rivalry-balance { color: var(--np-sec-success, #39d353); }
.np-sec-rivalry-list li.is-losing  { background: rgba(248,81,73,.08); }
.np-sec-rivalry-list li.is-losing  .np-sec-rivalry-balance { color: var(--np-sec-danger, #f85149); }

/* ===== Phase V1.5: Anonymes Quiz-Ergebnis (Buzzfeed-Pattern) ===== */
.np-sec-quiz-result-anonymous {
	margin: 12px 0;
	padding: 24px;
	border-radius: 14px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--np-sec-faction, #6a5acd) 22%, transparent), transparent 70%);
	border: 1px solid color-mix(in srgb, var(--np-sec-faction, #6a5acd) 35%, transparent);
	box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--np-sec-faction, #6a5acd) 50%, transparent);
	animation: np-sec-quiz-reveal .55s cubic-bezier(.2,.7,.2,1);
}
@keyframes np-sec-quiz-reveal {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.np-sec-quiz-result-anonymous .np-sec-quiz-result-head {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 12px;
}
.np-sec-quiz-result-anonymous .np-sec-quiz-result-icon {
	font-size: 42px;
	line-height: 1;
	animation: np-sec-quiz-icon-pulse 2.4s ease-in-out infinite;
}
@keyframes np-sec-quiz-icon-pulse {
	0%,100% { transform: scale(1); }
	50%     { transform: scale(1.08); }
}
.np-sec-quiz-result-anonymous .np-sec-quiz-result-eyebrow {
	display: block;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .8;
	margin-bottom: 4px;
}
.np-sec-quiz-result-anonymous h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
}
.np-sec-quiz-result-anonymous h3 span {
	color: var(--np-sec-faction, #6a5acd);
}

.np-sec-quiz-result-anonymous .np-sec-quiz-result-lore {
	margin: 0 0 16px;
	font-style: italic;
	opacity: .9;
	line-height: 1.5;
	padding: 10px 14px;
	background: rgba(0,0,0,.18);
	border-left: 3px solid var(--np-sec-faction, #6a5acd);
	border-radius: 0 6px 6px 0;
}

.np-sec-quiz-result-cta { margin-top: 14px; }
.np-sec-quiz-cta-line { margin: 0 0 14px; line-height: 1.5; }
.np-sec-quiz-cta-line small { opacity: .7; }
.np-sec-quiz-cta-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.np-sec-quiz-cta-buttons .button-hero {
	background: var(--np-sec-faction, #6a5acd) !important;
	color: #fff !important;
	border-color: var(--np-sec-faction, #6a5acd) !important;
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--np-sec-faction, #6a5acd) 70%, transparent);
}
.np-sec-quiz-cta-meta { margin: 12px 0 0; font-size: 13px; opacity: .7; }
.np-sec-quiz-cta-retry { text-decoration: none; }
.np-sec-quiz-cta-retry:hover { text-decoration: underline; }

/* ===== Welcome-Back-Banner nach Login mit gespeicherter Empfehlung ===== */
.np-sec-quiz-restored-banner {
	margin-bottom: 14px;
	padding: 10px 16px;
	background: linear-gradient(90deg, rgba(106,90,205,.15), transparent 80%);
	border: 1px solid rgba(106,90,205,.4);
	border-radius: 8px;
	font-size: 13px;
	animation: np-sec-banner-slide .35s ease-out;
}
@keyframes np-sec-banner-slide {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.np-sec-quiz-restored-banner .button-link {
	color: inherit;
	opacity: .7;
	background: none;
	border: none;
	padding: 0;
	margin-left: 8px;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
}

/* Faction-Choice mit Quiz-Highlight bekommt Glow */
.np-sec-faction-choice.is-from-quiz {
	box-shadow: 0 0 0 2px var(--np-sec-faction, #6a5acd), 0 8px 22px -10px var(--np-sec-faction, #6a5acd);
	animation: np-sec-quiz-glow 2.4s ease-in-out infinite;
}
@keyframes np-sec-quiz-glow {
	0%,100% { box-shadow: 0 0 0 2px var(--np-sec-faction, #6a5acd), 0 6px 16px -10px var(--np-sec-faction, #6a5acd); }
	50%     { box-shadow: 0 0 0 3px var(--np-sec-faction, #6a5acd), 0 12px 30px -8px var(--np-sec-faction, #6a5acd); }
}

/* V1.10.7: Cleaner Karten-Look für City-Mode ohne Background-Bild */
.np-sec-map-polygon:not(.has-bg) {
	background:
		radial-gradient( ellipse at center, rgba(255,255,255,.04), transparent 70% ),
		repeating-linear-gradient( 0deg, transparent, transparent 60px, rgba(255,255,255,.02) 61px, rgba(255,255,255,.02) 62px ),
		repeating-linear-gradient( 90deg, transparent, transparent 60px, rgba(255,255,255,.02) 61px, rgba(255,255,255,.02) 62px );
	border-radius: 12px;
}

/* V1.11.1: Hex-Mode mit Background-Bild — Hexes halbtransparent darüber */
.np-sec-stage:has(.np-sec-stage-bg) .np-sec-fmap-hex.is-claimed polygon {
	fill-opacity: 0.65;
	stroke-width: 2.5px !important;
	stroke: rgba(0,0,0,.8);
}
.np-sec-stage:has(.np-sec-stage-bg) .np-sec-fmap-hex.is-claimed:hover polygon {
	fill-opacity: 0.88;
}
.np-sec-stage:has(.np-sec-stage-bg) .np-sec-fmap-label {
	/* V1.16: kleiner + besseres Kontrast-Padding, damit Hex-Label nicht mit Pergament-Stadtteil-Namen kollidiert */
	text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.8) !important;
	font-weight: 700 !important;
	font-size: 10px !important;
	paint-order: stroke;
	stroke: rgba(0,0,0,.85);
	stroke-width: 3px;
	stroke-linejoin: round;
}
/* V1.15: Leere Hexes als eroberbare Niemandsland-Felder sichtbar machen,
   auch wenn ein Background-Bild als Stadt-Karte vorliegt. */
.np-sec-stage:has(.np-sec-stage-bg) .np-sec-fmap-hex.is-empty polygon {
	fill: rgba( 255, 255, 255, .04 );
	stroke: rgba( 255, 255, 255, .25 ) !important;
	stroke-dasharray: 4 4;
	stroke-width: 1.5px !important;
}
.np-sec-stage:has(.np-sec-stage-bg) .np-sec-fmap-hex.is-empty:hover polygon {
	fill: rgba( 253, 224, 71, .15 );
	stroke: rgba( 253, 224, 71, .8 ) !important;
	stroke-dasharray: none;
	stroke-width: 2px !important;
}
/* Ghost-Slot: Original-Position eines verschobenen Hex */
.np-sec-stage:has(.np-sec-stage-bg) .np-sec-fmap-hex.is-ghost polygon {
	fill: rgba( 251, 113, 133, .06 );
	stroke: rgba( 251, 113, 133, .35 ) !important;
	stroke-dasharray: 2 3;
	stroke-width: 1.5px !important;
}
.np-sec-stage:has(.np-sec-stage-bg) .np-sec-fmap-hex.is-ghost:hover polygon {
	fill: rgba( 251, 113, 133, .2 );
	stroke: rgba( 251, 113, 133, .9 ) !important;
}
/* Ohne Background-Bild: leere Hexes dezent als Grid sichtbar */
.np-sec-stage:not(:has(.np-sec-stage-bg)) .np-sec-fmap-hex.is-empty polygon {
	fill-opacity: 0;
	stroke: rgba(255,255,255,.12) !important;
	stroke-dasharray: 3 4;
	stroke-width: 1px !important;
}

/* V1.11/V1.15: Map-Editor mit Background-Image — leere Hexes als Hex-Raster sichtbar */
.np-sec-canvas .np-sec-hex--filled .np-sec-hex-shape { fill-opacity: 0.7; }
.np-sec-canvas img + svg .np-sec-hex--empty .np-sec-hex-shape {
	fill: rgba( 255, 255, 255, .05 );
	stroke: rgba( 255, 255, 255, .25 );
	stroke-dasharray: 4 4;
	stroke-width: 1.5;
}
.np-sec-canvas img + svg .np-sec-hex--empty:hover .np-sec-hex-shape {
	fill: rgba( 253, 224, 71, .15 );
	stroke: rgba( 253, 224, 71, .8 );
	stroke-dasharray: none;
}
/* Ghost-Hex an Original-Position eines verschobenen Sektors */
.np-sec-canvas .np-sec-hex--ghost .np-sec-hex-shape {
	fill: rgba( 251, 113, 133, .07 );
	stroke: rgba( 251, 113, 133, .45 ) !important;
	stroke-dasharray: 2 3 !important;
}
.np-sec-canvas .np-sec-hex--ghost:hover .np-sec-hex-shape {
	fill: rgba( 251, 113, 133, .22 );
	stroke: rgba( 251, 113, 133, .9 ) !important;
}

/* V1.10.3: Polygon-Map mit Background-Bild — Polygone werden halbtransparent */
.np-sec-map-polygon.has-bg .np-sec-fmap-poly polygon:first-child {
	fill-opacity: 0.45;
	stroke-width: 2.5px !important;
	stroke: rgba(0,0,0,.6);
	mix-blend-mode: multiply;
}
.np-sec-map-polygon.has-bg .np-sec-fmap-poly:hover polygon:first-child {
	fill-opacity: 0.7;
}
.np-sec-map-polygon.has-bg .np-sec-fmap-label {
	text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.7) !important;
	font-weight: 700 !important;
}

/* V1.10: Adjacency-Hover-Highlighting (City-Mode) */
.np-sec-map-polygon .np-sec-fmap-poly {
	transition: filter .2s ease, opacity .2s ease;
	cursor: pointer;
}
.np-sec-map-polygon .np-sec-fmap-poly:hover polygon:first-child {
	filter: brightness(1.18) saturate(1.25);
}
.np-sec-map-polygon .np-sec-fmap-poly.is-source polygon:first-child {
	filter: brightness(1.25) drop-shadow(0 0 12px rgba(255,255,255,.5));
	stroke: #fff !important;
	stroke-width: 2.5px !important;
}
.np-sec-map-polygon .np-sec-fmap-poly.is-neighbor polygon:first-child {
	animation: np-sec-neighbor-pulse 1.6s ease-in-out infinite;
	stroke: #ffd166 !important;
	stroke-width: 2px !important;
}
@keyframes np-sec-neighbor-pulse {
	0%,100% { filter: brightness(1.05); }
	50%     { filter: brightness(1.3) drop-shadow(0 0 8px rgba(255,209,102,.7)); }
}

/* OSM-Tile-Hintergrund-Layer */
.np-sec-osm-tiles-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: overlay;
	border-radius: inherit;
}

/* Polygon-Editor Admin */
[data-np-sec-polygon-editor] svg {
	cursor: crosshair;
	background: #f6f7f7;
	border-radius: 8px;
	max-width: 100%;
	height: auto;
}
[data-np-sec-polygon-editor] svg polygon {
	cursor: crosshair;
}
.editor-vertex:hover {
	r: 9 !important;
	filter: drop-shadow(0 0 4px rgba(255,255,255,.8));
}

/* V1.9: Status-Badges für pending_approval + rejected */
.np-sec-battle-status.is-pending-approval {
	background: linear-gradient(135deg, rgba(255, 193, 7, .25), rgba(255, 193, 7, .1));
	color: #ffc107;
	border: 1px solid rgba(255, 193, 7, .4);
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	animation: np-sec-pending-pulse 2.4s ease-in-out infinite;
}
@keyframes np-sec-pending-pulse {
	0%,100% { box-shadow: 0 0 0 0 rgba(255,193,7,.4); }
	50%     { box-shadow: 0 0 0 5px rgba(255,193,7,0); }
}
.np-sec-battle.is-waiting-approval {
	background: linear-gradient(90deg, rgba(255, 193, 7, .06), transparent 70%);
	border-left: 4px solid rgba(255, 193, 7, .6);
}
.np-sec-battle-status.is-rejected {
	background: rgba(248,81,73,.18);
	color: #f85149;
	border: 1px solid rgba(248,81,73,.4);
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
}
.np-sec-battle.is-rejected {
	opacity: .55;
	background: rgba(248,81,73,.04);
}

/* Replay-Button im Map-Header */
.np-sec-replay-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border: 1px solid var(--np-sec-border, rgba(255,255,255,.15));
	background: transparent;
	color: inherit;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	transition: background .15s ease, transform .15s ease;
}
.np-sec-replay-btn:hover {
	background: var(--np-sec-accent, #6a5acd);
	color: #fff;
	transform: translateY(-1px);
}
