:root {
	--bg: #0f1117;
	--bg-raised: #141720;
	--bg-card: #191d28;
	--bg-card-hover: #1f2432;
	--bg-input: #11141c;
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.14);
	--text: #e8ecf4;
	--text-dim: #9aa3b4;
	--text-faint: #7c8598;
	--accent: #e62429;
	--accent-soft: rgba(230, 36, 41, 0.14);
	--gold: #f0b429;
	--gold-soft: rgba(240, 180, 41, 0.14);
	--display: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Medium", sans-serif;
	--ok: #22c55e;
	--warn: #f59e0b;
	--danger: #ef4444;
	--info: #38bdf8;
	--hot: #f97316;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
	--font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
	--mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
	margin: 0;
	height: 100%;
	background: var(--bg);
	color: var(--text);
	font: 14px/1.5 var(--font);
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--info); }

/* ---------- Auth / Login ---------- */

.auth-user {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
}

.auth-user-name {
	font-weight: 600;
	font-size: 13px;
}

.login-shell {
	max-width: 420px;
	margin: 48px auto;
}

.login-shell .card-head h2 {
	font-size: 20px;
}

.login-error {
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	background: rgba(255, 90, 95, 0.12);
	border: 1px solid rgba(255, 90, 95, 0.4);
	color: var(--danger);
	margin-bottom: 12px;
	font-size: 13px;
}


.app {
	display: grid;
	grid-template-columns: 232px 1fr;
	grid-template-rows: 60px 1fr;
	grid-template-areas: "brand topbar" "nav main";
	height: 100vh;
}

.brand {
	grid-area: brand;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 18px;
	background: var(--bg-raised);
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	font-family: var(--display);
	font-size: 26px;
	letter-spacing: 1px;
}

.brand-logo {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--accent);
	color: #fff;
	font-size: 20px;
}

.topbar {
	grid-area: topbar;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 20px;
	background: var(--bg-raised);
	border-bottom: 1px solid var(--border);
}

.topbar h1 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player-picker {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-dim);
}

.player-picker select { min-width: 220px; }

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--text-faint);
	flex: none;
}
.status-dot.online { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-dot.offline { background: var(--danger); }

.nav {
	grid-area: nav;
	background: var(--bg-raised);
	border-right: 1px solid var(--border);
	padding: 12px 10px;
	overflow-y: auto;
}

.nav-section {
	margin: 14px 10px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-dim);
	text-decoration: none;
	cursor: pointer;
}
.nav a:hover { background: var(--bg-card); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav-icon { width: 18px; text-align: center; }

.main {
	grid-area: main;
	overflow-y: auto;
	padding: 22px;
}

/* ---------- Cards & grid ---------- */

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid + .grid, .grid + .card, .card + .grid, .card + .card { margin-top: 18px; }

.card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%), var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px 22px;
	min-width: 0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
	transition: border-color 0.15s;
}
.card.span-all { grid-column: 1 / -1; }

.card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; flex: 1; }
.card-sub { color: #c8cdd8; font-size: 14.5px; line-height: 1.65; margin: 0 0 12px; }
.hl-num { color: var(--gold); font-weight: 600; }
.vitrine-wrap { max-width: 1360px; margin: 0 auto; }

.stat {
	background: linear-gradient(180deg, rgba(240, 180, 41, 0.05), transparent 55%), var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 15px 18px;
}
.stat-label { color: var(--text-dim); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-hint { color: var(--text-faint); font-size: 12px; margin-top: 2px; }

.section-title { margin: 28px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.section-title:first-child { margin-top: 0; }

/* ---------- Controls ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--bg-raised);
	cursor: pointer;
	white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--text-faint); background: #20232b; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #f33a3f; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.icon { padding: 6px 9px; }

input[type=text], input[type=number], input[type=password], input[type=search], select, textarea {
	background: var(--bg-input);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	padding: 7px 10px;
	outline: none;
	min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=number] { width: 90px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row + .row { margin-top: 10px; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .label { color: var(--text-dim); font-size: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch { position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; } /* kept focusable for the keyboard */
.switch-track {
	position: relative;
	width: 40px;
	height: 22px;
	border-radius: 11px;
	background: var(--border-strong);
	transition: background 0.15s;
	flex: none;
}
.switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:disabled + .switch-track { opacity: 0.4; }

.segmented {
	display: inline-flex;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.segmented button {
	padding: 7px 14px;
	border: none;
	border-right: 1px solid var(--border-strong);
	background: var(--bg-input);
	color: var(--text-dim);
	cursor: pointer;
}
.segmented button:last-child { border-right: none; }
.segmented button.active { background: var(--accent); color: #fff; }

/* ---------- Data display ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--bg-raised); color: var(--text-dim); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
tbody tr:hover td { background: rgba(255, 255, 255, 0.045); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; }
.scroll-y { max-height: 460px; overflow-y: auto; }

.badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: var(--border);
	color: var(--text-dim);
}
.badge.ok { background: rgba(62, 207, 142, 0.15); color: var(--ok); }
.badge.warn { background: rgba(245, 165, 36, 0.15); color: var(--warn); }
.badge.danger { background: rgba(255, 90, 95, 0.15); color: var(--danger); }
.badge.info { background: rgba(78, 168, 255, 0.15); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

.bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--ok); }
.bar.low > span { background: var(--danger); }
.bar.mid > span { background: var(--warn); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.list li:last-child { border-bottom: none; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.empty { padding: 22px; text-align: center; color: var(--text-faint); }
.hint { color: var(--text-dim); font-size: 12px; margin-top: 8px; }
.hint.warn { color: var(--warn); }

.rarity-0 { color: #b8b8b8; } .rarity-1 { color: #ffffff; } .rarity-2 { color: #3ecf8e; } .rarity-3 { color: #4ea8ff; }
.rarity-4 { color: #c77dff; } .rarity-5 { color: #f5a524; } .rarity-6 { color: #ff7a45; } .rarity-7 { color: #e62429; }

.console-out, .log-out {
	background: #090a0d;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	font-family: var(--mono);
	font-size: 12.5px;
	white-space: pre-wrap;
	word-break: break-word;
	overflow-y: auto;
}
.console-out { height: 380px; }
.log-out { height: 560px; }
.console-cmd { color: var(--info); }
.console-err, .log-error { color: var(--danger); }
.log-warn { color: var(--warn); }
.log-debug, .log-trace { color: var(--text-faint); }

/* ---------- Toasts & overlays ---------- */

.toasts {
	position: fixed;
	right: 20px;
	bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 100;
	max-width: min(420px, calc(100vw - 40px));
}
.toast {
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-left: 4px solid var(--info);
	box-shadow: var(--shadow);
	animation: toast-in 0.18s ease-out;
	word-break: break-word;
}
.toast.ok { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid var(--border-strong);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.notice {
	padding: 14px 16px;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius);
	color: var(--text-dim);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.app {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto 1fr;
		grid-template-areas: "brand" "topbar" "nav" "main";
		height: auto;
		min-height: 100vh;
	}
	.brand { border-right: none; height: 54px; }
	.topbar { flex-wrap: wrap; padding: 10px 16px; height: auto; }
	.player-picker select { min-width: 0; flex: 1; }
	.player-picker { flex: 1 1 100%; }
	.nav { display: flex; overflow-x: auto; padding: 8px; gap: 4px; border-right: none; border-bottom: 1px solid var(--border); }
	.nav-section { display: none; }
	.nav a { white-space: nowrap; }
	.nav a.active { box-shadow: inset 0 -3px 0 var(--accent); }
	.main { padding: 16px; overflow: visible; }
	.grid, .grid.wide { grid-template-columns: 1fr; }
}

/* ---------- Vitrine (public pages) ---------- */

.hero-banner {
	position: relative;
	overflow: hidden;
	margin-bottom: 22px;
	padding: 30px 32px 26px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: linear-gradient(120deg, rgba(230, 36, 41, 0.32), rgba(13, 14, 18, 0.2) 55%), var(--bg-raised);
	box-shadow: inset 4px 0 0 var(--accent), 0 8px 28px rgba(0, 0, 0, 0.25);
}
.hero-kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-title { margin: 6px 0 8px; font: 44px/1.05 var(--display); letter-spacing: 0.04em; }
.hero-text { margin: 0; max-width: 780px; font-size: 15px; line-height: 1.65; color: #cfd5e0; }
.countdown { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.public-mode .player-picker label, .public-mode .player-picker select, .public-mode #players-refresh { display: none; }

@media (max-width: 900px) {
	/* minmax(0, …): a long player name in the picker must not widen the whole page */
	.app { grid-template-columns: minmax(0, 1fr); }
	.player-picker select { width: 100%; }
	.segmented { flex-wrap: wrap; }
	.hero-banner { padding: 18px 16px; }
	.hero-title { font-size: 34px; }
}

/* ---------- Marvel theme: red, black, gold ---------- */

body { background: radial-gradient(1200px 500px at 100% -10%, rgba(230, 36, 41, 0.10), transparent 60%), var(--bg); }
.brand { border-bottom: 2px solid var(--accent); }
.brand-logo { box-shadow: 0 0 0 2px var(--gold) inset; }
.nav-section { color: var(--gold); opacity: 0.8; }
.card-head h2 { border-left: 3px solid var(--accent); padding-left: 8px; }
.stat { border-top: 2px solid var(--gold-soft); }
.hero-banner { border-bottom: 2px solid var(--gold); }
.hero-title { color: #fff; text-shadow: 2px 2px 0 var(--accent); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
code.cmd { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--bg-input); border: 1px solid var(--border-strong); color: var(--gold); }
button.cmd-copy { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: var(--radius-sm); background: var(--bg-input); border: 1px solid var(--border-strong); color: var(--gold); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color 0.15s, background 0.15s; }
button.cmd-copy:hover { border-color: var(--gold); background: var(--gold-soft); }
.feature-card { transition: border-color 0.15s, transform 0.15s; display: flex; flex-direction: column; height: 100%; }
.feature-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.feature-card .card-head h2 a { color: var(--text); text-decoration: none; }
.feature-card .card-head h2 a:hover { color: var(--gold); }
.feature-card.spotlight { border-top: 2px solid var(--gold); background: linear-gradient(180deg, rgba(240, 180, 41, 0.06), transparent 60%), var(--bg-card); }
.feature-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--text-faint); font-size: 12px; margin-top: auto; padding-top: 8px; }
.quickstart-box { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 18px; margin: 14px 0; }
.quickstart-box h3 { margin: 0 0 6px; font-size: 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.toc-groups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.toc-group-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin: 0 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-head .section-title { margin: 0; }
.back-top { font-size: 12px; color: var(--text-faint); text-decoration: none; }
.back-top:hover { color: var(--gold); }
.news li { align-items: flex-start; }
.news-date { min-width: 130px; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
@media (max-width: 600px) { .news li { flex-direction: column; gap: 2px; } }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
a.btn.primary { color: #fff; }

/* ---------- Héros (gallery) ---------- */
.hero-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.hero-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; text-align: center;
	background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.hero-tile img, .hero-initials { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg-input); object-fit: cover; }
.hero-initials { display: flex; align-items: center; justify-content: center; font: 22px var(--display); color: var(--text-dim); }
.hero-tile.spot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-soft) inset; }
.hero-tile.spot img, .hero-tile.spot .hero-initials { border-color: var(--gold); }
.hero-name { font-weight: 600; font-size: 13px; line-height: 1.25; }

/* Accessibility: visible keyboard focus, skip link, reduced motion */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--gold); color: #000; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* ---------- Grille Omega (visuels 1.48) ---------- */
.omega-layout {
	display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start;
}
.omega-side {
	display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start;
}
@media (min-width: 1480px) {
	.omega-layout { grid-template-columns: minmax(974px, 1fr) minmax(320px, 420px); }
	.omega-side { grid-template-columns: 1fr; }
}
.omega-board-wrap {
	position: relative; width: 100%; overflow: hidden;
}
.omega-board {
	position: relative; width: 938px; height: 505px; margin: 0 auto; transform-origin: top left;
	background: #000 url(omega/bg.jpg) no-repeat center center;
	border: 1px solid #08A1FF; border-radius: 4px; overflow: hidden;
	box-shadow: 0 0 28px rgba(8, 161, 255, 0.18); user-select: none;
}
.omega-board .omega_center {
	position: absolute; left: 425px; top: 8px; width: 500px; height: 500px; pointer-events: none;
	background-image: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(0,0,0,0) 50%), url(omega/shield_center.png);
	background-repeat: no-repeat; background-position: center;
}
.omega-board .omega_msg {
	position: absolute; top: 205px; left: 20px; width: 370px; text-align: center;
	font-size: 15px; line-height: 21px; color: #d6e4f0; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9);
}
.omega-board .omega_exp {
	position: absolute; left: 20px; top: 416px; font-size: 20px; font-weight: 700; line-height: 22px;
	color: #fff; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9);
}
.omega-board .omega_points_msg {
	position: absolute; left: 190px; top: 416px; width: 195px; text-align: right;
	font-size: 16px; line-height: 22px; color: #8ecfff; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9);
}
.omega-board .omega_reset {
	position: absolute; left: 20px; top: 455px; width: 224px; height: 36px;
	font-size: 13px; line-height: 36px; text-align: center; text-transform: uppercase;
	color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.8); cursor: pointer; border: none; padding: 0;
	background: url(omega/link_parent_selected.png) no-repeat center;
}
.omega-board .omega_reset:hover {
	background-image: url(omega/link_parent_hover.png), url(omega/link_parent_selected.png);
}
.omega-board .omega_but {
	position: absolute; width: 128px; height: 128px; border: none; padding: 0;
	background-color: transparent; background-repeat: no-repeat; background-position: center; cursor: pointer;
}
.omega-board .omega_but.locked { opacity: 0.35; cursor: not-allowed; }
.omega-board .omega_cost_but {
	display: none; width: 128px; height: 128px; line-height: 128px; text-align: center;
	font-size: 20px; font-weight: 700; color: #fff; text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}
.omega-board .omega_but.has_pts .omega_cost_but { display: block; }
.omega-board .omega_but_label {
	position: absolute; left: 4px; right: 4px; bottom: 8px; text-align: center;
	font-size: 10px; line-height: 1.1; color: #e4e6eb; text-shadow: 0 1px 3px #000, 0 0 4px #000;
	pointer-events: none; opacity: 0; transition: opacity 0.12s;
}
.omega-board .omega_but:hover .omega_but_label { opacity: 1; }
.omega-board .omega_prog {
	position: absolute; left: 0; top: 0; width: 390px; min-height: 110px; z-index: 3;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
	background: url(omega/title_shield_symbol.png) no-repeat 0 0;
}
.omega-board .omega_prog .o_prog { margin: 18px 0 0 80px; color: #2B9ED5; font-weight: 700; font-size: 12px; line-height: 15px; text-transform: uppercase; }
.omega-board .omega_prog .o_title { margin: 2px 0 0 80px; font-size: 21px; line-height: 24px; color: #fff; font-weight: 600; }
.omega-board .omega_prog .p_cost { margin: 2px 0 0 80px; font-size: 13px; font-weight: 700; color: #f0b429; }
.omega-board .omega_back {
	margin: 8px 0 0 20px; width: 164px; height: 28px; line-height: 26px; text-align: center;
	font-size: 12px; color: #fff; cursor: pointer; padding: 0;
	background: rgba(255, 255, 255, 0.12); box-shadow: inset #fff 0 0 6px;
	border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.65);
}
.omega-board .omega_back:hover { border-color: #08A1FF; background: rgba(8, 161, 255, 0.22); }
.omega-board .nav_arrow {
	position: absolute; top: 223px; width: 32px; height: 56px; z-index: 3; cursor: pointer;
	background: rgba(145, 51, 0, 0.72); border: 2px solid rgba(206, 91, 0, 0.9); border-radius: 4px;
	color: #ffd7b3; font-size: 20px; font-weight: 700; line-height: 50px; text-align: center; padding: 0;
}
.omega-board .nav_arrow:hover { background: rgba(190, 68, 0, 0.9); color: #fff; }
.omega-board .oprev { left: 18px; }
.omega-board .onext { right: 18px; }
.omega-board .omega_hex {
	position: absolute; width: 92px; height: 84px; border: none; padding: 0;
	background-color: transparent; background-repeat: no-repeat; background-position: center; cursor: pointer;
}
.omega-board .omega_hex.todo { opacity: 0.62; }
.omega-board .omega_hex .hex_overlay {
	width: 100%; height: 100%; background-repeat: no-repeat; background-position: center;
	background-image: url(omega/overlay_unavailable.png); position: relative;
}
.omega-board .omega_hex.open .hex_overlay { background-image: url(omega/overlay_00_generic_available.png); }
.omega-board .omega_hex .hex_points {
	display: none; width: 100%; height: 100%;
	background: url(omega/overlay_active.png) no-repeat center;
	text-align: center; line-height: 126px; font-size: 12px; font-weight: 700; color: #fff;
	text-shadow: 0 1px 2px #000, 0 0 4px #000;
}
.omega-board .omega_hex.owned .hex_points { display: block; }
.omega-board .omega_hex.sel { filter: drop-shadow(0 0 6px var(--gold)); }
.omega-board .omega_hex .hex_start {
	position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
	font-size: 10px; color: #f0b429; text-shadow: 0 1px 2px #000; pointer-events: none;
}

/* ---------- Calendrier mensuel & semainier ---------- */
.cal-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cal-aside { position: sticky; top: 18px; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-month-title { margin: 0; font-size: 20px; font-weight: 700; text-transform: capitalize; color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--text-dim); }
.cal-legend-item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: var(--bg-input); border: 1px solid var(--border); }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cal-dot.arc { background: var(--accent); }
.cal-dot.rotation { background: var(--info); }
.cal-dot.spotlight { background: var(--gold); }
.cal-dot.holiday { background: var(--warn); }
.cal-dot.daily { background: var(--text-dim); }
.cal-wrap { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 6px; min-width: 770px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); padding: 6px 4px; }
.cal-cell {
	display: flex; flex-direction: column; gap: 4px; min-height: 122px; padding: 8px;
	background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
	cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.cal-cell:hover { border-color: var(--border-strong); background: var(--bg-raised); transform: translateY(-1px); }
.cal-cell.outside { opacity: 0.35; }
.cal-cell.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cal-cell.selected { border-color: var(--gold); background: rgba(240, 180, 41, 0.09); box-shadow: 0 0 0 1px var(--gold) inset; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
.cal-day-num { font-weight: 700; font-size: 14px; color: #fff; }
.cal-cell.today .cal-day-num { color: var(--accent); }
.cal-pill {
	display: block; width: 100%; padding: 3px 6px; border-radius: 4px; font-size: 11.5px; line-height: 1.3; font-weight: 500;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	background: var(--border); color: var(--text);
}
.cal-pill.arc { background: var(--accent-soft); color: #ff9fa2; border-left: 3px solid var(--accent); }
.cal-pill.rotation { background: rgba(78, 168, 255, 0.16); color: #9ad1ff; border-left: 3px solid var(--info); }
.cal-pill.spotlight { background: var(--gold-soft); color: var(--gold); border-left: 3px solid var(--gold); }
.cal-pill.holiday, .cal-pill.monthly { background: rgba(245, 165, 36, 0.18); color: #ffc15e; border-left: 3px solid var(--warn); }
.cal-pill.daily { background: rgba(255, 255, 255, 0.06); color: #c8cdd8; border-left: 2px solid var(--border-strong); }
.cal-more { font-size: 11px; color: var(--text-faint); padding-left: 2px; margin-top: auto; }
.week-board { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.week-day {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%), var(--bg-card);
	border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.week-day.today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-soft) inset; }
.week-day-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.week-day-name { font-weight: 700; font-size: 15px; color: #fff; }
.week-day.today .week-day-name { color: var(--gold); }
.week-event { padding: 6px 8px; border-radius: 6px; background: var(--bg-input); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.45; }
.week-event strong { display: block; color: var(--text); margin-bottom: 2px; }
.week-event span { color: var(--text-dim); font-size: 12px; }

/* ---------- Sous-pages Ajouts (lecture 2 colonnes) ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail-main { min-width: 0; }
.detail-aside { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 16px; }
.doc-section {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%), var(--bg-card);
	border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 18px;
}
.doc-section-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.doc-item { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.doc-item:first-of-type { padding-top: 2px; }
.doc-item:last-child { border-bottom: none; padding-bottom: 0; }
.doc-item-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #fff; }
.doc-item-body { margin: 0; font-size: 15px; line-height: 1.7; color: #d0d5e0; }

/* ---------- Guide Endgame (layout chapitre par chapitre + tuto) ---------- */
.guide-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-nav { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.guide-tabs { display: flex; flex-direction: column; gap: 6px; }
.guide-tab {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left;
	background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
	cursor: pointer; color: var(--text-dim); transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.guide-tab:hover { border-color: var(--border-strong); color: var(--text); background: var(--bg-raised); }
.guide-tab.active { background: var(--accent-soft); border-color: var(--accent); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.guide-tab-num {
	flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
	font-size: 12px; font-weight: 700; background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--gold);
}
.guide-tab.active .guide-tab-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide-tab-title { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.guide-content { min-width: 0; }
.guide-chapter {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 50%), var(--bg-card);
	border: 1px solid var(--border); border-radius: 12px; padding: 24px 26px; margin-bottom: 20px;
}
.guide-chapter-head { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 18px; }
.guide-chapter-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 4px; }
.guide-chapter-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #fff; }
.guide-chapter-intro { margin: 0; font-size: 15px; line-height: 1.65; color: #d0d5e0; }
.tuto-timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 6px; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.tuto-timeline::before { content: ""; position: absolute; left: 19px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--accent-soft)); }
.tuto-timeline li { counter-increment: step; position: relative; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.65; color: #d6dbe5; }
.tuto-timeline li::before {
	content: counter(step); position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%;
	display: inline-grid; place-items: center; font-size: 13px; font-weight: 700;
	background: var(--bg-card); color: var(--gold); border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--bg-card);
}
.tuto-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.tuto-steps li { counter-increment: step; display: flex; gap: 10px; align-items: flex-start; color: #d0d5e0; font-size: 14.5px; line-height: 1.65; }
.tuto-steps li::before {
	content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%;
	display: inline-grid; place-items: center; font-size: 12px; font-weight: 700;
	background: var(--accent-soft); color: var(--gold); border: 1px solid var(--gold);
}
.check-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--bg-input); border: 1px solid var(--border); cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--text); }
.check-item:hover { border-color: var(--border-strong); }
.check-item input { margin-top: 4px; accent-color: var(--gold); }
.check-item.done { opacity: 0.65; text-decoration: line-through; color: var(--text-faint); }
.progress-wrap { height: 10px; border-radius: 999px; background: var(--bg-input); border: 1px solid var(--border); overflow: hidden; margin: 8px 0 4px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 0.2s; }
.guide-callout {
	display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-left: 4px solid var(--gold);
	margin: 16px 0; font-size: 14.5px; line-height: 1.65; color: #e2e6f0;
}
.guide-callout.warn { border-left-color: var(--accent); background: rgba(226, 54, 54, 0.07); }
.guide-callout.ok { border-left-color: var(--ok); background: rgba(62, 207, 142, 0.07); }
.guide-callout-icon { font-size: 18px; line-height: 1.3; flex: none; }
.guide-callout > div > strong:first-child { display: block; color: #fff; margin-bottom: 3px; font-size: 14.5px; }
.guide-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.guide-card-text { margin: 0; font-size: 14.5px; line-height: 1.65; color: #d6dbe5; }
.guide-bullets { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: #d6dbe5; }
.guide-bullets li::marker { color: var(--gold); }
.guide-block-title { margin: 20px 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gold); }

@media (max-width: 1080px) {
	.cal-split, .detail-layout, .guide-layout { grid-template-columns: 1fr; }
	.cal-aside, .detail-aside, .guide-nav { position: static; }
}

/* ---------- Dual interfaces: Vitrine (/) vs Dashboard (/Dashboard/) ---------- */
.site-header, .site-footer, .site-sidebar, .sidebar-backdrop { display: none; }

body.dashboard-site .site-header,
body.dashboard-site .site-footer,
body.dashboard-site .site-sidebar,
body.dashboard-site .sidebar-backdrop { display: none !important; }
body.dashboard-site .site-shell,
body.dashboard-site .site-content-col { display: contents; }

body.vitrine-site .brand,
body.vitrine-site .topbar,
body.vitrine-site .nav { display: none !important; }

body.vitrine-site .site-header,
body.vitrine-site .site-footer,
body.vitrine-site .site-sidebar { display: block; }

body.vitrine-site .app {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	height: auto;
	background:
		radial-gradient(900px 420px at 78% -60px, rgba(230, 36, 41, 0.08), transparent 70%),
		radial-gradient(700px 380px at 18% 10%, rgba(56, 189, 248, 0.05), transparent 65%),
		var(--bg);
}

/* Garmoth-style sticky topbar */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	height: 58px;
	background: rgba(18, 21, 30, 0.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}

.site-header-inner {
	max-width: 1680px;
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.site-menu-btn {
	display: none;
	font-size: 16px;
	padding: 6px 10px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	font-family: var(--display);
	font-size: 23px;
	letter-spacing: 0.8px;
	white-space: nowrap;
}

.site-search-wrap {
	flex: 1;
	max-width: 380px;
	display: flex;
	align-items: center;
}

.site-quick-search {
	width: 100%;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(15, 17, 23, 0.85);
	border: 1px solid var(--border-strong);
	font-size: 13px;
	color: var(--text);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.site-quick-search::placeholder { color: var(--text-faint); }
.site-quick-search:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.12);
}

/* Garmoth-style shell: persistent left sidebar + scrolling content column */
.site-shell {
	display: flex;
	flex: 1;
	max-width: 1680px;
	width: 100%;
	margin: 0 auto;
}

.site-sidebar {
	width: 244px;
	flex: none;
	position: sticky;
	top: 58px;
	height: calc(100vh - 58px);
	overflow-y: auto;
	padding: 16px 12px 24px;
	background: rgba(20, 23, 32, 0.72);
	border-right: 1px solid var(--border);
}

.site-content-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

body.vitrine-site .main {
	flex: 1;
	padding: 22px 28px 44px;
	overflow: visible;
}

.site-nav {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.site-nav-group {
	margin: 14px 10px 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--text-faint);
}
.site-nav-group:first-child { margin-top: 2px; }

.site-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 11px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 13.5px;
	color: var(--text-dim);
	text-decoration: none;
	transition: background 0.15s, color 0.15s, transform 0.12s;
	position: relative;
}

.site-nav a:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
}

.site-nav a.active {
	color: #fff;
	font-weight: 600;
	background: linear-gradient(90deg, rgba(230, 36, 41, 0.18), rgba(230, 36, 41, 0.04));
	box-shadow: inset 3px 0 0 var(--accent);
}

.site-nav-icon {
	width: 22px;
	height: 22px;
	display: inline-grid;
	place-items: center;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 13px;
	flex: none;
	color: var(--text-dim);
}
.site-nav a.active .site-nav-icon {
	background: rgba(230, 36, 41, 0.22);
	color: var(--gold);
}

.site-nav-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-nav-divider {
	height: 1px;
	background: var(--border);
	margin: 12px 8px;
}

/* Garmoth-style HOT / NEW / LIVE / Count pill tags */
.g-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 6px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.5;
	flex: none;
}
.g-pill.hot { background: rgba(249, 115, 22, 0.18); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.35); }
.g-pill.new { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.g-pill.live { background: rgba(34, 197, 94, 0.16); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35); }
.g-pill.gold { background: rgba(240, 180, 41, 0.16); color: var(--gold); border: 1px solid rgba(240, 180, 41, 0.35); }
.g-pill.count { background: rgba(255, 255, 255, 0.07); color: var(--text-dim); font-weight: 700; }

.site-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.site-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(15, 17, 23, 0.8);
	border: 1px solid var(--border-strong);
	font-size: 12px;
	color: var(--text-dim);
	white-space: nowrap;
}

.site-footer {
	border-top: 1px solid var(--border);
	background: rgba(20, 23, 32, 0.7);
	padding: 22px 28px;
	color: var(--text-dim);
	font-size: 13px;
}

.site-footer-inner {
	max-width: 1360px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.site-footer a {
	color: var(--text-dim);
	text-decoration: none;
	font-weight: 500;
}

.site-footer a:hover {
	color: var(--gold);
}

@media (max-width: 1024px) {
	.site-menu-btn { display: inline-flex; }
	.site-search-wrap { display: none; }
	.site-sidebar {
		position: fixed;
		left: 0;
		top: 58px;
		bottom: 0;
		height: auto;
		z-index: 70;
		background: #141720;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: 12px 0 36px rgba(0, 0, 0, 0.6);
	}
	body.sidebar-open .site-sidebar { transform: translateX(0); }
	body.sidebar-open .sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 58px 0 0 0;
		z-index: 65;
		background: rgba(0, 0, 0, 0.6);
		backdrop-filter: blur(2px);
	}
	body.vitrine-site .main { padding: 18px 16px 36px; }
}

@media (max-width: 640px) {
	.site-header-inner { padding: 0 12px; gap: 8px; }
	.site-status-pill { display: none; }
}

/* ---------- Simulateur de difficulté (S.H.I.E.L.D. Telemetry) ---------- */
.sim-shell {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sim-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.sim-meta-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sim-meta-pill {
	font-family: var(--mono);
	font-size: 11.5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-dim);
}
.sim-meta-pill strong { color: var(--text); font-weight: 600; }

.sim-kpi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.sim-kpi-card {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-left: 3px solid var(--border-strong);
	border-radius: var(--radius);
	padding: 13px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sim-kpi-card.tone-easy { border-left-color: var(--info); }
.sim-kpi-card.tone-ok { border-left-color: var(--ok); }
.sim-kpi-card.tone-warn { border-left-color: var(--warn); }
.sim-kpi-card.tone-hard { border-left-color: var(--danger); }

.sim-kpi-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dim);
	font-weight: 700;
}

.sim-kpi-val-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.sim-kpi-val {
	font-family: var(--mono);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.15;
}
.sim-kpi-val.c-easy { color: var(--info); }
.sim-kpi-val.c-ok { color: var(--ok); }
.sim-kpi-val.c-warn { color: var(--warn); }
.sim-kpi-val.c-hard { color: var(--danger); }

.sim-kpi-sub {
	font-size: 12px;
	color: var(--text-dim);
	line-height: 1.35;
}

.sim-controls-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 12px;
}

.sim-control-box {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sim-range-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.sim-range-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-dim);
}

.sim-range-val {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 600;
	color: var(--gold);
}

.sim-shell input[type="range"] {
	width: 100%;
	accent-color: var(--gold);
	cursor: pointer;
	margin: 2px 0;
}

.sim-range-ticks {
	display: flex;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--text-faint);
}

.sim-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sim-pill {
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-strong);
	background: var(--bg-raised);
	color: var(--text-dim);
	cursor: pointer;
	transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.sim-pill:hover { border-color: var(--text-faint); color: var(--text); }
.sim-pill.active {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: #fff;
}

.sim-actions-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* --- Divergent bar chart --- */
.sim-legend-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 12px;
}

.sim-legend-items {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
	color: var(--text-dim);
}

.sim-legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	margin-right: 5px;
	vertical-align: middle;
}

.sim-chart-groups {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sim-group-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--gold);
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 6px;
}

.sim-bar-row {
	display: grid;
	grid-template-columns: minmax(220px, 310px) 1fr 78px;
	align-items: center;
	gap: 12px;
	padding: 6px 8px;
	border-radius: var(--radius-sm);
	cursor: default;
	transition: background 0.12s;
}
.sim-bar-row:hover {
	background: rgba(255, 255, 255, 0.04);
}

.sim-bar-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sim-bar-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.sim-bar-note {
	font-size: 11.5px;
	color: var(--text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sim-subbadge {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--bg-raised);
	border: 1px solid var(--border-strong);
	color: var(--text-dim);
}
.sim-subbadge.raid { background: rgba(192, 132, 252, 0.14); border-color: rgba(192, 132, 252, 0.4); color: #d8b4fe; }
.sim-subbadge.maison { background: rgba(78, 168, 255, 0.14); border-color: rgba(78, 168, 255, 0.4); color: #9ad1ff; }
.sim-subbadge.tier6 { background: var(--accent-soft); border-color: var(--accent); color: #ff9fa2; }

.sim-bar-track {
	position: relative;
	height: 22px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow: hidden;
}

.sim-bar-gridlines {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sim-grid-tick {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(255, 255, 255, 0.06);
}

.sim-bar-zero {
	position: absolute;
	left: 33.3333%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: rgba(240, 180, 41, 0.65);
	z-index: 2;
}

.sim-bar-fill {
	position: absolute;
	top: 3px;
	bottom: 3px;
	border-radius: 3px;
	transition: left 0.2s ease, width 0.2s ease;
	z-index: 1;
}

.sim-tone-easy { background: linear-gradient(90deg, rgba(78, 168, 255, 0.85), rgba(62, 207, 142, 0.9)); }
.sim-tone-same { background: linear-gradient(90deg, #3ecf8e, #7dd3fc); }
.sim-tone-mid { background: linear-gradient(90deg, #f0b429, #fb923c); }
.sim-tone-hard { background: linear-gradient(90deg, #fb923c, #e62429); }

.sim-bar-val {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}
.sim-bar-val.easy { color: var(--info); }
.sim-bar-val.same { color: var(--ok); }
.sim-bar-val.mid { color: var(--warn); }
.sim-bar-val.hard { color: var(--danger); }

/* --- 2D Quadrant & Raid / Tier calibration --- */
.sim-diag-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 16px;
	align-items: start;
}

.sim-svg-wrap {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px;
}

.sim-svg-wrap svg {
	width: 100%;
	height: auto;
	display: block;
}

.sim-raid-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sim-raid-card {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sim-raid-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.sim-slider-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.sim-verdict {
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg-raised);
	font-size: 12.5px;
	line-height: 1.45;
}
.sim-verdict.ok { border-color: rgba(62, 207, 142, 0.45); background: rgba(62, 207, 142, 0.08); color: #b6f5d8; }
.sim-verdict.warn { border-color: rgba(245, 165, 36, 0.45); background: rgba(245, 165, 36, 0.08); color: #ffe0a3; }
.sim-verdict.danger { border-color: rgba(230, 36, 41, 0.5); background: rgba(230, 36, 41, 0.09); color: #ffb3b5; }

.sim-tier-input {
	width: 82px;
	font-family: var(--mono);
	font-size: 12px;
	padding: 4px 6px;
}

.sim-json-box {
	font-family: var(--mono);
	font-size: 11.5px;
	background: #090a0d;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	max-height: 240px;
	overflow: auto;
	white-space: pre;
	color: #d6e2f5;
	margin: 0;
}

/* --- Tab 3: Project variables & game modes --- */
.sim-modes-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.sim-stat-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 10px 0;
}

.sim-mini-stat {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 9px 11px;
}

.sim-mini-stat .k {
	font-size: 11px;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sim-mini-stat .v {
	font-family: var(--mono);
	font-size: 17px;
	font-weight: 700;
	color: var(--gold);
	margin-top: 2px;
}

.sim-mini-stat .s {
	font-size: 11.5px;
	color: var(--text-faint);
	margin-top: 2px;
}

.sim-formula-box {
	font-family: var(--mono);
	font-size: 11.5px;
	background: #090a0d;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 8px 10px;
	color: #9ad1ff;
	line-height: 1.5;
	overflow-x: auto;
}

.sim-buff-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sim-buff-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	background: var(--bg-input);
	border: 1px solid var(--border);
	font-size: 12px;
}

/* --- HUD Hover Tooltip --- */
.sim-tooltip {
	position: fixed;
	z-index: 9999;
	pointer-events: none;
	max-width: 390px;
	background: rgba(13, 14, 18, 0.97);
	border: 1px solid var(--gold);
	border-radius: var(--radius-sm);
	padding: 11px 13px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
	opacity: 0;
	transition: opacity 0.1s ease;
	font-size: 12px;
	color: var(--text);
}
.sim-tooltip.visible { opacity: 1; }
.sim-tooltip-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 6px;
	margin-bottom: 7px;
	font-weight: 700;
}
.sim-tooltip-desc {
	color: var(--text-dim);
	line-height: 1.45;
	margin-bottom: 8px;
}
.sim-tooltip-calc {
	font-family: var(--mono);
	font-size: 11.5px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 6px 8px;
	color: #9ad1ff;
}

@media (max-width: 1120px) {
	.sim-diag-grid, .sim-modes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.sim-kpi-grid, .sim-slider-pair, .sim-stat-pair { grid-template-columns: 1fr; }
	.sim-bar-row { grid-template-columns: 1fr; gap: 6px; }
	.sim-bar-val { text-align: left; }
}

/* ---------- Vitrine home page ---------- */

.hero-home { padding: 44px 36px 28px; background:
	radial-gradient(700px 300px at 85% 0%, rgba(240, 180, 41, 0.18), transparent 70%),
	linear-gradient(120deg, rgba(230, 36, 41, 0.45), rgba(13, 14, 18, 0.2) 60%), var(--bg-raised); }
.hero-home .hero-title { font-size: 76px; margin: 8px 0 10px; }
.hero-lead { margin: 0 0 10px; max-width: 760px; font-size: 21px; line-height: 1.4; color: var(--text); }
.hero-home .hero-text { font-size: 15.5px; max-width: 760px; }
.hero-cta { margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.btn.big { padding: 12px 22px; font-size: 15px; font-weight: 700; border-radius: var(--radius); }
.btn.primary.big { box-shadow: 0 4px 18px rgba(230, 36, 41, 0.45); }
.hero-live { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hero-live .grid.stats { gap: 10px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-bottom: 8px;
	background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 16px 12px; text-align: center; background: var(--bg-card); }
.fact-value { font: 34px/1 var(--display); letter-spacing: 0.03em; color: var(--gold); }
.fact-label { margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }

.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillar { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.pillar h3 { margin: 10px 0 6px; font-size: 17px; }
.pillar p { margin: 0; color: #c8cdd8; line-height: 1.6; }
.pillar-icon, .shortcut-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
	border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--gold); font-size: 20px; flex: none; }

.offer { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px; border: 1px solid var(--border);
	border-top: 2px solid var(--gold); border-radius: var(--radius); background: var(--bg-card); text-decoration: none; color: var(--text);
	height: 100%; transition: border-color 0.15s, transform 0.15s; }
.offer:hover { border-color: var(--gold); transform: translateY(-2px); }
.offer strong { font-size: 17px; }
.offer p { margin: 0; color: #c8cdd8; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.offer-more { margin-top: auto; color: var(--gold); font-weight: 600; font-size: 13px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step, .shortcut { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border);
	border-radius: var(--radius); background: var(--bg-card); text-decoration: none; color: var(--text); transition: border-color 0.15s; }
.step:hover, .shortcut:hover { border-color: var(--gold); }
.step p, .shortcut p { margin: 4px 0 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--accent); color: #fff; font: 22px/1 var(--display); flex: none; }
.shortcuts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 32px;
	padding: 24px 28px; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius);
	background: linear-gradient(120deg, rgba(230, 36, 41, 0.3), rgba(13, 14, 18, 0.2)), var(--bg-raised); }
.cta-band strong { font-size: 20px; }
.cta-band p { margin: 4px 0 0; color: var(--text-dim); }

@media (max-width: 900px) {
	.hero-home { padding: 26px 18px 20px; }
	.hero-home .hero-title { font-size: 48px; }
	.hero-lead { font-size: 18px; }
}

/* ---------- Fiches Héros (#heroes & #heroes/<name>) ---------- */
.hero-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 16px 0 18px;
}

.hero-card-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}

.hero-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}

.hero-card:hover {
	border-color: var(--gold);
	transform: translateY(-2px);
}

.hero-card.spot {
	border-color: rgba(242, 201, 76, 0.65);
	background: linear-gradient(155deg, rgba(242, 201, 76, 0.08), transparent 60%), var(--bg-card);
}

.hero-card-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hero-card-top img, .hero-card-top .hero-initials {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	flex: none;
	border: 1px solid var(--border);
}

.hero-card-name {
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.25;
}

.hero-card-sub {
	font-size: 12px;
	color: var(--text-dim);
	margin-top: 2px;
}

.hero-card-syn {
	font-size: 12.5px;
	color: var(--text-dim);
	line-height: 1.45;
}

.hero-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
}

.dmg-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border: 1px solid var(--border);
	background: var(--bg-raised);
	color: var(--text-dim);
}

.dmg-pill.physical { border-color: rgba(230, 82, 65, 0.55); color: #ff8e7a; background: rgba(230, 82, 65, 0.12); }
.dmg-pill.energy { border-color: rgba(77, 171, 247, 0.55); color: #8ecfff; background: rgba(77, 171, 247, 0.12); }
.dmg-pill.mental { border-color: rgba(186, 120, 255, 0.55); color: #d5adff; background: rgba(186, 120, 255, 0.12); }

.hero-sheet-head {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.hero-sheet-avatar {
	width: 72px;
	height: 72px;
	border-radius: 12px;
	object-fit: cover;
	border: 2px solid var(--gold);
	background: var(--bg-raised);
	flex: none;
}

.fix-highlight-box {
	padding: 18px 20px;
	border: 1px solid rgba(242, 201, 76, 0.5);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(242, 201, 76, 0.08), rgba(230, 36, 41, 0.06)), var(--bg-card);
	margin-bottom: 18px;
}

.fix-highlight-box h3 {
	margin: 0 0 10px;
	font-size: 17px;
	color: var(--gold);
}

.fix-list {
	margin: 6px 0 12px;
	padding-left: 18px;
	color: #dce1eb;
	line-height: 1.55;
	font-size: 13.5px;
}

.fix-list li { margin-bottom: 5px; }

.synergy-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.synergy-card {
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-raised);
}

.synergy-card .syn-lvl {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
	font-weight: 700;
	margin-bottom: 4px;
}

.power-group {
	margin-bottom: 18px;
}

.power-group-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--gold);
	margin: 0 0 8px;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--border);
}

.power-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 12px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 13.5px;
}
.power-row:hover { background: rgba(255, 255, 255, 0.02); }
.power-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.power-desc {
	margin: 0;
	padding-left: 44px;
	color: #c2c8d4;
	font-size: 13.5px;
	line-height: 1.55;
}
.power-effects {
	margin: 0;
	padding-left: 60px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #dce1ec;
	font-size: 13px;
	line-height: 1.5;
}
.power-effects li::marker { color: var(--gold); }
.power-fix-note {
	margin: 2px 0 0 44px;
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	background: rgba(62, 207, 142, 0.08);
	border: 1px solid rgba(62, 207, 142, 0.3);
	border-left: 3px solid var(--ok);
	color: #d9f7e8;
	font-size: 12.5px;
	line-height: 1.45;
}

.power-row:last-child { border-bottom: none; }

.power-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.unique-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.unique-card {
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-raised);
}

.unique-slot {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--gold);
	letter-spacing: 0.05em;
}

.bio-facts {
	display: grid;
	gap: 10px 18px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: var(--radius);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	font-size: 13px;
}

.bio-facts strong { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }

/* ---------- Visuels Marvel (S.H.I.E.L.D. / Omega / Comic Backdrop) ---------- */
body {
	background-image:
		radial-gradient(circle at 12% 0%, rgba(230, 36, 41, 0.14), transparent 38%),
		radial-gradient(circle at 88% 8%, rgba(242, 201, 76, 0.08), transparent 34%),
		radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: auto, auto, 18px 18px;
}

.brand-shield {
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: drop-shadow(0 0 6px rgba(242, 201, 76, 0.45));
}

.hero-banner {
	position: relative;
	overflow: hidden;
	border-top: 2px solid var(--accent);
	background-image:
		linear-gradient(125deg, rgba(13, 14, 18, 0.93) 22%, rgba(30, 12, 16, 0.80) 64%, rgba(13, 14, 18, 0.91)),
		var(--banner-art, url("omega/bg.jpg"));
	background-size: cover;
	background-position: center;
}

.hero-banner::after {
	content: "";
	position: absolute;
	right: -28px;
	top: 50%;
	width: 260px;
	height: 260px;
	transform: translateY(-50%);
	background: url("omega/shield_center.png") no-repeat center / contain;
	opacity: 0.10;
	pointer-events: none;
	z-index: 0;
}

.hero-banner > * {
	position: relative;
	z-index: 1;
}

.hero-kicker-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.marvel-emblem {
	width: 34px;
	height: 34px;
	object-fit: contain;
	border-radius: 6px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
	flex: none;
}

.marvel-strip {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.marvel-strip-label {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
	font-weight: 700;
	margin-right: 4px;
}

.marvel-strip-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px 3px 3px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(13, 14, 18, 0.72);
	color: var(--text);
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	transition: border-color 0.15s, transform 0.15s;
}

.marvel-strip-item:hover {
	border-color: var(--gold);
	transform: translateY(-1px);
}

.marvel-strip-item img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(242, 201, 76, 0.45);
}

.dash-marvel-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 20px;
	margin-bottom: 18px;
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	background-image:
		linear-gradient(120deg, rgba(13, 14, 18, 0.92) 30%, rgba(28, 12, 16, 0.78)),
		url("omega/simple_background_05_nanotechnology.jpg");
	background-size: cover;
	background-position: center;
}

.dash-marvel-banner-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dash-marvel-banner-left img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	filter: drop-shadow(0 0 8px rgba(242, 201, 76, 0.4));
}

.power-icon {
	width: 34px;
	height: 34px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid var(--border);
	background: #0d0e12;
	flex: none;
}

.unique-icon {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid rgba(186, 120, 255, 0.6);
	background: #14101d;
	flex: none;
}

.syn-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex: none;
}

.hero-token-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	object-fit: contain;
	border: 1px solid rgba(242, 201, 76, 0.45);
	background: rgba(13, 14, 18, 0.7);
}

/* ---------- Garmoth-inspired Vitrine Home (Bento Portal) ---------- */
.home-section { margin-top: 26px; padding-top: 2px; }
.home-intro { max-width: 820px; margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: #cfd5e0; }
.offer-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 900px; line-height: 1.55; color: var(--text-dim); }
.offer-list a { color: var(--gold); font-weight: 700; text-decoration: none; }
.offer-list a:hover { text-decoration: underline; }
.home-steps { margin: 0; padding: 18px 22px 18px 40px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.55; color: #d6dbe5; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.home-more { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-dim); line-height: 1.9; }

/* Compact Garmoth-style Hero Portal Banner */
.hero-home {
	min-height: 240px;
	padding: 28px 30px 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 14px;
	border: 1px solid var(--border-strong);
	background:
		linear-gradient(95deg, rgba(15, 17, 23, 0.96) 0%, rgba(15, 17, 23, 0.80) 48%, rgba(15, 17, 23, 0.35) 100%),
		url(img/hero.jpg) center / cover no-repeat,
		var(--bg-raised);
	box-shadow: var(--shadow);
}
.hero-home .hero-title { font-size: 54px; line-height: 1; margin: 6px 0 8px; }
.hero-home .hero-lead { font-size: 16.5px; max-width: 640px; color: #cfd6e3; margin: 0; }
.hero-home .hero-cta { margin-top: 16px; gap: 10px; }
.hero-home .hero-live {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}
.hero-home .hero-live .stat {
	background: rgba(15, 17, 23, 0.72);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border);
	padding: 11px 14px;
}
.hero-home .hero-live .stat-value { font-size: 20px; }

/* Garmoth Quick-Tools Grid */
.g-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}
.g-tool-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--text);
	transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.g-tool-card:hover {
	background: var(--bg-card-hover);
	border-color: rgba(240, 180, 41, 0.45);
	transform: translateY(-2px);
}
.g-tool-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-size: 19px;
	flex: none;
	background: rgba(230, 36, 41, 0.12);
	border: 1px solid rgba(230, 36, 41, 0.28);
	color: var(--gold);
}
.g-tool-body { flex: 1; min-width: 0; }
.g-tool-title-row { display: flex; align-items: center; gap: 7px; }
.g-tool-title-row strong { font-size: 14.5px; font-weight: 700; color: #fff; }
.g-tool-desc {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Garmoth 2-Column Bento Dashboard */
.g-bento {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 18px;
	margin-top: 20px;
	align-items: start;
}
.g-bento-col {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

/* Compact Join Steps inside Bento */
.g-join-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.g-join-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(15, 17, 23, 0.55);
	border: 1px solid var(--border);
	font-size: 13.5px;
	line-height: 1.45;
	color: #d6dbe5;
}
.g-step-badge {
	width: 24px;
	height: 24px;
	border-radius: 7px;
	display: grid;
	place-items: center;
	background: var(--accent);
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	flex: none;
}

/* Visual Showcase 2x2 inside Bento */
.visuals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.visual {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg-card) center / cover no-repeat;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	transition: border-color 0.15s, transform 0.15s;
}
.visual:hover { border-color: var(--gold); transform: translateY(-2px); }
.visual-caption { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(10, 12, 18, 0.92)); }
.visual-caption strong { font: 21px/1.1 var(--display); letter-spacing: 0.04em; }
.visual-caption small { font-size: 12px; color: #d5d8df; line-height: 1.35; }

/* News widget */
.g-news-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(15, 17, 23, 0.55);
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--text);
	transition: border-color 0.15s;
}
.g-news-item:hover { border-color: var(--gold); }
.g-news-item strong { font-size: 13.5px; color: #fff; }
.g-news-item span { font-size: 12px; color: var(--text-dim); }

@media (max-width: 1180px) {
	.g-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-bento { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.g-tools-grid { grid-template-columns: 1fr; }
	.visuals { grid-template-columns: 1fr; }
	.hero-home { padding: 20px 18px; min-height: 200px; }
	.hero-home .hero-title { font-size: 40px; }
}

/* ---------- Cinématiques & Vidéos ---------- */
.video-wrap { display: flex; justify-content: center; background: #000; border-radius: 10px; border: 1px solid var(--border-strong); overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
.video-player { display: block; width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 9; background: #000; }
.movie-card { cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.movie-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.movie-card.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--gold), 0 4px 18px rgba(0, 0, 0, 0.25); }
