@font-face { font-family: syndicateFont; src: url('../syndicate.otf'); }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: Consolas, 'Courier New', monospace; color: #c8ffd8; }
#view, #hud { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#hud { pointer-events: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }

.panel {
	position: absolute; background: rgba(2, 10, 6, 0.92); border: 1px solid rgba(120, 255, 160, 0.45);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(40, 255, 120, 0.04);
}
.panel::before { content: ''; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px); }
.panel h1, .panel h2 { font-family: syndicateFont, Impact, sans-serif; font-weight: normal; color: #ffd040; margin: 0 0 10px; letter-spacing: 1px;
	text-shadow: 0 0 10px rgba(180, 40, 10, 0.9); }
.panel h1 { font-size: 34px; } .panel h2 { font-size: 20px; }
.title-bar { background: rgba(120, 255, 160, 0.14); color: #9fffb0; padding: 4px 10px; font-size: 13px; margin: -1px -1px 10px; }
.btn {
	display: inline-block; font-family: syndicateFont, Impact, sans-serif; font-size: 16px; color: #c8ffd8; background: rgba(5, 15, 10, 0.85);
	border: 1px solid rgba(120, 255, 160, 0.5); padding: 8px 18px; margin: 4px; cursor: pointer; user-select: none; letter-spacing: 1px;
}
.btn:hover, .btn.focus { color: #ffe060; border-color: #ffd040; background: rgba(60, 40, 0, 0.85); }
.btn.disabled { color: #555; border-color: rgba(100,100,100,0.4); pointer-events: none; }
.btn.red { color: #ff8080; }
.small { font-size: 12px; color: #9fffb0; }
.gold { color: #ffd040; } .red { color: #ff6060; } .blue { color: #60c0ff; }
.center-screen { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.typing { white-space: pre-wrap; line-height: 1.45; font-size: 15px; color: #9fffb0; }
.row { display: flex; gap: 14px; align-items: flex-start; }
.mod { border: 1px solid rgba(120,255,160,0.3); padding: 8px; width: 260px; margin: 4px; background: rgba(0,0,0,0.3); }
.mod .lv span { display: inline-block; width: 22px; height: 7px; margin-right: 4px; background: rgba(120,255,160,0.15); }
.mod .lv span.on { background: #40ff80; }
#start { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(40,0,0,0.35), rgba(0,0,0,0.92)); }
#start .big { font-family: syndicateFont, Impact, sans-serif; font-size: 84px; color: yellow; text-shadow: 0 0 12px rgb(113,19,5), 0 0 24px rgb(113,19,5); margin: 0; }
#start .sub { font-family: syndicateFont, Impact, sans-serif; font-size: 40px; color: yellow; text-shadow: 0 0 12px rgb(113,19,5); margin: -6px 0 24px; }
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.keys td { padding: 3px 14px 3px 0; font-size: 14px; } .keys td:first-child { color: #ffd040; }

/* ---------- INTRO (logos sur fond noir, disposés en croix) ---------- */
#intro { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.3s ease; }
#intro.out { opacity: 0; pointer-events: none; }
#intro .logos { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2.6vh, 34px); width: 96vw; height: 94vh; }
#intro .row { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 64px); width: 100%; }
#intro .row:empty { display: none; }
#intro .logo { height: min(27vh, 300px); width: min(21vw, 420px); display: flex; align-items: center; justify-content: center; opacity: 0; }
#intro .logo img { max-height: 100%; max-width: 100%; object-fit: contain; user-select: none; }
#intro .logo.txt { font: 600 clamp(15px, 1.7vw, 28px) 'Segoe UI', Arial, sans-serif; color: #e8e8e8; letter-spacing: 0.14em; white-space: nowrap; }
#intro.go .logo { animation: introLogo var(--life, 2.1s) ease both; }
@keyframes introLogo {
	0%   { opacity: 0; transform: scale(0.86); }
	24%  { opacity: 1; transform: scale(1); }
	74%  { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.04); }
}
