* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; font-family: system-ui, "Segoe UI", Roboto, sans-serif; color: #eef; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.panel { background: rgba(12, 16, 26, .72); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 8px 10px; backdrop-filter: blur(4px); }
.small { font-size: 12px; line-height: 1.45; }
.ptitle { font-weight: 700; font-size: 13px; margin-bottom: 4px; color: #ffd27a; }
button { font: inherit; cursor: pointer; background: #24304a; color: #eef; border: 1px solid #3a4a6a; border-radius: 6px; padding: 3px 8px; }
button:hover { background: #31426a; }
button.on { background: #e17055; border-color: #e17055; }
#hud > * { position: fixed; }
#leftCol { top: 10px; left: 10px; width: 300px; display: flex; flex-direction: column; gap: 8px; }
#clock { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
#speeds { display: flex; gap: 3px; } #speeds button { padding: 2px 6px; flex: 1; }
#stats { margin-top: 6px; font-size: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px 10px; }
#stats b { color: #fff; }
#log { max-height: calc(100vh - 430px); min-height: 80px; overflow: hidden; font-size: 12px; }
#logList div { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; }
#logList .t { color: #889; margin-right: 4px; }
.ev-birth { color: #7bed9f; } .ev-death { color: #ff7675; } .ev-wedding { color: #fd79a8; } .ev-love { color: #fab1a0; }
.ev-breakup { color: #e17055; } .ev-move { color: #a29bfe; } .ev-job { color: #74b9ff; } .ev-pregnancy { color: #ffeaa7; } .ev-stage { color: #81ecec; } .ev-meet { color: #dfe6e9; } .ev-info { color: #ffd27a; }
#topRight { top: 10px; right: 10px; width: 200px; }
#minimap { width: 200px; height: 200px; border-radius: 10px; border: 2px solid rgba(255,255,255,.2); display: block; background: #222; }
#perf { margin-top: 6px; }
#aim { bottom: 90px; left: 50%; transform: translateX(-50%); font-size: 14px; text-align: center; text-shadow: 0 1px 3px #000; pointer-events: none; }
#crosshair { top: 50%; left: 50%; transform: translate(-50%, -60%); font-size: 26px; color: rgba(255,255,255,.7); pointer-events: none; }
#speedo { bottom: 16px; right: 16px; font-size: 28px; font-weight: 800; }
#help { bottom: 10px; left: 10px; width: 330px; }
#toast { top: 40%; left: 50%; transform: translateX(-50%); font-size: 22px; font-weight: 700; text-shadow: 0 2px 6px #000; pointer-events: none; }
#inspector { position: fixed; top: 10px; right: 220px; width: 360px; max-height: calc(100vh - 20px); overflow-y: auto; font-size: 13px; }
#list { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 560px; height: 76vh; display: flex; flex-direction: column; font-size: 13px; z-index: 5; }
#search { width: 100%; padding: 6px 8px; border-radius: 6px; border: 1px solid #3a4a6a; background: #10182a; color: #fff; margin: 4px 0; }
#listTabs { margin-bottom: 6px; } #listTabs button { margin-right: 4px; }
#listBody { overflow-y: auto; flex: 1; }
#listBody .row { display: flex; justify-content: space-between; padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
#listBody .row > span:first-child { white-space: nowrap; margin-right: 10px; }
#listBody .row > span:last-child { text-align: right; }
#listBody .row:hover { background: rgba(255,255,255,.06); }
.listFoot { padding-top: 6px; text-align: right; }
.close { position: absolute; top: 6px; right: 6px; padding: 0 6px; }
.name { font-size: 18px; font-weight: 800; }
.muted { color: #99a; }
.chip { display: inline-block; background: #2d3a5a; border-radius: 10px; padding: 1px 8px; margin: 2px 2px 0 0; font-size: 11px; }
.bar { height: 7px; background: #263049; border-radius: 4px; overflow: hidden; margin: 2px 0 5px; }
.bar > i { display: block; height: 100%; }
.sec { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.sec h4 { margin: 0 0 4px; font-size: 12px; color: #ffd27a; text-transform: uppercase; letter-spacing: .05em; }
a.p { color: #8fd3ff; cursor: pointer; text-decoration: none; } a.p:hover { text-decoration: underline; }
a.p.dead { color: #aaa; }
.rel { display: grid; grid-template-columns: 1fr 90px; gap: 4px; align-items: center; }
#start { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(20,30,60,.75), rgba(0,0,0,.92)); z-index: 10; cursor: pointer; }
.startBox { text-align: center; }
.startBox h1 { font-size: 56px; margin: 0; letter-spacing: .02em; color: #ffd27a; text-shadow: 0 4px 20px rgba(255,180,80,.4); }
.startBox .sub { color: #ccd; margin: 6px 0 24px; }
.startBox button { font-size: 18px; padding: 10px 22px; margin: 6px; display: block; width: 360px; margin: 8px auto; }
.startBox .hint { color: #889; font-size: 13px; margin-top: 18px; }
