:root{--bg1:#071028;--bg2:#02203b;--accent:#06d6a0;--accent2:#ffd166;--muted:rgba(255,255,255,0.9)}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;background:linear-gradient(120deg,var(--bg1),#02121a 60%);color:var(--muted);min-height:100vh;display:flex;flex-direction:column;align-items:center}
.site-header{width:100%;padding:20px 16px;text-align:center;background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent)}.branding h1{margin:0;font-size:1.6rem;color:var(--accent2);letter-spacing:1px}.branding .sub{margin-top:4px;font-size:0.9rem;opacity:0.9}
.content{width:100%;max-width:1000px;padding:20px;display:flex;flex-direction:column;gap:12px;align-items:center}
.controls{width:100%;display:flex;gap:12px;align-items:center;justify-content:flex-start}.left-controls{display:flex;gap:10px;align-items:center}.control-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-weight:600}.control-label select{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.04);color:var(--muted);padding:6px;border-radius:6px}.control-label input[type="range"]{width:120px}.controls button{background:var(--accent);border:none;color:#03221a;padding:8px 12px;border-radius:8px;font-weight:600;cursor:pointer;box-shadow:0 6px 18px rgba(6,214,160,0.08)}.controls button:disabled{opacity:0.5;cursor:default}
.stats{margin-left:auto;display:flex;gap:12px;align-items:center;font-weight:600}
.canvas-wrap{width:100%;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,0.6)}#gameCanvas{display:block;width:100%;height:450px;background:linear-gradient(180deg,#021021,#011627)}
.instructions{width:100%;background:rgba(255,255,255,0.02);padding:12px;border-radius:8px;color:#cfe8ff}.instructions h2{margin:0 0 8px 0;font-size:1rem;color:var(--accent2)}.instructions ul{margin:0;padding-left:18px}
.site-footer{padding:12px;opacity:0.7;width:100%;text-align:center}@media(max-width:600px){.controls{flex-direction:column;align-items:stretch}.stats{margin-left:0;justify-content:space-between;width:100%}#gameCanvas{height:300px}}
/* Mobile touch/orientation styles removed for PC-only build */

/* Dropdown restyle to match site colors (overrides UA defaults where possible) */
.control-label select{
	background:linear-gradient(180deg, rgba(2,16,33,0.85), rgba(1,22,39,0.85));
	border:1px solid rgba(255,255,255,0.04);
	color:var(--muted);
	padding:6px 30px 6px 6px;
	border-radius:6px;
	appearance:none;
	-webkit-appearance:none;
	-moz-appearance:none;
	background-repeat:no-repeat;
	background-position:right 8px center;
	background-size:12px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'><path fill='%23cfe8ff' d='M7 10l5 5 5-5z'/></svg>");
}

/* Attempt to style native option list; note some browsers ignore these */
.control-label select option{
	background:linear-gradient(180deg,#02121a,#011627);
	color:#cfe8ff;
}

.control-label select:focus{outline:2px solid rgba(12,150,110,0.14)}
.control-label select::-ms-expand{display:none}

/* Custom fake select (used to fully control dropdown styling across browsers) */
.fake-select{position:relative;display:inline-block}
.fake-select .fs-button{background:linear-gradient(180deg,rgba(2,16,33,0.95),rgba(1,22,39,0.95));border:1px solid rgba(255,255,255,0.06);color:var(--muted);padding:6px 30px 6px 8px;border-radius:6px;cursor:pointer}
.fake-select .fs-button:focus{outline:2px solid rgba(12,150,110,0.14)}
.fake-select .fs-button::after{content:'';position:absolute;right:12px;top:50%;transform:translateY(-50%);width:12px;height:12px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'><path fill='%23cfe8ff' d='M7 10l5 5 5-5z'/></svg>");background-repeat:no-repeat;background-size:12px}
.fake-select .fs-list{position:absolute;left:0;right:0;margin:6px 0 0 0;padding:6px 0;background:linear-gradient(180deg,#02121a,#011627);border:1px solid rgba(255,255,255,0.04);border-radius:8px;list-style:none;z-index:60;box-shadow:0 10px 30px rgba(0,0,0,0.6)}
.fake-select .fs-list li{padding:8px 12px;color:#cfe8ff;cursor:pointer}
.fake-select .fs-list li:hover,.fake-select .fs-list li:focus{background:rgba(6,214,160,0.06)}

/* Hearts for lives */
.stats .life{font-size:1rem;line-height:1;color:#ff6b6b;margin-left:6px;margin-right:2px}
.stats .life.empty{color:rgba(255,255,255,0.12)}

/* Make stats area items vertically centered */
.stats{display:flex;align-items:center;gap:12px}

/* Heart pulse animation */
.life.pulse{animation:heart-pulse 560ms ease-out}
@keyframes heart-pulse{
	0%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(255,107,107,0))}
	40%{transform:scale(1.28);filter:drop-shadow(0 6px 10px rgba(255,107,107,0.18))}
	100%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(255,107,107,0))}
}