Spaces:
Running
Running
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| :root { | |
| --neon: #3dffc8; | |
| --magenta: #ff3dd1; | |
| --bg: #070a12; | |
| --panel: rgba(10, 14, 24, 0.92); | |
| } | |
| html, body { height: 100%; overflow: hidden; background: var(--bg); } | |
| body { font-family: 'Courier New', Consolas, monospace; color: #cfe7e0; user-select: none; } | |
| #stage { position: relative; width: 100vw; height: 100vh; } | |
| #view, #overlay { | |
| position: absolute; inset: 0; width: 100%; height: 100%; display: block; | |
| } | |
| #view { image-rendering: auto; } | |
| #overlay { pointer-events: none; } | |
| #crosshair { | |
| position: absolute; left: 50%; top: 50%; width: 0; height: 0; | |
| pointer-events: none; z-index: 5; | |
| } | |
| /* ---------- HUD ---------- */ | |
| #hud { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 6; } | |
| #hud-top { | |
| position: absolute; top: 10px; left: 50%; transform: translateX(-50%); | |
| display: flex; gap: 26px; align-items: baseline; | |
| background: var(--panel); padding: 6px 22px; border: 1px solid rgba(61,255,200,0.25); | |
| } | |
| #hud-timer { font-size: 22px; color: var(--neon); font-weight: bold; min-width: 70px; text-align: center; } | |
| #hud-timer.warn { color: #ff5040; } | |
| #hud-score, #hud-round { font-size: 13px; letter-spacing: 1px; opacity: 0.9; } | |
| #hud-bottom { | |
| position: absolute; bottom: 14px; left: 0; right: 0; | |
| display: flex; justify-content: space-between; padding: 0 22px; | |
| } | |
| .hud-block { | |
| background: var(--panel); border: 1px solid rgba(61,255,200,0.25); | |
| padding: 10px 18px; display: flex; gap: 14px; align-items: baseline; font-size: 20px; | |
| } | |
| .hud-block .hud-label { font-size: 11px; opacity: 0.6; } | |
| #hud-hp { color: var(--neon); font-weight: bold; font-size: 26px; } | |
| #hud-armor { color: #7fb6ff; } | |
| #hud-weapon { font-size: 13px; opacity: 0.85; } | |
| #hud-ammo { color: #ffd36b; font-weight: bold; font-size: 24px; } | |
| #hud-money { color: #8aff6b; font-size: 16px; } | |
| #killfeed { | |
| position: absolute; top: 14px; right: 16px; text-align: right; font-size: 13px; | |
| } | |
| .feed-entry { | |
| background: rgba(8,10,18,0.75); border-right: 3px solid var(--neon); | |
| padding: 4px 10px; margin-bottom: 4px; | |
| } | |
| .feed-entry.head { border-right-color: #ff5040; color: #ffb0a6; } | |
| #phase-banner { | |
| position: absolute; top: 22%; left: 50%; transform: translateX(-50%); | |
| font-size: 30px; letter-spacing: 6px; color: var(--neon); | |
| text-shadow: 0 0 18px rgba(61,255,200,0.7); | |
| opacity: 0; transition: opacity 0.3s; white-space: nowrap; | |
| } | |
| #phase-banner.show { opacity: 1; } | |
| #fps { | |
| position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); | |
| font-size: 11px; color: rgba(61,255,200,0.65); z-index: 7; display: none; | |
| } | |
| /* ---------- buy menu ---------- */ | |
| #buy-menu { | |
| display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); | |
| background: var(--panel); border: 1px solid rgba(61,255,200,0.4); | |
| padding: 22px 26px; pointer-events: auto; min-width: min(560px, 92vw); | |
| max-width: 95vw; overflow: auto; z-index: 8; | |
| } | |
| #buy-menu h2 { color: var(--neon); letter-spacing: 3px; font-size: 18px; margin-bottom: 14px; } | |
| .buy-hint { font-size: 11px; color: #6b8a83; letter-spacing: 0; margin-left: 10px; } | |
| .buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } | |
| .buy-card { | |
| background: rgba(20, 26, 42, 0.9); border: 1px solid rgba(61,255,200,0.2); | |
| color: #cfe7e0; padding: 12px; cursor: pointer; font-family: inherit; | |
| display: flex; flex-direction: column; gap: 5px; text-align: left; | |
| } | |
| .buy-card:hover { border-color: var(--neon); background: rgba(26, 36, 56, 0.95); } | |
| .buy-art { | |
| display: block; height: 64px; margin: -4px -4px 2px; | |
| background-size: contain; background-repeat: no-repeat; background-position: center; | |
| filter: drop-shadow(0 0 6px rgba(61,255,200,0.25)); | |
| } | |
| .buy-card.armor { border-color: rgba(127,182,255,0.35); } | |
| .buy-name { font-weight: bold; font-size: 13px; } | |
| .buy-stats { font-size: 11px; opacity: 0.65; } | |
| .buy-price { color: #8aff6b; font-size: 13px; } | |
| /* ---------- screens ---------- */ | |
| .screen { | |
| display: none; position: absolute; inset: 0; z-index: 10; | |
| flex-direction: column; align-items: center; justify-content: center; gap: 16px; | |
| background: radial-gradient(ellipse at center, rgba(7,10,18,0.55) 0%, rgba(7,10,18,0.92) 100%); | |
| } | |
| .screen h1 { | |
| font-size: 64px; letter-spacing: 14px; color: #e8fff8; | |
| text-shadow: 0 0 30px rgba(61,255,200,0.8); | |
| } | |
| .screen h1 span { color: var(--neon); } | |
| .screen h2 { font-size: 30px; letter-spacing: 8px; color: var(--neon); } | |
| .tagline { color: #7da99f; letter-spacing: 2px; font-size: 13px; margin-bottom: 16px; } | |
| .btn-primary, .btn-secondary { | |
| font-family: inherit; font-size: 16px; letter-spacing: 4px; cursor: pointer; | |
| padding: 12px 48px; border: 1px solid var(--neon); | |
| background: rgba(61,255,200,0.12); color: var(--neon); | |
| transition: background 0.15s; | |
| } | |
| .btn-primary:hover { background: rgba(61,255,200,0.3); } | |
| .btn-primary.big { font-size: 22px; padding: 16px 70px; } | |
| .btn-secondary { border-color: rgba(207,231,224,0.35); background: transparent; color: #cfe7e0; } | |
| .btn-secondary:hover { background: rgba(207,231,224,0.1); } | |
| .controls-hint { | |
| position: absolute; bottom: 26px; font-size: 11px; color: #5a7d74; | |
| letter-spacing: 1px; max-width: 720px; text-align: center; line-height: 1.7; | |
| } | |
| #match-result { color: var(--neon); } | |
| /* ---------- settings ---------- */ | |
| #settings-panel { | |
| width: min(680px, 92vw); background: var(--panel); | |
| border: 1px solid rgba(61,255,200,0.3); padding: 18px; | |
| max-height: 78vh; display: flex; flex-direction: column; | |
| } | |
| .settings-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; } | |
| .tab-btn { | |
| font-family: inherit; background: transparent; color: #7da99f; | |
| border: 1px solid rgba(61,255,200,0.2); padding: 7px 16px; cursor: pointer; | |
| letter-spacing: 2px; font-size: 12px; | |
| } | |
| .tab-btn.active { color: var(--neon); border-color: var(--neon); background: rgba(61,255,200,0.1); } | |
| .settings-body { overflow-y: auto; flex: 1; } | |
| .settings-row { | |
| display: flex; align-items: center; gap: 12px; padding: 8px 4px; | |
| border-bottom: 1px solid rgba(61,255,200,0.07); font-size: 13px; | |
| } | |
| .settings-row label { flex: 0 0 240px; color: #a9cdc4; } | |
| .settings-row input[type=range] { flex: 1; accent-color: var(--neon); } | |
| .settings-row select, .settings-row input[type=color] { | |
| font-family: inherit; background: #0d1322; color: #cfe7e0; | |
| border: 1px solid rgba(61,255,200,0.3); padding: 4px 8px; | |
| } | |
| .settings-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--neon); } | |
| .settings-val { min-width: 44px; text-align: right; color: var(--neon); } | |
| .settings-footer { display: flex; justify-content: space-between; margin-top: 14px; } | |
| .settings-footer button { padding: 9px 26px; font-size: 13px; } | |
| .crosshair-preview { padding: 14px 4px; } | |
| .ch-preview-stage { | |
| position: relative; height: 90px; background: | |
| linear-gradient(135deg, #1a2438 0%, #2c1a38 100%); | |
| border: 1px solid rgba(61,255,200,0.2); | |
| } | |
| #ch-preview { position: absolute; left: 50%; top: 50%; } | |
| .buy-card.owned { opacity: 0.45; border-color: rgba(61,255,200,0.5); cursor: default; } | |
| .buy-card.owned .buy-price::after { content: ' · OWNED'; color: var(--neon); } | |
| .buy-card.unaffordable { opacity: 0.4; cursor: not-allowed; } | |
| .buy-card.unaffordable .buy-price { color: #ff6050; } | |
| /* ---------- map picker ---------- */ | |
| .map-pick { display: flex; gap: 10px; margin-bottom: 6px; } | |
| .map-card { | |
| font-family: inherit; cursor: pointer; padding: 64px 18px 10px; min-width: 170px; | |
| background: rgba(10,14,24,0.85); border: 1px solid rgba(61,255,200,0.25); | |
| background-size: cover; background-position: center; | |
| color: #cfe7e0; display: flex; flex-direction: column; gap: 4px; text-align: left; | |
| } | |
| .map-card .map-name { font-weight: bold; letter-spacing: 3px; font-size: 14px; } | |
| .map-card .map-desc { font-size: 10px; color: #6b8a83; } | |
| .map-card.active { border-color: var(--neon); background: rgba(61,255,200,0.12); } | |
| .map-card.active .map-name { color: var(--neon); } | |
| /* ---------- lobby ---------- */ | |
| .lobby-box { | |
| display: flex; flex-direction: column; gap: 12px; width: 320px; | |
| background: var(--panel); border: 1px solid rgba(61,255,200,0.3); padding: 22px; | |
| } | |
| .lobby-box input { | |
| font-family: inherit; font-size: 16px; letter-spacing: 3px; text-transform: uppercase; | |
| background: #0d1322; color: var(--neon); border: 1px solid rgba(61,255,200,0.35); | |
| padding: 10px 12px; width: 100%; text-align: center; | |
| } | |
| .lobby-box input::placeholder { color: #4a6a62; } | |
| .lobby-row { display: flex; gap: 10px; } | |
| .lobby-row .btn-primary { flex: 1; padding: 10px 8px; font-size: 14px; } | |
| .lobby-row input { flex: 1; } | |
| #lobby-status { font-size: 12px; color: #ffb040; min-height: 16px; text-align: center; } | |
| #room-banner { | |
| display: none; position: absolute; top: 12px; left: 16px; z-index: 7; | |
| background: var(--panel); border: 1px solid rgba(61,255,200,0.35); | |
| padding: 6px 14px; font-size: 13px; letter-spacing: 2px; color: var(--neon); | |
| } | |
| #scoreboard { | |
| display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); | |
| z-index: 9; background: var(--panel); border: 1px solid rgba(61,255,200,0.4); | |
| padding: 18px 26px; min-width: 380px; font-size: 14px; | |
| } | |
| #scoreboard table { width: 100%; border-collapse: collapse; } | |
| #scoreboard th { color: var(--neon); text-align: left; font-size: 11px; letter-spacing: 2px; padding: 4px 10px; } | |
| #scoreboard td { padding: 4px 10px; border-top: 1px solid rgba(61,255,200,0.12); } | |
| #scoreboard tr.me td { color: var(--neon); } | |
| #respawn-overlay { | |
| display: none; position: absolute; inset: 0; z-index: 9; | |
| flex-direction: column; align-items: center; justify-content: center; gap: 14px; | |
| background: rgba(40, 4, 8, 0.55); | |
| } | |
| #respawn-overlay h2 { color: #ff5040; letter-spacing: 8px; } | |
| #respawn-overlay p { color: #ffb0a6; font-size: 13px; } | |
| #fatal { | |
| display: none; position: absolute; inset: 0; z-index: 99; | |
| align-items: center; justify-content: center; color: #ff5040; | |
| font-size: 18px; text-align: center; padding: 40px; background: var(--bg); | |
| } | |