2026-11-13 00:41:54 +01:00
|
|
|
|
<!doctype html>
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
|
|
|
|
<title>Robot Clash</title>
|
|
|
|
|
|
<link rel="icon" href="assets/Sprites/icon.png">
|
|
|
|
|
|
<style>
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* Headline font, shipped with the game so it also works offline / in the exe.
|
|
|
|
|
|
Russo One (c) 2011-2012 Jovanny Lemonad - SIL Open Font License 1.1 (assets/Fonts/OFL.txt).
|
|
|
|
|
|
build-web.mjs turns the url() into a data: URI for the single-file release. */
|
|
|
|
|
|
@font-face { font-family: "Russo One"; font-style: normal; font-weight: 400;
|
|
|
|
|
|
src: url('assets/Fonts/RussoOne-Regular.ttf') format('truetype'); font-display: swap; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
:root {
|
|
|
|
|
|
--bg: #090b10; --panel: #151920; --panel2: #1c212b; --line: #2d3442; --text: #e8ebf2; --dim: #8d95a8;
|
2026-11-13 01:02:55 +01:00
|
|
|
|
--accent: #ff7a1a; --good: #6dff9e; --warn: #ff5a4a; --blue: #4fa8ff; --gold: #ffc940;
|
2026-11-13 00:41:54 +01:00
|
|
|
|
--head: "Russo One", "Segoe UI Black", "Arial Black", Impact, sans-serif;
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* shared look: soft metal sheen, 1px top highlight, chamfered corners, hazard tape */
|
|
|
|
|
|
--r1: 4px; --r2: 8px; --r3: 12px;
|
|
|
|
|
|
--steel: linear-gradient(#242a35, #1a1f28);
|
|
|
|
|
|
--sheen: linear-gradient(rgba(255,255,255,.04), rgba(0,0,0,.07));
|
|
|
|
|
|
--hl: inset 0 1px 0 rgba(255,255,255,.07);
|
|
|
|
|
|
--chamfer: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
|
|
|
|
|
|
--hazard: repeating-linear-gradient(45deg, var(--accent) 0 6px, #1a1008 6px 12px);
|
2026-11-13 00:41:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
* { box-sizing: border-box; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* never show a scrollbar - screens are built to fit; overflow stays reachable by wheel/touch */
|
|
|
|
|
|
* { scrollbar-width: none; -ms-overflow-style: none; }
|
|
|
|
|
|
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
|
|
|
|
|
|
font: 15px/1.35 "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
body { display: flex; align-items: center; justify-content: center; background: #05060a; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
|
|
|
|
|
|
/* fixed design size, scaled to the window by Kit.fit */
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#app { position: relative; width: 1280px; display: flex; flex-direction: column; }
|
|
|
|
|
|
/* HUD lives INSIDE the stage (full-screen game look), above the overlay so menus keep it reachable */
|
2026-11-19 14:30:40 +01:00
|
|
|
|
/* network overlay (F3) */
|
|
|
|
|
|
#netov { position: absolute; left: 8px; bottom: 12px; z-index: 9; width: 316px; padding: 8px; border-radius: 6px;
|
|
|
|
|
|
background: rgba(10,12,16,.86); border: 1px solid var(--line); box-shadow: var(--hl); font: 12px/1.35 Consolas, monospace;
|
|
|
|
|
|
color: var(--text); pointer-events: none; }
|
2026-11-19 15:28:23 +01:00
|
|
|
|
#netov.hide { display: none; } /* #netov beats the generic .hide rule - hide it explicitly */
|
2026-11-19 14:30:40 +01:00
|
|
|
|
#netov .nvh { font-weight: bold; color: var(--accent); margin-bottom: 4px; }
|
|
|
|
|
|
#netov canvas { display: block; width: 300px; height: 84px; }
|
|
|
|
|
|
#netov .nvleg { display: flex; gap: 8px; flex-wrap: wrap; margin: 3px 0 5px; font-size: 11px; color: var(--dim, #8d95a8); }
|
|
|
|
|
|
#netov .nvleg i { display: inline-block; width: 10px; height: 3px; margin-right: 3px; vertical-align: middle; }
|
|
|
|
|
|
#netov .nvrows { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; }
|
|
|
|
|
|
#netov .nvrows b { text-align: right; font-weight: normal; }
|
|
|
|
|
|
#netov .nvv { margin-top: 5px; border-top: 1px solid var(--line); padding-top: 4px; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#hud { position: absolute; left: 0; right: 0; top: 0; z-index: 7; display: flex; gap: 8px; align-items: center;
|
|
|
|
|
|
height: 44px; padding: 0 12px; pointer-events: none;
|
|
|
|
|
|
background: linear-gradient(rgba(6,8,12,.9) 35%, rgba(6,8,12,0)); }
|
|
|
|
|
|
#hud > * { pointer-events: auto; }
|
|
|
|
|
|
#hud button { min-height: 34px; padding: 4px 10px; }
|
|
|
|
|
|
#hud .icobtn { width: 36px; height: 34px; padding: 0; font-size: 15px; }
|
|
|
|
|
|
/* per screen: title has its own menu, the fight only keeps pause + sound under the health box */
|
|
|
|
|
|
body[data-mode="intro"] #hud, body[data-mode="title"] #hud, body[data-mode="account"] #hud { display: none; }
|
|
|
|
|
|
body[data-mode="fight"] #hud, body[data-mode="pause"] #hud { top: 92px; height: 36px; background: none; }
|
|
|
|
|
|
body[data-mode="fight"] #hud > *, body[data-mode="pause"] #hud > * { display: none; }
|
|
|
|
|
|
body[data-mode="fight"] #hud > .icobtn, body[data-mode="pause"] #hud > .icobtn { display: block; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; display: flex; align-items: center; gap: 6px; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.chip b { color: var(--accent); font-variant-numeric: tabular-nums; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.chip .pic { width: 22px; height: 22px; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.grow { flex: 1; }
|
|
|
|
|
|
.logo { font-family: var(--head); letter-spacing: .06em; color: var(--accent); font-size: 20px; padding: 0 6px; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#stage { position: relative; width: 1280px; height: 720px; overflow: hidden; background: #000; }
|
|
|
|
|
|
#stage::after { content: ''; position: absolute; inset: 0; z-index: 8; pointer-events: none;
|
|
|
|
|
|
background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.3) 100%); }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
#stage > canvas { position: absolute; left: 0; top: 0; display: block; }
|
|
|
|
|
|
#cv { pointer-events: none; z-index: 2; }
|
|
|
|
|
|
#gl { z-index: 1; }
|
|
|
|
|
|
#bgimg { position: absolute; inset: 0; background: #0b0d12 center / cover no-repeat; z-index: 0; }
|
|
|
|
|
|
#bgimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,9,.15) 0%, rgba(5,6,9,.55) 45%, rgba(5,6,9,.8) 100%); }
|
|
|
|
|
|
|
|
|
|
|
|
/* sprite with fallback glyph (shown while the ComfyGen image is missing) */
|
|
|
|
|
|
.pic { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
|
|
|
|
.pic::before { content: attr(data-f); position: absolute; font-size: 60%; opacity: .7; }
|
|
|
|
|
|
.pic img { position: relative; width: 100%; height: 100%; object-fit: contain; }
|
|
|
|
|
|
.pic img.missing { visibility: hidden; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
|
2026-11-15 17:08:11 +01:00
|
|
|
|
button { font: inherit; color: var(--text); background: var(--steel); border: 1px solid var(--line);
|
|
|
|
|
|
border-radius: var(--r2); padding: 6px 12px; min-height: 34px; cursor: pointer; box-shadow: var(--hl);
|
|
|
|
|
|
transition: border-color .1s, filter .1s, transform .06s; }
|
|
|
|
|
|
button:active { transform: translateY(1px); }
|
|
|
|
|
|
@media (hover: hover) { button:hover { border-color: var(--accent); filter: brightness(1.12); } }
|
|
|
|
|
|
/* main action: chamfered, hazard-orange, with a solid edge instead of a blurred shadow (clip-path cuts shadows) */
|
|
|
|
|
|
button.primary { background: linear-gradient(#ff8f3a, #e8650a); color: #1a0c02; border: 1px solid #ffa25a;
|
|
|
|
|
|
border-bottom: 3px solid #7a3000; font-weight: 700; padding: 8px 20px; min-height: 42px;
|
|
|
|
|
|
font-family: var(--head); letter-spacing: .05em; text-transform: uppercase; clip-path: var(--chamfer); box-shadow: none; }
|
|
|
|
|
|
button.primary:active { transform: translateY(2px); border-bottom-width: 1px; }
|
|
|
|
|
|
button:disabled { opacity: .4; cursor: default; filter: none; }
|
|
|
|
|
|
button:disabled:hover { border-color: var(--line); filter: none; }
|
|
|
|
|
|
button.link { background: none; border: none; color: var(--accent); padding: 2px 4px; min-height: 0;
|
|
|
|
|
|
text-decoration: underline; box-shadow: none; }
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
input[type=text], input[type=password], input[type=email] { font: inherit; width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line);
|
2026-11-13 01:02:55 +01:00
|
|
|
|
background: #0b0e14; color: var(--text); }
|
|
|
|
|
|
input:focus { outline: none; border-color: var(--accent); }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* menus fade in once per screen (#overlay.enter is removed again, so live lists do not flicker) */
|
2026-11-19 00:55:39 +01:00
|
|
|
|
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.975); } to { opacity: 1; transform: none; } }
|
|
|
|
|
|
#overlay.enter > * { animation: cardIn .2s cubic-bezier(.2,.7,.2,1) both; will-change: transform, opacity; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.tab, .item, .fitted .frow, .rroom, .prow { transition: border-color .1s, background-color .1s, transform .1s; }
|
|
|
|
|
|
@media (hover: hover) { .item:hover { transform: translateY(-2px); } }
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
|
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* every panel shares the same sheen + top highlight */
|
|
|
|
|
|
.card, .fbox, #detail, .item, .prow, .hmrow, .rroom, .opp, .stats, .chip, .tab, .fitted .frow {
|
|
|
|
|
|
background-image: var(--sheen); box-shadow: var(--hl); }
|
|
|
|
|
|
|
2026-11-13 00:41:54 +01:00
|
|
|
|
/* overlays (menus) */
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 40px;
|
2026-11-13 01:02:55 +01:00
|
|
|
|
background: rgba(5, 6, 10, .62) center / cover no-repeat; z-index: 6; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#overlay::before { content: ''; position: absolute; inset: 0; pointer-events: none;
|
|
|
|
|
|
background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0,0,0,.55) 100%); }
|
|
|
|
|
|
body[data-mode="title"] #overlay, body[data-mode="intro"] #overlay { padding-top: 0; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
#overlay.hide { display: none; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
#overlay.clear { background-color: transparent; }
|
|
|
|
|
|
.card { background: rgba(21, 25, 32, .94); border: 1px solid var(--line); border-radius: 14px; padding: 22px 30px;
|
2026-11-17 14:17:50 +01:00
|
|
|
|
min-width: 380px; max-width: 760px; max-height: 624px; overflow-y: auto; text-align: center; box-shadow: 0 20px 60px #000a; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.card h1 { margin: 0 0 6px; font: 44px var(--head); letter-spacing: .05em; color: var(--accent); text-shadow: 0 3px 0 #5a2600; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.card h2 { margin: 0 0 10px; padding-bottom: 8px; font: 26px var(--head); letter-spacing: .04em; color: var(--accent);
|
|
|
|
|
|
position: relative; }
|
|
|
|
|
|
.card h2::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
|
|
|
|
|
|
width: 84px; height: 4px; border-radius: 2px; background: var(--hazard); opacity: .85; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.card h3 { margin: 12px 0 6px; font: 14px var(--head); letter-spacing: .06em; color: var(--dim); text-align: left; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.card p { color: var(--dim); margin: 6px 0 14px; }
|
|
|
|
|
|
.board { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; font-variant-numeric: tabular-nums; max-height: 150px; overflow: auto; }
|
|
|
|
|
|
.board li { display: flex; gap: 10px; padding: 2px 0; }
|
|
|
|
|
|
.board li .nm { flex: 1; } .board li.me { color: var(--good); }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
/* live animated ranking board */
|
|
|
|
|
|
.livedot { font: 12px var(--head); color: var(--good); letter-spacing: .06em; vertical-align: middle; animation: pulse 1.6s ease-in-out infinite; }
|
|
|
|
|
|
@keyframes pulse { 50% { opacity: .35; } }
|
|
|
|
|
|
.board.live { max-height: 340px; margin-top: 10px; }
|
|
|
|
|
|
.board.live .brow { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px;
|
|
|
|
|
|
background: var(--panel2); border: 1px solid var(--line); margin-bottom: 5px; will-change: transform; }
|
|
|
|
|
|
.board.live .brow.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
|
|
|
|
|
|
.board.live .rk { width: 22px; text-align: center; font: 14px var(--head); color: var(--dim); }
|
|
|
|
|
|
.board.live .brow:nth-child(1) .rk { color: #f2c230; } .board.live .brow:nth-child(2) .rk { color: #cfd6e0; } .board.live .brow:nth-child(3) .rk { color: #d08a4a; }
|
|
|
|
|
|
.board.live .fl { width: 20px; flex: none; }
|
|
|
|
|
|
.board.live .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
|
|
.board.live .arrow { font-size: 10px; margin-left: 5px; animation: arrpop .9s ease-out; }
|
|
|
|
|
|
.board.live .arrow.up { color: var(--good); } .board.live .arrow.dn { color: #e5593b; }
|
|
|
|
|
|
@keyframes arrpop { 0% { transform: translateY(4px); opacity: 0; } 30% { opacity: 1; } 100% { opacity: .6; } }
|
|
|
|
|
|
.board.live .val { position: relative; width: 108px; flex: none; display: flex; align-items: center; justify-content: flex-end;
|
|
|
|
|
|
padding: 2px 8px; border-radius: 6px; overflow: hidden; background: #0d1016; }
|
|
|
|
|
|
.board.live .val .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), #ffb060);
|
|
|
|
|
|
opacity: .3; transition: width .5s cubic-bezier(.2,.8,.2,1); }
|
|
|
|
|
|
.board.live .val b { position: relative; font-weight: 700; font-variant-numeric: tabular-nums; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.muted { color: var(--dim); font-size: 13px; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
|
|
|
|
|
|
.credits { margin: 14px 0 0; font-size: 12px; color: var(--dim); }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.credits a { color: var(--accent); text-decoration: none; }
|
2026-11-15 20:05:02 +01:00
|
|
|
|
.credits .build { color: #5a6273; font-size: 10.5px; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.credits a:hover { text-decoration: underline; }
|
|
|
|
|
|
.keys { display: grid; grid-template-columns: auto auto; gap: 3px 14px; text-align: left; margin: 10px auto 0; width: max-content; font-size: 13px; color: var(--dim); }
|
|
|
|
|
|
.keys b { color: var(--text); }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.err { color: var(--warn); font-size: 13px; min-height: 18px; margin: 6px 0; }
|
|
|
|
|
|
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* title screen: menu column on the left, the 3D camera ride stays visible on the right */
|
|
|
|
|
|
.title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-start;
|
|
|
|
|
|
background: linear-gradient(90deg, rgba(4,5,8,.93) 0%, rgba(4,5,8,.8) 30%, rgba(4,5,8,0) 62%); }
|
|
|
|
|
|
.tpanel { width: 420px; padding: 0 20px 0 44px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
|
|
|
|
|
|
.tlogoimg { width: 100%; max-height: 170px; object-fit: contain; object-position: left center;
|
2026-11-19 00:55:39 +01:00
|
|
|
|
transform-origin: left center; will-change: transform, filter;
|
|
|
|
|
|
filter: drop-shadow(0 6px 18px #000); animation: logoglow 3.6s ease-in-out infinite, logofloat 5s ease-in-out infinite, logoin .7s cubic-bezier(.2,1.3,.3,1) both; }
|
|
|
|
|
|
@keyframes logoglow { 50% { filter: drop-shadow(0 6px 18px #000) drop-shadow(0 0 16px rgba(255,122,26,.55)); } }
|
|
|
|
|
|
/* gentle idle motion: slow bob + slight tilt + breath (small amplitude, comfort-safe) */
|
|
|
|
|
|
@keyframes logofloat { 0%, 100% { transform: translateY(0) rotate(-0.6deg) scale(1); } 50% { transform: translateY(-7px) rotate(0.6deg) scale(1.02); } }
|
|
|
|
|
|
@keyframes logoin { 0% { opacity: 0; transform: translateY(18px) scale(.86); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.title .big { font: 62px var(--head); letter-spacing: .05em; color: var(--accent); line-height: .98;
|
2026-11-19 00:55:39 +01:00
|
|
|
|
transform-origin: left center; will-change: transform;
|
|
|
|
|
|
text-shadow: 0 5px 0 #5a2600, 0 0 40px rgba(255,122,26,.5);
|
|
|
|
|
|
animation: logofloat 5s ease-in-out infinite, bigglow 3.6s ease-in-out infinite, logoin .7s cubic-bezier(.2,1.3,.3,1) both; }
|
|
|
|
|
|
@keyframes bigglow { 50% { text-shadow: 0 5px 0 #5a2600, 0 0 64px rgba(255,122,26,.85); } }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.title .tag { color: #c9cfdc; margin: 0; text-shadow: 0 2px 4px #000; }
|
|
|
|
|
|
.hazbar { height: 5px; border-radius: 3px; background: var(--hazard); opacity: .9; }
|
|
|
|
|
|
.tmenu { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
|
|
|
|
|
|
.tmenu button { min-height: 48px; width: 100%; }
|
|
|
|
|
|
.trow2 { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
|
|
|
|
.trow2 button { flex: 1 1 auto; font-size: 13px; min-height: 36px; padding: 4px 10px; }
|
|
|
|
|
|
.title .credits { margin-top: 10px; }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
/* title: live ranking on the right, names fade in from the bottom up */
|
|
|
|
|
|
.trank { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 300px; max-width: 36vw;
|
|
|
|
|
|
background: rgba(12,14,19,.82); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; box-shadow: var(--hl), 0 8px 30px #000a; }
|
|
|
|
|
|
.trank h3 { margin: 0 0 9px; font: 15px var(--head); letter-spacing: .05em; color: var(--accent); display: flex; align-items: center; gap: 8px; }
|
|
|
|
|
|
.trank ol { list-style: none; margin: 0; padding: 0; }
|
|
|
|
|
|
.trank .trow { display: grid; grid-template-columns: 18px 20px 1fr auto; gap: 8px; align-items: center; padding: 5px 2px; font-size: 13px;
|
|
|
|
|
|
font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(255,255,255,.06); opacity: 0; animation: trankin .5s ease-out both; }
|
|
|
|
|
|
.trank .trow:last-child { border-bottom: none; }
|
|
|
|
|
|
.trank .trow.me { color: var(--accent); font-weight: 700; }
|
|
|
|
|
|
.trank .trk { text-align: center; color: var(--dim); font-weight: 700; }
|
|
|
|
|
|
.trank .trow:nth-child(1) .trk { color: #f2c230; } .trank .trow:nth-child(2) .trk { color: #cfd6e0; } .trank .trow:nth-child(3) .trk { color: #d08a4a; }
|
|
|
|
|
|
.trank .trn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
|
|
.trank .trmuted { color: var(--dim); font-size: 13px; list-style: none; }
|
|
|
|
|
|
@keyframes trankin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
|
|
|
|
|
|
@media (max-width: 720px) { .trank { display: none; } } /* too narrow -> hide, title stays usable */
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.skip { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: rgba(255,255,255,.55); }
|
|
|
|
|
|
.form { width: 320px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 8px; }
|
|
|
|
|
|
.form label { font-size: 13px; color: var(--dim); }
|
|
|
|
|
|
.form .chk { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--dim); }
|
|
|
|
|
|
.profiles { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
|
|
|
|
|
|
.profiles button { padding: 4px 10px; font-size: 13px; }
|
|
|
|
|
|
|
|
|
|
|
|
/* settings */
|
|
|
|
|
|
.set { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; align-items: center; text-align: left; min-width: 460px; }
|
|
|
|
|
|
.set input[type=range] { width: 100%; accent-color: var(--accent); }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
|
|
|
|
.seg button { flex: 1 1 56px; padding: 5px 8px; font-size: 13px; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.seg button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
/* compact settings: two columns of label + control */
|
2026-11-18 15:18:38 +01:00
|
|
|
|
.set2 { display: grid; grid-template-columns: 88px 1fr 88px 1fr; gap: 5px 10px; align-items: center; text-align: left; min-width: 620px; }
|
|
|
|
|
|
.set2 .sl, .setacc .sl, .setdev .sl { font-size: 12px; color: var(--dim); }
|
|
|
|
|
|
.setdev { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: center; text-align: left; margin-top: 8px;
|
|
|
|
|
|
padding-top: 8px; border-top: 1px solid var(--line); }
|
|
|
|
|
|
.setdev .row { display: flex; gap: 6px; } .setdev .row button { flex: 1; min-height: 34px; font-size: 12px; }
|
|
|
|
|
|
.set2 .seg button { padding: 4px 4px; font-size: 11.5px; min-height: 34px; }
|
|
|
|
|
|
.set2 input[type=range] { width: 100%; accent-color: var(--accent); height: 24px; }
|
|
|
|
|
|
.setacc { display: grid; grid-template-columns: 88px 1fr auto; gap: 10px; align-items: center; text-align: left; margin-top: 8px;
|
|
|
|
|
|
padding-top: 8px; border-top: 1px solid var(--line); }
|
|
|
|
|
|
.setacc .who { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
|
|
.selset { width: 100%; min-height: 34px; padding: 5px 8px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
|
|
|
|
|
|
/* first-start country picker */
|
|
|
|
|
|
.flaggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
|
|
|
|
|
|
.flagbtn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; min-height: 48px;
|
|
|
|
|
|
background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text); font-size: 12px; }
|
|
|
|
|
|
.flagbtn .fl { width: 34px; height: 22px; }
|
|
|
|
|
|
.flagbtn.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: rgba(255,122,26,.14); }
|
|
|
|
|
|
@media (hover: hover) { .flagbtn:hover { border-color: var(--accent); } }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
|
2026-11-13 01:02:55 +01:00
|
|
|
|
/* league */
|
2026-11-17 14:17:50 +01:00
|
|
|
|
/* tournament bracket */
|
|
|
|
|
|
.bracket { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 10px 0; }
|
|
|
|
|
|
.tcol { display: flex; flex-direction: column; justify-content: space-around; gap: 6px; flex: 1; min-width: 0; }
|
|
|
|
|
|
.tch { font: 10px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: center; margin-bottom: 2px; }
|
|
|
|
|
|
.tpair { background: rgba(12,14,19,.7); border: 1px solid var(--line); border-radius: var(--r2); padding: 3px;
|
|
|
|
|
|
display: flex; flex-direction: column; gap: 3px; position: relative; }
|
|
|
|
|
|
.tpair.now { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,122,26,.3); }
|
|
|
|
|
|
.tslot { font-size: 11.5px; padding: 3px 7px; border-radius: var(--r1); background: var(--panel2);
|
|
|
|
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
|
|
|
|
|
|
.tslot.win { color: var(--text); font-weight: 700; }
|
|
|
|
|
|
.tslot .ki { font-size: 9px; background: #3c4556; color: #c9cfdc; border-radius: 3px; padding: 0 3px; vertical-align: middle; }
|
|
|
|
|
|
.tslot.you { background: #2a1c10; color: var(--accent); border: 1px solid var(--accent); }
|
|
|
|
|
|
.tslot.you.win { background: var(--accent); color: #1a0c02; }
|
|
|
|
|
|
.tgo { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); background: var(--accent);
|
|
|
|
|
|
color: #1a0c02; font: 10px var(--head); padding: 2px 6px; border-radius: 5px; z-index: 1; white-space: nowrap; }
|
|
|
|
|
|
@media (hover: hover) { .tpair.now:hover { filter: brightness(1.1); } }
|
|
|
|
|
|
.clstabs { margin: 0 auto 10px; max-width: 520px; }
|
|
|
|
|
|
.clstabs button { flex: 1; padding: 6px 8px; font: 13px var(--head); letter-spacing: .03em; line-height: 1.25; }
|
|
|
|
|
|
.clstabs button small { display: block; font: 11px "Segoe UI", sans-serif; letter-spacing: 0; color: var(--dim); }
|
|
|
|
|
|
.clstabs button.on small { color: #4a2a08; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.opps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
|
|
|
|
|
|
.opp { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; text-align: center; position: relative; }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
.opp > .pic { width: 100%; height: 78px; font-size: 48px; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.opp .nm { font: 14px var(--head); letter-spacing: .03em; }
|
|
|
|
|
|
.opp .sm { font-size: 11px; color: var(--dim); min-height: 28px; }
|
|
|
|
|
|
.opp .pz { color: var(--gold); font-size: 13px; display: flex; gap: 4px; justify-content: center; align-items: center; }
|
|
|
|
|
|
.opp .pz .pic { width: 16px; height: 16px; }
|
|
|
|
|
|
.opp.done { opacity: .6; } .opp.done::after { content: '✓'; position: absolute; top: 4px; right: 8px; color: var(--good); font: 22px var(--head); }
|
|
|
|
|
|
.opp.next { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,122,26,.35), 0 0 24px rgba(255,122,26,.25); }
|
|
|
|
|
|
.opp.locked .pic { filter: brightness(.15) grayscale(1); }
|
|
|
|
|
|
.vs { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 10px; margin: 6px 0 10px; }
|
|
|
|
|
|
.vs .side { text-align: center; }
|
|
|
|
|
|
.vs .side > .pic { width: 210px; height: 170px; font-size: 90px; }
|
|
|
|
|
|
.vs .mid { font: 46px var(--head); color: var(--accent); text-shadow: 0 3px 0 #5a2600; }
|
|
|
|
|
|
.vs .nm { font: 20px var(--head); }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.res { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; text-align: left; margin: 10px auto; width: 300px; font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
.res .plus { color: var(--good); } .res .minus { color: var(--warn); }
|
|
|
|
|
|
|
2026-11-13 01:02:55 +01:00
|
|
|
|
/* shop */
|
2026-11-18 15:18:38 +01:00
|
|
|
|
#shop { position: absolute; inset: 44px 0 0; display: grid; grid-template-columns: 1fr 560px; z-index: 3; pointer-events: none; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
#shop.hide, #fightHud.hide { display: none; }
|
|
|
|
|
|
#shop > * { pointer-events: auto; }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
/* left grid cell = the free area left of the shop panel; robot renders centered behind it */
|
|
|
|
|
|
#sLeft { position: relative; pointer-events: none; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
#sLeft > * { pointer-events: auto; }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
.slTL { position: absolute; left: 14px; top: 12px; width: 230px; display: flex; flex-direction: column; gap: 8px; }
|
|
|
|
|
|
.slBottom { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(96%, 660px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* hangar: robot slots at the top of the shop */
|
|
|
|
|
|
.hangar { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
|
|
|
|
|
|
.hslot { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 12px; max-width: 120px; }
|
|
|
|
|
|
.hslot .hn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
|
|
.hslot.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
|
|
|
|
|
.hslot .hdel { font-size: 11px; opacity: .7; padding: 0 2px; border-radius: 4px; }
|
|
|
|
|
|
.hslot .hdel:hover { background: rgba(0,0,0,.25); opacity: 1; }
|
|
|
|
|
|
.hadd { padding: 4px 11px; font-size: 15px; font-weight: 700; color: var(--accent); }
|
|
|
|
|
|
/* name plate riveted to the robot, always readable (not only on hover) */
|
2026-11-18 15:18:38 +01:00
|
|
|
|
#rname { width: 100%; font: 18px var(--head); letter-spacing: .04em; background: rgba(11,14,20,.82);
|
2026-11-15 17:08:11 +01:00
|
|
|
|
border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r2);
|
|
|
|
|
|
color: var(--text); padding: 4px 10px; text-shadow: 0 2px 6px #000; box-shadow: var(--hl); }
|
|
|
|
|
|
#rname:hover, #rname:focus { border-color: var(--accent); outline: none; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.mech { display: flex; gap: 8px; align-items: flex-end; }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
.mech .pic { width: 42px; height: 50px; font-size: 28px; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
.mech .bubble { background: rgba(250,246,238,.95); color: #1b1d22; border-radius: 10px 10px 10px 2px; padding: 6px 9px; font-size: 12px; line-height: 1.3; max-width: 240px; box-shadow: 0 4px 14px #0008; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.spacer { flex: 1; pointer-events: none !important; }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
.stats { background: rgba(12,14,19,.88); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; width: 100%;
|
|
|
|
|
|
display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12px; font-variant-numeric: tabular-nums; box-shadow: var(--hl); }
|
|
|
|
|
|
.stats .st { flex: 1 1 120px; display: grid; grid-template-columns: 18px 1fr 50px; gap: 6px; align-items: center; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.stats .st > span:last-child { text-align: right; }
|
|
|
|
|
|
#shop.painting .mech, #shop.painting .stats { display: none; }
|
|
|
|
|
|
.stats .pic { width: 18px; height: 18px; font-size: 16px; }
|
|
|
|
|
|
.bar { height: 8px; background: #0b0e14; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); position: relative; }
|
|
|
|
|
|
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
|
|
|
|
|
|
.bar i.ghost { background: rgba(255,255,255,.35); }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.bar i.over { background: var(--warn); }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
/* over-limit meter (weight / power) flashes so the problem is obvious at a glance */
|
|
|
|
|
|
.st.warn { animation: meterpulse 0.7s ease-in-out 4; border-radius: 6px; }
|
|
|
|
|
|
.st.warn .pic, .st.warn > span:last-child { color: var(--warn); font-weight: 700; }
|
|
|
|
|
|
.st.warn .bar i.over { animation: barpulse 0.7s ease-in-out infinite; }
|
|
|
|
|
|
@keyframes meterpulse { 0%, 100% { filter: none; } 50% { filter: brightness(1.9); } }
|
|
|
|
|
|
@keyframes barpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
|
|
|
|
|
|
.gbar .err.alert { color: #fff; background: var(--warn); border-radius: 6px; padding: 3px 8px; font-size: 10.5px; font-weight: 700; line-height: 1.25;
|
|
|
|
|
|
box-shadow: 0 0 0 1px #000 inset, 0 2px 10px #0008; animation: errblink 0.46s steps(1, end) 6; }
|
|
|
|
|
|
@keyframes errblink { 0%, 100% { background: var(--warn); color: #fff; } 50% { background: #5a1410; color: #ffb9a6; } }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.paint { display: flex; gap: 3px; align-items: center; font-size: 11px; color: var(--dim); }
|
|
|
|
|
|
.paint span.sw { width: 15px; height: 15px; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.paint span.sw.on { border-color: #fff; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.paint .lb { width: 46px; }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
#sRight { background: rgba(14,16,22,.9); border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 10px 12px; gap: 8px; min-height: 0; width: 100%; max-width: 560px; margin-left: auto; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#buildView { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
|
|
|
|
|
|
#buildView.hide, #paintView.hide, #hangarView.hide { display: none; }
|
|
|
|
|
|
#paintView, #hangarView { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
|
|
|
|
|
|
/* top mode tabs (Parts / Paint / Hangar) */
|
|
|
|
|
|
.shoptabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
|
|
|
|
|
|
.shoptabs button { padding: 6px 4px; font: 12.5px var(--head); letter-spacing: .03em; }
|
|
|
|
|
|
.shoptabs button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); }
|
|
|
|
|
|
/* zoom bar under the preview */
|
|
|
|
|
|
.zoombar { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--dim); margin-bottom: 2px; }
|
|
|
|
|
|
.zoombar button { width: 30px; height: 26px; padding: 0; font-size: 16px; font-weight: 700; }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
.placebtn { width: 100%; min-height: 40px; font: 13px var(--head); letter-spacing: .03em; border-left: 3px solid var(--accent); }
|
|
|
|
|
|
.placebtn::before { content: '🔧 '; }
|
|
|
|
|
|
.placebtn.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); }
|
|
|
|
|
|
.placehint { font-size: 11.5px; color: var(--dim); background: rgba(8,10,14,.7); border: 1px solid var(--line);
|
|
|
|
|
|
border-radius: 8px; padding: 5px 8px; line-height: 1.3; }
|
|
|
|
|
|
.placehint.hide { display: none; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* fitted parts strip (bottom of the parts view): 7 compact chips, does not cover the robot preview */
|
|
|
|
|
|
.fittedwrap { border-top: 1px solid var(--line); padding-top: 5px; }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
.flabel { font: 10px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.fitted { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
|
|
|
|
|
|
.fitted .frow { display: flex; flex-direction: column; align-items: center; gap: 1px; background: rgba(8,10,14,.75);
|
2026-11-17 14:17:50 +01:00
|
|
|
|
border: 1px solid #262c36; border-radius: var(--r1); padding: 2px 3px; font-size: 11px; cursor: pointer;
|
2026-11-15 17:08:11 +01:00
|
|
|
|
position: relative; min-width: 0; box-shadow: none; }
|
|
|
|
|
|
@media (hover: hover) { .fitted .frow:hover { border-color: var(--accent); } }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
.fitted .frow .pic { width: 16px; height: 16px; font-size: 13px; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.fitted .frow .fn { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
|
|
.fitted .frow .fn.empty { color: var(--dim); }
|
|
|
|
|
|
.fitted .frow .frm { position: absolute; top: -5px; right: -4px; font-size: 11px; color: #fff; background: var(--warn);
|
|
|
|
|
|
width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
|
|
|
|
|
|
/* hangar management (top-tab Hangar) */
|
|
|
|
|
|
.hmgr { display: flex; flex-direction: column; gap: 6px; }
|
|
|
|
|
|
.hmrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; background: var(--panel2);
|
|
|
|
|
|
border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
|
|
|
|
|
|
.hmrow.on { border-color: var(--accent); background: #2a1c10; }
|
|
|
|
|
|
.hmrow .hmn { font: 15px var(--head); letter-spacing: .02em; }
|
|
|
|
|
|
.hmrow .hmw { font-size: 12px; color: var(--dim); }
|
|
|
|
|
|
/* category tabs: a strip of folder tabs sitting ON the card panel - clearly navigation, not parts */
|
|
|
|
|
|
.tabs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; border-bottom: 2px solid var(--line); }
|
|
|
|
|
|
.tab { background: #141922; border: 1px solid var(--line); border-bottom: none;
|
2026-11-17 14:17:50 +01:00
|
|
|
|
border-radius: var(--r2) var(--r2) 0 0; margin-bottom: -2px; padding: 2px 2px 4px;
|
|
|
|
|
|
display: flex; flex-direction: column; align-items: center; gap: 0; cursor: pointer;
|
|
|
|
|
|
font-size: 10.5px; letter-spacing: .02em; color: var(--dim); }
|
|
|
|
|
|
.tab .pic { width: 20px; height: 20px; font-size: 16px; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
@media (hover: hover) { .tab:hover { border-color: var(--accent); } }
|
|
|
|
|
|
.tab.on { background: linear-gradient(#3a2414, #1d1410); border-color: var(--accent); color: var(--accent);
|
|
|
|
|
|
font-weight: 700; border-bottom: 2px solid #1d1410; } /* open tab merges into the panel below */
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.tab.miss { border-color: var(--warn); }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
#designer { background: var(--panel2); background-image: var(--sheen); border: 1px solid var(--line);
|
|
|
|
|
|
border-left: 3px solid var(--accent); border-radius: var(--r2); box-shadow: var(--hl); padding: 5px 10px; }
|
|
|
|
|
|
#designer.hide { display: none; }
|
|
|
|
|
|
#designer.shut { padding: 3px 10px; }
|
|
|
|
|
|
#designer .dh { display: flex; align-items: center; gap: 8px; font: 11px var(--head); letter-spacing: .05em;
|
|
|
|
|
|
text-transform: uppercase; color: var(--accent); }
|
|
|
|
|
|
#designer.open .dh { margin-bottom: 3px; }
|
|
|
|
|
|
#designer .dh .dtitle { cursor: pointer; display: flex; align-items: center; gap: 6px; flex: 1; user-select: none; }
|
|
|
|
|
|
#designer .dh .dtitle .caret { font-size: 9px; opacity: .8; }
|
|
|
|
|
|
#designer .dh button { padding: 2px 9px; font-size: 11px; min-height: 0; }
|
|
|
|
|
|
#designer .drow { display: grid; grid-template-columns: 48px 1fr 34px; gap: 8px; align-items: center; font-size: 11px; margin: 2px 0; }
|
|
|
|
|
|
#designer .drow input[type=range] { width: 100%; accent-color: var(--accent); height: 20px; }
|
|
|
|
|
|
#designer .drow .dv { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
#cards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px;
|
|
|
|
|
|
align-content: start; padding: 8px; background: rgba(0,0,0,.26); border: 1px solid var(--line); border-top: none;
|
2026-11-15 17:08:11 +01:00
|
|
|
|
border-radius: 0 0 var(--r2) var(--r2); }
|
|
|
|
|
|
.item { background: linear-gradient(#252b37, #171b23); border: 1px solid #39414f; border-radius: var(--r2);
|
2026-11-18 15:18:38 +01:00
|
|
|
|
padding: 16px 4px 5px; cursor: pointer; text-align: center; position: relative; min-width: 0;
|
|
|
|
|
|
display: flex; flex-direction: column; gap: 2px; box-shadow: var(--hl), 0 2px 0 rgba(0,0,0,.45); }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
@media (hover: hover) { .item:hover { border-color: #5a6478; } }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.item.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,122,26,.3); }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
.item > .pic { width: 100%; height: 42px; font-size: 30px; }
|
|
|
|
|
|
.item .nm { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
.item .pr { font-size: 11px; color: var(--gold); display: flex; gap: 3px; justify-content: center; align-items: center;
|
2026-11-15 17:08:11 +01:00
|
|
|
|
font-variant-numeric: tabular-nums; background: rgba(0,0,0,.3); border-radius: var(--r1); padding: 0 4px; margin: 2px auto 0; width: fit-content; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.item .pr .pic { width: 14px; height: 14px; }
|
|
|
|
|
|
.item .pr.no { color: var(--warn); }
|
2026-11-18 15:18:38 +01:00
|
|
|
|
/* badge as a thin ribbon across the top so it never overlaps the image */
|
|
|
|
|
|
.item .badge { position: absolute; top: 3px; left: 3px; right: 3px; text-align: center; font-size: 9px; font-weight: 700;
|
|
|
|
|
|
letter-spacing: .02em; padding: 1px 0; border-radius: 5px; background: var(--accent); color: #1a0c02; white-space: nowrap; overflow: hidden; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.item .badge.own { background: #3c4556; color: var(--text); }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
#detail { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; display: grid; grid-template-columns: 46px 1fr auto; gap: 9px; align-items: center; min-height: 56px; }
|
|
|
|
|
|
#detail > .pic { width: 46px; height: 46px; font-size: 32px; }
|
|
|
|
|
|
#detail .nm { font: 15px var(--head); letter-spacing: .03em; }
|
|
|
|
|
|
#detail .ds { font-size: 11.5px; color: var(--dim); margin: 1px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
|
|
.chips { display: flex; flex-wrap: wrap; gap: 3px; }
|
|
|
|
|
|
.chips span { background: #0f1218; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: 11px; display: inline-flex; gap: 3px; align-items: center; font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
.chips span .pic { width: 12px; height: 12px; font-size: 10px; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.chips span.up { color: var(--good); border-color: #2e5a3e; } .chips span.down { color: var(--warn); border-color: #5a2e2e; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.chips span.key { color: var(--accent); border-color: #5a3a18; background: #1d1409; font-weight: 700; }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
#detail .act { display: flex; flex-direction: column; gap: 5px; min-width: 116px; }
|
|
|
|
|
|
#detail .act button { padding: 7px 10px; min-height: 36px; }
|
|
|
|
|
|
#detail .act .primary { min-height: 42px; font-size: 14px; }
|
2026-11-13 01:02:55 +01:00
|
|
|
|
.gbar { display: flex; gap: 6px; align-items: center; }
|
|
|
|
|
|
.gbar .err { flex: 1; margin: 0; font-size: 12px; text-align: left; }
|
|
|
|
|
|
.gbar .primary { padding: 9px 26px; }
|
|
|
|
|
|
|
2026-11-17 14:17:50 +01:00
|
|
|
|
#hud .rank { font-size: 11.5px; color: var(--dim); letter-spacing: .02em; }
|
|
|
|
|
|
.htour { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700;
|
|
|
|
|
|
font-size: 13px; animation: tourpulse 1.6s ease-in-out infinite; }
|
|
|
|
|
|
@keyframes tourpulse { 50% { box-shadow: 0 0 0 3px rgba(255,122,26,.35); } }
|
|
|
|
|
|
.htour.hide { display: none; }
|
|
|
|
|
|
/* backend news + running event */
|
|
|
|
|
|
.motd { margin: 6px 0 0; font-size: 13px; color: #c9cfdc; text-shadow: 0 2px 4px #000; }
|
|
|
|
|
|
.evbar { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 5px 10px;
|
|
|
|
|
|
background: rgba(255,122,26,.16); border: 1px solid var(--accent); border-radius: var(--r2);
|
|
|
|
|
|
font-size: 13px; text-align: left; }
|
|
|
|
|
|
.evbar b { font: 13px var(--head); letter-spacing: .04em; color: var(--accent); }
|
|
|
|
|
|
.chip.clickable { cursor: pointer; }
|
|
|
|
|
|
@media (hover: hover) { .chip.clickable:hover { border-color: var(--accent); } }
|
|
|
|
|
|
/* achievements */
|
|
|
|
|
|
.achwon { margin: 10px auto 0; max-width: 340px; text-align: left; font-size: 13px;
|
|
|
|
|
|
background: rgba(255,122,26,.1); border: 1px solid var(--accent); border-radius: var(--r2); padding: 8px 10px; }
|
|
|
|
|
|
.achwon b { display: block; margin-bottom: 4px; color: var(--accent); font: 13px var(--head); letter-spacing: .04em; }
|
|
|
|
|
|
.achwon div { display: flex; justify-content: space-between; gap: 10px; }
|
|
|
|
|
|
.rankbar { margin: 4px 0 12px; }
|
|
|
|
|
|
.rankbar .rt { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 4px; }
|
|
|
|
|
|
.rankbar .rt b { font: 17px var(--head); color: var(--accent); letter-spacing: .03em; }
|
|
|
|
|
|
.achlist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; }
|
|
|
|
|
|
.achrow { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px;
|
|
|
|
|
|
background: var(--panel2); background-image: var(--sheen); border: 1px solid var(--line);
|
|
|
|
|
|
border-radius: var(--r2); padding: 6px 9px; box-shadow: var(--hl); }
|
|
|
|
|
|
.achrow.done { border-color: var(--good); }
|
|
|
|
|
|
.achrow.todo { opacity: .55; }
|
|
|
|
|
|
.achrow .an { font-weight: 700; }
|
|
|
|
|
|
.achrow .ad { font-size: 11.5px; color: var(--dim); font-weight: 400; }
|
|
|
|
|
|
.achrow .am { font-size: 16px; text-align: center; }
|
2026-11-19 00:55:39 +01:00
|
|
|
|
/* missions page */
|
|
|
|
|
|
.misslist { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; text-align: left; }
|
|
|
|
|
|
.missrow { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; background: var(--panel2);
|
|
|
|
|
|
border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
|
|
|
|
|
|
.missrow.done { border-color: var(--good); }
|
|
|
|
|
|
.missrow .mm { font-size: 18px; text-align: center; }
|
|
|
|
|
|
.missrow .mn { font-weight: 700; font-size: 13px; }
|
|
|
|
|
|
.missrow .md { font-size: 11.5px; color: var(--dim); margin: 1px 0 4px; }
|
|
|
|
|
|
.missrow .mi .bar { height: 7px; }
|
|
|
|
|
|
.missrow .mr { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 12px; white-space: nowrap; }
|
|
|
|
|
|
.missrow .mp { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 11px; }
|
|
|
|
|
|
#bMissions { position: relative; }
|
|
|
|
|
|
#bMissions.alert::after { content: ''; position: absolute; top: 3px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
|
|
|
|
|
|
background: var(--accent); box-shadow: 0 0 6px var(--accent); }
|
|
|
|
|
|
/* legal pages (Impressum / Datenschutz) */
|
|
|
|
|
|
.legalseg { margin: 6px auto 10px; max-width: 360px; }
|
|
|
|
|
|
.legaltext { max-height: 48vh; overflow: auto; text-align: left; font-size: 13px; line-height: 1.5; color: var(--text);
|
|
|
|
|
|
background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
|
|
|
|
|
|
.legaltext p { margin: 0 0 9px; color: inherit; }
|
|
|
|
|
|
.legaltext b { color: var(--accent); }
|
|
|
|
|
|
.pgrid .sw.locked { cursor: not-allowed; opacity: .55; }
|
|
|
|
|
|
.pgrid .sw .lk { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; text-shadow: 0 1px 2px #000; }
|
2026-11-17 14:17:50 +01:00
|
|
|
|
|
2026-11-18 15:18:38 +01:00
|
|
|
|
/* paint tab: compact colour chips (must fit without scrolling) */
|
|
|
|
|
|
#shop.paintmode #tabs, #shop.paintmode #detail, #shop.paintmode #fittedwrap { display: none !important; }
|
|
|
|
|
|
.psec { margin: 0 0 2px; }
|
|
|
|
|
|
.psec h4 { margin: 0 0 2px; font: 8.5px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
|
|
|
|
|
|
.pgrid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
|
|
|
|
|
|
.pgrid.wide { grid-template-columns: repeat(10, 1fr); }
|
|
|
|
|
|
.pgrid .sw { position: relative; height: 16px; border-radius: var(--r1); border: 1.5px solid #000a;
|
2026-11-15 17:08:11 +01:00
|
|
|
|
cursor: pointer; box-shadow: var(--hl), 0 2px 0 rgba(0,0,0,.4); transition: transform .1s; }
|
|
|
|
|
|
@media (hover: hover) { .pgrid .sw:hover { transform: translateY(-2px); } }
|
|
|
|
|
|
.pgrid .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
|
|
|
|
|
|
.pgrid .sw.on::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center;
|
2026-11-18 15:18:38 +01:00
|
|
|
|
justify-content: center; color: #fff; font-size: 10px; font-weight: 700; text-shadow: 0 1px 3px #000; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.pgrid .duo { display: flex; overflow: hidden; }
|
|
|
|
|
|
.pgrid .duo i { flex: 1; }
|
|
|
|
|
|
.pcustom { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
|
|
|
|
|
|
background: var(--panel2); background-image: var(--sheen); border: 1px solid var(--line);
|
|
|
|
|
|
border-left: 3px solid var(--accent); border-radius: var(--r3); padding: 12px 14px; box-shadow: var(--hl); }
|
|
|
|
|
|
.pcustom .pct { display: flex; flex-direction: column; gap: 3px; text-align: left; }
|
|
|
|
|
|
.pcustom .pct b { font: 16px var(--head); letter-spacing: .03em; }
|
|
|
|
|
|
.pcustom .pct .muted { font-size: 12.5px; }
|
|
|
|
|
|
.pcustom .primary { font-size: 22px; padding: 10px 22px; }
|
|
|
|
|
|
|
2026-11-13 01:02:55 +01:00
|
|
|
|
/* paint booth (painter.js) */
|
|
|
|
|
|
#painter { grid-column: 2; grid-row: 1; background: rgba(14,16,22,.94); border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 10px 12px; gap: 7px; }
|
|
|
|
|
|
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
|
|
|
|
.pt-head h3 { margin: 0; font: 16px var(--head); color: var(--accent); letter-spacing: .05em; }
|
|
|
|
|
|
.pt-head .seg button { padding: 3px 7px; font-size: 11.5px; }
|
|
|
|
|
|
.pt-canvas { position: relative; }
|
|
|
|
|
|
.pt-canvas canvas { position: static; display: block; width: 594px; height: 297px; border-radius: 8px; border: 1px solid var(--line); cursor: crosshair; touch-action: none;
|
|
|
|
|
|
background-image: linear-gradient(90deg, transparent 49.8%, rgba(0,0,0,.7) 49.8%, rgba(0,0,0,.7) 50.2%, transparent 50.2%), linear-gradient(0deg, transparent 49.7%, rgba(255,255,255,.12) 49.7%, rgba(255,255,255,.12) 50.3%, transparent 50.3%); }
|
|
|
|
|
|
.pt-lab { position: absolute; top: 4px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 5px; pointer-events: none; }
|
|
|
|
|
|
.pt-lab.l { left: 6px; } .pt-lab.r { left: 303px; }
|
|
|
|
|
|
.pt-tools { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
|
|
|
|
|
|
.pt-tools button { padding: 4px 8px; font-size: 12px; }
|
|
|
|
|
|
.pt-tools button.on, .pt-st.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
|
|
|
|
|
.pt-chk { font-size: 12px; color: var(--dim); display: flex; gap: 4px; align-items: center; margin-left: auto; }
|
|
|
|
|
|
.pt-row { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--dim); min-height: 30px; }
|
|
|
|
|
|
.pt-row input[type=range] { width: 120px; accent-color: var(--accent); }
|
|
|
|
|
|
.pt-row #ptExtra { display: flex; gap: 3px; flex-wrap: wrap; flex: 1; }
|
|
|
|
|
|
.pt-row #ptExtra input { padding: 4px 8px; }
|
|
|
|
|
|
.pt-st { padding: 1px 6px; font-size: 15px; min-width: 28px; }
|
|
|
|
|
|
.pt-colors { display: flex; gap: 4px; align-items: center; }
|
|
|
|
|
|
.pt-colors .sw { width: 22px; height: 22px; border-radius: 5px; border: 2px solid rgba(255,255,255,.15); cursor: pointer; }
|
|
|
|
|
|
.pt-colors .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
|
|
|
|
|
|
.pt-colors input[type=color] { width: 34px; height: 26px; border: none; background: none; padding: 0; cursor: pointer; }
|
|
|
|
|
|
#bPaint { align-self: flex-start; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
/* lobby (touch-friendly: big rows + buttons) */
|
|
|
|
|
|
.lobbybar { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
|
|
|
|
|
|
.flags { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
|
|
|
|
.flag { padding: 5px 6px; line-height: 0; }
|
|
|
|
|
|
/* flags drawn with CSS (no flag emoji on Windows) */
|
|
|
|
|
|
.fl { display: inline-block; width: 30px; height: 20px; border-radius: 3px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,.25); background: #555; }
|
|
|
|
|
|
.fl-DE { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
|
|
|
|
|
|
.fl-AT { background: linear-gradient(#c8102e 33.3%, #fff 33.3% 66.6%, #c8102e 66.6%); }
|
|
|
|
|
|
.fl-CH { background: linear-gradient(#fff, #fff) center / 56% 20% no-repeat, linear-gradient(#fff, #fff) center / 20% 56% no-repeat, #d52b1e; }
|
|
|
|
|
|
.fl-GB { background: linear-gradient(#c8102e, #c8102e) center / 100% 18% no-repeat, linear-gradient(#c8102e, #c8102e) center / 12% 100% no-repeat,
|
|
|
|
|
|
linear-gradient(#fff, #fff) center / 100% 34% no-repeat, linear-gradient(#fff, #fff) center / 22% 100% no-repeat, #012169; }
|
|
|
|
|
|
.fl-US { background: linear-gradient(#3c3b6e, #3c3b6e) left top / 42% 54% no-repeat, repeating-linear-gradient(#b22234 0 15.4%, #fff 15.4% 30.8%); }
|
|
|
|
|
|
.fl-FR { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
|
|
|
|
|
|
.fl-ES { background: linear-gradient(#aa151b 25%, #f1bf00 25% 75%, #aa151b 75%); }
|
|
|
|
|
|
.fl-IT { background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
|
|
|
|
|
|
.fl-NL { background: linear-gradient(#ae1c28 33.3%, #fff 33.3% 66.6%, #21468b 66.6%); }
|
|
|
|
|
|
.fl-PL { background: linear-gradient(#fff 50%, #dc143c 50%); }
|
|
|
|
|
|
.fl-TR { background: radial-gradient(circle at 42% 50%, #fff 0 20%, transparent 21%), #e30a17; }
|
|
|
|
|
|
.fl-RU { background: linear-gradient(#fff 33.3%, #0039a6 33.3% 66.6%, #d52b1e 66.6%); }
|
|
|
|
|
|
.fl-BR { background: radial-gradient(circle, #002776 0 22%, #fedf00 23% 46%, transparent 47%), #009b3a; }
|
|
|
|
|
|
.fl-JP { background: radial-gradient(circle, #bc002d 0 30%, transparent 31%), #fff; }
|
|
|
|
|
|
.fl-KR { background: radial-gradient(circle, #cd2e3a 0 14%, #0047a0 15% 28%, transparent 29%), #fff; }
|
|
|
|
|
|
.fl-XX { background: repeating-linear-gradient(45deg, #5a6272 0 5px, #454c5a 5px 10px); }
|
|
|
|
|
|
.flag.on { background: var(--accent); border-color: var(--accent); }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* two-pane lobby: country rooms left, player list right (own style) */
|
|
|
|
|
|
.lobbyfull { display: grid; grid-template-columns: 318px 1fr; gap: 12px; width: 1040px; height: 560px;
|
|
|
|
|
|
background: rgba(21, 25, 32, .95); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 20px 60px #000a; }
|
|
|
|
|
|
.lobbyL, .lobbyR { display: flex; flex-direction: column; min-height: 0; }
|
|
|
|
|
|
.lobbyLh { font: 15px var(--head); letter-spacing: .05em; color: var(--accent); margin-bottom: 8px; }
|
|
|
|
|
|
.roomlist { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; padding-right: 2px; }
|
|
|
|
|
|
.roomlist .rroom:first-child { grid-column: 1 / -1; }
|
|
|
|
|
|
.rroom { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 5px 8px; text-align: left; font-size: 12.5px; background: var(--panel2); }
|
|
|
|
|
|
.rroom .rfl { line-height: 0; } .rroom .rfl .fl { width: 22px; height: 14px; }
|
|
|
|
|
|
.rroom .rn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
|
|
.rroom .cnt { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 12px; min-width: 16px; text-align: right; }
|
|
|
|
|
|
.rroom .cnt.live { color: var(--good); font-weight: 700; }
|
|
|
|
|
|
.rroom.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
|
|
|
|
|
.rroom.on .cnt { color: #1a0c02; }
|
2026-11-19 00:55:39 +01:00
|
|
|
|
.rroom.joined:not(.on) { border-color: var(--accent); }
|
|
|
|
|
|
.rroom .rhere { font-size: 10px; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.lobbyRh { display: flex; align-items: center; gap: 8px; font: 18px var(--head); letter-spacing: .03em; margin-bottom: 8px; }
|
|
|
|
|
|
.lobbyRh .grow { flex: 1; }
|
|
|
|
|
|
.lobbyRh .flagpick { font: 12px "Segoe UI", sans-serif; color: var(--dim); display: flex; gap: 6px; align-items: center; }
|
|
|
|
|
|
.lobbyRh select { font: inherit; font-size: 13px; color: var(--text); background: #0b0e14; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; cursor: pointer; }
|
|
|
|
|
|
.lobbyR .plist { flex: 1; max-height: none; }
|
|
|
|
|
|
.plist { max-height: 316px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 4px 0; min-width: 440px; }
|
|
|
|
|
|
.prow { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 9px; align-items: center;
|
|
|
|
|
|
background: var(--panel2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; }
|
|
|
|
|
|
.prow .pf { line-height: 0; } .prow .pn { font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
|
|
.prow .pfame { color: var(--gold); font-size: 12.5px; font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
.prow .chal { padding: 5px 14px; font-size: 13px; background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
|
|
|
|
|
.prow .pbusy { color: var(--dim); font-size: 12px; padding: 5px 8px; }
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
.prow.me { border-color: var(--accent); background: #2a1c10; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.prow .pf .fl { width: 26px; height: 17px; }
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
|
2026-11-13 00:41:54 +01:00
|
|
|
|
/* fight HUD */
|
|
|
|
|
|
#fightHud { position: absolute; left: 0; right: 0; top: 0; padding: 10px 14px; display: grid; grid-template-columns: 1fr 150px 1fr;
|
2026-11-13 01:02:55 +01:00
|
|
|
|
gap: 12px; pointer-events: none; z-index: 4; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
.fbox { background: rgba(10, 12, 16, .78); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
|
|
|
|
|
|
.fbox .fn { font: 16px var(--head); letter-spacing: .04em; display: flex; justify-content: space-between; }
|
|
|
|
|
|
.fbox .fn small { font: 12px "Segoe UI", sans-serif; color: var(--dim); }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
.fsub { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 11.5px; color: var(--dim);
|
|
|
|
|
|
font-variant-numeric: tabular-nums; min-height: 15px; }
|
|
|
|
|
|
#fRight .fsub { flex-direction: row-reverse; }
|
|
|
|
|
|
.fsub .lost { color: var(--warn); font-weight: 700; }
|
|
|
|
|
|
.fsub .hpn { font-weight: 700; color: var(--text); }
|
|
|
|
|
|
.fsub .pts { display: flex; gap: 5px; }
|
|
|
|
|
|
.fsub .pt { position: relative; line-height: 0; }
|
|
|
|
|
|
.fsub .pt .pic { width: 17px; height: 17px; font-size: 13px; }
|
|
|
|
|
|
.fsub .pt.gone { opacity: .45; }
|
|
|
|
|
|
.fsub .pt.gone::after { content: '✕'; position: absolute; inset: 0; display: flex; align-items: center;
|
|
|
|
|
|
justify-content: center; color: var(--warn); font-size: 15px; font-weight: 700; line-height: 1; }
|
|
|
|
|
|
.hp { position: relative; height: 16px; background: #0b0e14; border-radius: 3px; overflow: hidden;
|
|
|
|
|
|
margin-top: 5px; border: 1px solid #000; transform: skewX(-12deg); }
|
|
|
|
|
|
.hp i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .15s; }
|
|
|
|
|
|
.hp i.g { background: #8d2018; transition: width .55s ease .2s; } /* damage trail */
|
|
|
|
|
|
.hp::after { content: ''; position: absolute; inset: 0; pointer-events: none;
|
|
|
|
|
|
background: repeating-linear-gradient(90deg, transparent 0 17px, rgba(0,0,0,.55) 17px 19px); }
|
|
|
|
|
|
.fbox.hurt { border-color: var(--warn); animation: lowhp 1s infinite; }
|
|
|
|
|
|
@keyframes lowhp { 50% { border-color: var(--line); } }
|
|
|
|
|
|
.fbox.hit { background-color: rgba(255,90,74,.3); }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
#fRight { text-align: right; } #fRight .fn { flex-direction: row-reverse; }
|
|
|
|
|
|
#fMid { text-align: center; }
|
|
|
|
|
|
#fTime { font: 34px var(--head); line-height: 1; letter-spacing: .04em; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#fTime.low { color: var(--warn); animation: tick 1s steps(2) infinite; }
|
|
|
|
|
|
@keyframes tick { 50% { opacity: .45; } }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
#fState { font-size: 12px; color: var(--accent); min-height: 16px; font-weight: 700; letter-spacing: .05em; }
|
|
|
|
|
|
|
2026-11-15 17:08:11 +01:00
|
|
|
|
/* cooldown chips: ring empties while the part recharges */
|
|
|
|
|
|
#fCds { position: absolute; left: 50%; transform: translateX(-50%); bottom: 58px; z-index: 4; display: none;
|
|
|
|
|
|
gap: 14px; pointer-events: none; }
|
|
|
|
|
|
body[data-mode="fight"] #fCds, body[data-mode="pause"] #fCds { display: flex; }
|
|
|
|
|
|
.cdchip { --p: 0; position: relative; width: 52px; height: 52px; border-radius: 50%; padding: 3px;
|
|
|
|
|
|
background: conic-gradient(#2b3240 calc(var(--p) * 360deg), var(--accent) 0); }
|
|
|
|
|
|
.cdchip .in { width: 100%; height: 100%; border-radius: 50%; background: #0d1016; border: 1px solid #000;
|
|
|
|
|
|
display: flex; align-items: center; justify-content: center; }
|
|
|
|
|
|
.cdchip .pic { width: 32px; height: 32px; font-size: 22px; }
|
|
|
|
|
|
.cdchip.on { box-shadow: 0 0 0 2px var(--accent); }
|
|
|
|
|
|
.cdchip.spent { opacity: .45; }
|
|
|
|
|
|
.cdchip.broke { background: #3a2020; opacity: .8; }
|
|
|
|
|
|
.cdchip.broke .in { border-color: var(--warn); }
|
|
|
|
|
|
.cdchip.broke::after { content: '✕'; position: absolute; inset: 0; display: flex; align-items: center;
|
|
|
|
|
|
justify-content: center; color: var(--warn); font-size: 30px; font-weight: 700; text-shadow: 0 2px 4px #000; }
|
|
|
|
|
|
.cdchip .k { position: absolute; left: 0; right: 0; bottom: -15px; text-align: center; font-size: 11px;
|
|
|
|
|
|
color: var(--dim); font-weight: 700; }
|
|
|
|
|
|
.cdchip .n { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; border-radius: 9px;
|
|
|
|
|
|
background: var(--accent); color: #1a0c02; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
|
|
|
|
|
|
/* on touch the pad owns the bottom edge, so the chips move above it */
|
|
|
|
|
|
@media (pointer: coarse) { .cdchip .k { display: none; } #fCds { bottom: 110px; } }
|
|
|
|
|
|
body.forcetouch #fCds { bottom: 110px; }
|
|
|
|
|
|
|
|
|
|
|
|
/* own damage: the screen edge glows red the closer you are to being wrecked */
|
|
|
|
|
|
#dmgvig { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s;
|
|
|
|
|
|
background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(190,20,10,.75) 100%); }
|
|
|
|
|
|
|
2026-11-17 14:17:50 +01:00
|
|
|
|
/* spawn gate: two steel garage-door halves that split open when a fight starts */
|
|
|
|
|
|
#gate { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
|
|
|
|
|
|
#gate.hide { display: none; }
|
|
|
|
|
|
#gate .gh { position: absolute; left: 0; right: 0; height: 50%;
|
|
|
|
|
|
background:
|
|
|
|
|
|
radial-gradient(circle at 14px 14px, rgba(255,255,255,.12) 0 2px, transparent 3px),
|
|
|
|
|
|
repeating-linear-gradient(180deg, rgba(0,0,0,.35) 0 2px, transparent 2px 26px),
|
|
|
|
|
|
linear-gradient(90deg, #22272f 0%, #3c4452 48%, #434b59 52%, #22272f 100%);
|
|
|
|
|
|
background-size: 28px 28px, auto, auto;
|
|
|
|
|
|
box-shadow: inset 0 0 70px rgba(0,0,0,.65);
|
|
|
|
|
|
transition: transform .85s cubic-bezier(.55,.03,.3,1); will-change: transform; }
|
|
|
|
|
|
#gate .gh-top { top: 0; } #gate .gh-bot { bottom: 0; }
|
|
|
|
|
|
#gate .gh::after { content: ''; position: absolute; left: 0; right: 0; height: 11px; background: var(--hazard); opacity: .95; }
|
|
|
|
|
|
#gate .gh-top::after { bottom: 0; } #gate .gh-bot::after { top: 0; }
|
|
|
|
|
|
#gate.open .gh-top { transform: translateY(-100%); }
|
|
|
|
|
|
#gate.open .gh-bot { transform: translateY(100%); }
|
|
|
|
|
|
|
2026-11-18 15:18:38 +01:00
|
|
|
|
/* build editor: fills the shop panel in place of the parts view (robot stays on the left) */
|
|
|
|
|
|
/* weapon placement + shape: small panel, top-right of the live-view area */
|
|
|
|
|
|
#wplace { position: absolute; right: 14px; top: 12px; width: 198px; background: rgba(12,14,19,.9); border: 1px solid var(--line);
|
|
|
|
|
|
border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--hl); }
|
|
|
|
|
|
#wplace.hide { display: none; }
|
|
|
|
|
|
#wplace .wphead { font: 10px var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
|
|
|
|
|
|
#wplace .wpsides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
|
|
|
|
|
|
#wplace .wpsides button { min-height: 30px; font-size: 11px; padding: 2px; }
|
|
|
|
|
|
#wplace .wpsides button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
|
|
|
|
|
#wplace .wprow { display: grid; grid-template-columns: 54px 1fr 36px; gap: 6px; align-items: center; font-size: 11px; }
|
|
|
|
|
|
#wplace .wprow input[type=range] { width: 100%; accent-color: var(--accent); height: 16px; }
|
|
|
|
|
|
#wplace .wprow .dv { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
#wplace .weplist { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
|
|
|
|
#wplace .wepchip { display: flex; align-items: center; gap: 4px; padding: 2px 6px; min-height: 26px; border: 1px solid var(--line); border-radius: 7px; background: #141922; cursor: pointer; font-size: 11px; }
|
|
|
|
|
|
#wplace .wepchip.on { border-color: var(--accent); background: #2a1c10; }
|
|
|
|
|
|
#wplace .wepchip .pic { width: 16px; height: 16px; }
|
|
|
|
|
|
#wplace .wepchip .x { color: var(--warn); font-weight: 700; padding: 0 1px; font-size: 12px; }
|
|
|
|
|
|
#wplace .edhint { font-size: 10.5px; color: var(--dim); }
|
|
|
|
|
|
.item.dim { opacity: .5; }
|
|
|
|
|
|
.pbtn { width: 100%; min-height: 44px; font-size: 16px; }
|
|
|
|
|
|
|
|
|
|
|
|
/* paint / hangar / weapon editor all render inside #cards; override the parts grid */
|
|
|
|
|
|
#cards.wedit { display: flex; flex-direction: column; grid-template-columns: none; gap: 7px; padding: 9px; }
|
|
|
|
|
|
#cards.pcards { display: flex; flex-direction: column; grid-template-columns: none; gap: 6px; padding: 7px; overflow: hidden; }
|
|
|
|
|
|
#cards.hcards { display: flex; flex-direction: column; grid-template-columns: none; gap: 6px; padding: 10px; }
|
|
|
|
|
|
/* paint tab: 3 save slots + inline painter */
|
|
|
|
|
|
.phdr { display: flex; flex-direction: column; gap: 4px; }
|
|
|
|
|
|
.pslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
|
|
|
|
|
|
.pslot { position: relative; height: 22px; border-radius: 6px; border: 2px solid #000a; cursor: pointer; overflow: hidden; }
|
|
|
|
|
|
.pslot.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
|
|
|
|
|
|
.pslot .acc { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; }
|
|
|
|
|
|
.pslot .dmark { position: absolute; top: 1px; left: 4px; font-size: 11px; text-shadow: 0 1px 2px #000; }
|
|
|
|
|
|
.pslot .sv { position: absolute; top: 2px; right: 2px; min-height: 0; padding: 0 4px; font-size: 10px; line-height: 1.3; }
|
|
|
|
|
|
#painter.inline { position: static; grid-column: auto; grid-row: auto; background: none; border: none; padding: 0; gap: 6px; }
|
|
|
|
|
|
#painter.inline .pt-head { display: none; }
|
|
|
|
|
|
#painter.inline #ptCancel, #painter.inline #ptDone { display: none; }
|
|
|
|
|
|
#painter.inline .pt-canvas canvas { width: 100%; height: auto; max-height: 184px; aspect-ratio: 2 / 1; margin: 0 auto; }
|
|
|
|
|
|
#painter.inline .pt-tools button, #painter.inline .pt-colors .sw, #painter.inline .gbar button { padding: 3px 6px; font-size: 11px; }
|
|
|
|
|
|
#painter.inline .pt-row { margin: 2px 0; }
|
|
|
|
|
|
#painter.inline .gbar { border-top: none; padding-top: 0; }
|
|
|
|
|
|
.wedit .edsec { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
|
|
|
|
|
|
.wedit .edlabel { font: 10px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
|
|
|
|
|
|
.wedit .weplist { display: flex; flex-wrap: wrap; gap: 5px; }
|
|
|
|
|
|
.wedit .wepchip { display: flex; align-items: center; gap: 5px; padding: 3px 7px; min-height: 30px; border: 1px solid var(--line);
|
|
|
|
|
|
border-radius: 8px; background: #141922; cursor: pointer; font-size: 12px; }
|
|
|
|
|
|
.wedit .wepchip.on { border-color: var(--accent); background: #2a1c10; }
|
|
|
|
|
|
.wedit .wepchip .pic { width: 18px; height: 18px; }
|
|
|
|
|
|
.wedit .wepchip .x { color: var(--warn); font-weight: 700; padding: 0 2px; font-size: 13px; }
|
|
|
|
|
|
.wedit .addrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
|
|
|
|
|
|
.wedit .addrow button { min-height: 36px; font-size: 9.5px; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; }
|
|
|
|
|
|
.wedit .addrow button .pic { width: 18px; height: 18px; }
|
|
|
|
|
|
.wedit .addrow button .pr { color: var(--gold); font-size: 9px; }
|
|
|
|
|
|
.wedit .addrow button:disabled { opacity: .4; }
|
|
|
|
|
|
.wedit .sides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
|
|
|
|
|
|
.wedit .sides button { min-height: 34px; font-size: 11.5px; }
|
|
|
|
|
|
.wedit .sides button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
|
|
|
|
|
|
.wedit .erow { display: grid; grid-template-columns: 50px 1fr 38px; gap: 8px; align-items: center; font-size: 11px; margin: 3px 0; }
|
|
|
|
|
|
.wedit .erow input[type=range] { width: 100%; accent-color: var(--accent); height: 18px; }
|
|
|
|
|
|
.wedit .erow .dv { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
.wedit .edhint { font-size: 11px; color: var(--dim); line-height: 1.3; }
|
|
|
|
|
|
.wedit .edmeters { display: flex; flex-wrap: wrap; gap: 7px; font-size: 11.5px; }
|
|
|
|
|
|
.wedit .edmeters b { color: var(--text); }
|
|
|
|
|
|
.wedit .edmeters .over { color: var(--warn); }
|
|
|
|
|
|
|
2026-11-13 00:41:54 +01:00
|
|
|
|
/* touch pad: only on touch screens */
|
2026-11-13 01:02:55 +01:00
|
|
|
|
#pad { position: absolute; left: 14px; right: 14px; bottom: 14px; display: none; justify-content: space-between; pointer-events: none; z-index: 5; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
#pad > div { display: grid; grid-template-columns: repeat(3, 60px); gap: 6px; pointer-events: auto; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#pad button { height: 60px; font-size: 20px; opacity: .75; padding: 0; border-radius: var(--r3);
|
|
|
|
|
|
background: rgba(18,22,30,.72); }
|
|
|
|
|
|
#pad .fire { grid-template-columns: repeat(3, 74px); }
|
|
|
|
|
|
#pad .fire button { height: 74px; font-size: 13px; font-weight: 700; border-radius: 50%; }
|
|
|
|
|
|
#padGadget { --p: 0; background:
|
|
|
|
|
|
conic-gradient(rgba(18,22,30,.72) calc(var(--p) * 360deg), rgba(255,122,26,.5) 0); }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
@media (pointer: coarse) { body.fighting #pad { display: flex; } }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
body.forcetouch.fighting #pad { display: flex; } /* dev: &touch */
|
2026-11-13 00:41:54 +01:00
|
|
|
|
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
/* tablets / phones held upright: ask to rotate (the stage is 16:9) */
|
|
|
|
|
|
#rotate { display: none; position: fixed; left: 0; right: 0; bottom: 12%; text-align: center; z-index: 20; font: 20px var(--head); color: var(--accent); padding: 0 20px; }
|
|
|
|
|
|
@media (pointer: coarse) and (orientation: portrait) { #rotate { display: block; } }
|
|
|
|
|
|
|
2026-11-13 00:41:54 +01:00
|
|
|
|
/* window buttons: only inside the exe (html.exe set by kit-host.js) */
|
|
|
|
|
|
#winctl { position: fixed; top: 8px; right: 8px; display: none; gap: 6px; z-index: 10; }
|
|
|
|
|
|
html.exe #winctl { display: flex; }
|
2026-11-15 17:08:11 +01:00
|
|
|
|
#winctl button { width: 34px; height: 30px; min-height: 30px; padding: 0; opacity: .75; }
|
|
|
|
|
|
html.exe #hud { padding-right: 130px; }
|
|
|
|
|
|
html.exe #fightHud { padding: 10px 130px 0; }
|
2026-11-13 00:41:54 +01:00
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div id="winctl">
|
|
|
|
|
|
<button onclick="Kit.host.minimize()" data-i18n-title="win_min">–</button>
|
|
|
|
|
|
<button onclick="Kit.host.fullscreen()" data-i18n-title="win_full">▢</button>
|
|
|
|
|
|
<button onclick="Kit.host.quit()" data-i18n-title="win_close">✕</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
<div id="rotate">↻ <span data-i18n="rotate_hint">Turn your device sideways</span></div>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<div id="app">
|
|
|
|
|
|
<div id="stage">
|
2026-11-13 01:02:55 +01:00
|
|
|
|
<div id="bgimg"></div>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<canvas id="gl"></canvas>
|
|
|
|
|
|
<canvas id="cv"></canvas>
|
|
|
|
|
|
|
2026-11-13 01:02:55 +01:00
|
|
|
|
<div id="shop" class="hide">
|
|
|
|
|
|
<div id="sLeft">
|
2026-11-18 15:18:38 +01:00
|
|
|
|
<div class="slTL">
|
|
|
|
|
|
<input id="rname" maxlength="18" spellcheck="false">
|
|
|
|
|
|
<div class="mech"><span class="pic" data-f="🧔" id="mechPic"></span><div class="bubble" id="mechTip"></div></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="wplace" class="hide"></div>
|
|
|
|
|
|
<div class="slBottom">
|
|
|
|
|
|
<div class="zoombar"><button id="zOut" title="Zoom -">-</button><span data-i18n="zoom">Zoom</span><button id="zIn" title="Zoom +">+</button></div>
|
|
|
|
|
|
<div class="stats" id="meters"></div>
|
|
|
|
|
|
</div>
|
2026-11-13 01:02:55 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
<div id="sRight">
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<div class="shoptabs" id="shopTabs"></div>
|
|
|
|
|
|
<div id="buildView">
|
|
|
|
|
|
<div class="tabs" id="tabs"></div>
|
|
|
|
|
|
<div id="cards"></div>
|
|
|
|
|
|
<div id="detail"></div>
|
2026-11-17 14:17:50 +01:00
|
|
|
|
<div id="designer" class="hide"></div>
|
2026-11-18 15:18:38 +01:00
|
|
|
|
<div id="fittedwrap" class="fittedwrap"><div class="flabel" data-i18n="fitted_parts">Fitted</div><div id="fitted" class="fitted"></div></div>
|
2026-11-15 17:08:11 +01:00
|
|
|
|
</div>
|
2026-11-13 01:02:55 +01:00
|
|
|
|
<div class="gbar">
|
|
|
|
|
|
<div class="err" id="gErr"></div>
|
|
|
|
|
|
<button id="bGMenu" data-i18n="menu">Menu</button>
|
2026-11-17 14:17:50 +01:00
|
|
|
|
<button id="bGMode">Kampagne</button>
|
2026-11-18 15:18:38 +01:00
|
|
|
|
<button id="bRankG" style="display:none">🏆</button>
|
2026-11-19 00:55:39 +01:00
|
|
|
|
<button id="bMissions" style="display:none">🎯</button>
|
2026-11-13 01:02:55 +01:00
|
|
|
|
<button id="bTrain" data-i18n="training">Training</button>
|
2026-11-17 14:17:50 +01:00
|
|
|
|
<button class="primary" id="bLeague">League</button>
|
2026-11-13 01:02:55 +01:00
|
|
|
|
</div>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="fightHud" class="hide">
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<div class="fbox" id="fLeft"><div class="fn"><span id="fN0"></span><small id="fW0"></small></div><div class="hp"><i class="g" id="fG0"></i><i id="fH0"></i></div><div class="fsub" id="fD0"></div></div>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<div class="fbox" id="fMid"><div id="fTime">2:00</div><div id="fState"></div></div>
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<div class="fbox" id="fRight"><div class="fn"><span id="fN1"></span><small id="fW1"></small></div><div class="hp"><i class="g" id="fG1"></i><i id="fH1"></i></div><div class="fsub" id="fD1"></div></div>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<div id="dmgvig"></div>
|
|
|
|
|
|
<div id="fCds"></div>
|
|
|
|
|
|
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<div id="pad">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<span></span><button data-action="up">▲</button><span></span>
|
|
|
|
|
|
<button data-action="left">◀</button><button data-action="down">▼</button><button data-action="right">▶</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="fire">
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<button data-action="fire3" data-i18n="pad_gadget" id="padGadget">Gadget</button><button data-action="fire2" data-i18n="pad_tower">Tower</button><button data-action="fire" data-i18n="pad_weapon">Weapon</button>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<div id="hud">
|
|
|
|
|
|
<div class="logo">ROBOT CLASH</div>
|
|
|
|
|
|
<div class="chip" data-i18n-title="hud_money"><span class="pic" data-f="🪙" id="icoMoney"></span><b id="hMoney">0</b></div>
|
2026-11-17 14:17:50 +01:00
|
|
|
|
<div class="chip clickable" id="chipFame" data-i18n-title="achievements"><span class="pic" data-f="⭐" id="icoFame"></span><b id="hFame">0</b><span id="hRank" class="rank"></span></div>
|
|
|
|
|
|
<div class="chip"><span id="hModeLbl">League</span> <b id="hLeague">-</b></div>
|
|
|
|
|
|
<button id="hTour" class="chip clickable htour hide">🏆</button>
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<div class="grow"></div>
|
|
|
|
|
|
<div class="chip" id="hUser" data-i18n-title="account"></div>
|
|
|
|
|
|
<button id="bSettings" class="icobtn" data-i18n-title="settings">⚙</button>
|
|
|
|
|
|
<button id="bMute" class="icobtn" title="M">🔊</button>
|
|
|
|
|
|
<button id="bPause" class="icobtn" title="P / Esc" data-i18n-title="pause">⏸</button>
|
|
|
|
|
|
</div>
|
2026-11-17 14:17:50 +01:00
|
|
|
|
<div id="gate" class="hide"><div class="gh gh-top"></div><div class="gh gh-bot"></div></div>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<div id="overlay" class="hide"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script src="vendor/three.min.js"></script>
|
|
|
|
|
|
<script src="kit/kit-core.js"></script>
|
|
|
|
|
|
<script src="kit/kit-audio.js"></script>
|
|
|
|
|
|
<script src="kit/kit-loop.js"></script>
|
|
|
|
|
|
<script src="kit/kit-input.js"></script>
|
|
|
|
|
|
<script src="kit/kit-host.js"></script>
|
|
|
|
|
|
<script src="kit/kit-scores.js"></script>
|
|
|
|
|
|
<script src="kit/kit-fx.js"></script>
|
|
|
|
|
|
<script src="kit/kit-i18n.js"></script>
|
|
|
|
|
|
<script src="lang.js"></script>
|
|
|
|
|
|
<script src="parts.js"></script>
|
2026-11-17 14:17:50 +01:00
|
|
|
|
<script src="progress.js"></script>
|
|
|
|
|
|
<script src="live.js"></script>
|
|
|
|
|
|
<script src="ltourney.js"></script>
|
|
|
|
|
|
<script src="tourney.js"></script>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<script src="robot.js"></script>
|
2026-11-19 02:09:07 +01:00
|
|
|
|
<script src="eco.js"></script>
|
|
|
|
|
|
<script src="protocol.js"></script>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<script src="combat.js"></script>
|
|
|
|
|
|
<script src="ai.js"></script>
|
2026-11-13 01:02:55 +01:00
|
|
|
|
<script src="profiles.js"></script>
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
<script src="net.js"></script>
|
2026-11-18 15:18:38 +01:00
|
|
|
|
<script src="cloudsave.js"></script>
|
|
|
|
|
|
<script src="ranking.js"></script>
|
2026-11-19 00:55:39 +01:00
|
|
|
|
<script src="missions.js"></script>
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
<script src="lobby.js"></script>
|
|
|
|
|
|
<script src="looks.js"></script>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<script src="render3d.js"></script>
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
|
<script src="netfight.js"></script>
|
2026-11-19 14:30:40 +01:00
|
|
|
|
<script src="netstats.js"></script>
|
|
|
|
|
|
<script src="netoverlay.js"></script>
|
2026-11-13 01:02:55 +01:00
|
|
|
|
<script src="shop.js"></script>
|
|
|
|
|
|
<script src="painter.js"></script>
|
2026-11-15 17:08:11 +01:00
|
|
|
|
<script src="uicheck.js"></script>
|
2026-11-19 09:58:53 +01:00
|
|
|
|
<script src="sfx.js"></script>
|
|
|
|
|
|
<script src="pages.js"></script>
|
|
|
|
|
|
<script src="online.js"></script>
|
|
|
|
|
|
<script src="workshop.js"></script>
|
2026-11-13 00:41:54 +01:00
|
|
|
|
<script src="game.js"></script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|