Files
Robot-Clash/game/index.html
2026-11-17 14:17:50 +01:00

678 lines
50 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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>
/* 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; }
:root {
--bg: #090b10; --panel: #151920; --panel2: #1c212b; --line: #2d3442; --text: #e8ebf2; --dim: #8d95a8;
--accent: #ff7a1a; --good: #6dff9e; --warn: #ff5a4a; --blue: #4fa8ff; --gold: #ffc940;
--head: "Russo One", "Segoe UI Black", "Arial Black", Impact, sans-serif;
/* 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);
}
* { box-sizing: border-box; }
/* 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; }
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; }
body { display: flex; align-items: center; justify-content: center; background: #05060a; }
/* fixed design size, scaled to the window by Kit.fit */
#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 */
#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; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; display: flex; align-items: center; gap: 6px; }
.chip b { color: var(--accent); font-variant-numeric: tabular-nums; }
.chip .pic { width: 22px; height: 22px; }
.grow { flex: 1; }
.logo { font-family: var(--head); letter-spacing: .06em; color: var(--accent); font-size: 20px; padding: 0 6px; }
#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%); }
#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; }
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; }
input[type=text], input[type=password], input[type=email] { font: inherit; width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line);
background: #0b0e14; color: var(--text); }
input:focus { outline: none; border-color: var(--accent); }
/* menus fade in once per screen (#overlay.enter is removed again, so live lists do not flicker) */
@keyframes cardIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
#overlay.enter > * { animation: cardIn .14s ease-out; }
.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); }
/* overlays (menus) */
#overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 40px;
background: rgba(5, 6, 10, .62) center / cover no-repeat; z-index: 6; }
#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; }
#overlay.hide { display: none; }
#overlay.clear { background-color: transparent; }
.card { background: rgba(21, 25, 32, .94); border: 1px solid var(--line); border-radius: 14px; padding: 22px 30px;
min-width: 380px; max-width: 760px; max-height: 624px; overflow-y: auto; text-align: center; box-shadow: 0 20px 60px #000a; }
.card h1 { margin: 0 0 6px; font: 44px var(--head); letter-spacing: .05em; color: var(--accent); text-shadow: 0 3px 0 #5a2600; }
.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; }
.card h3 { margin: 12px 0 6px; font: 14px var(--head); letter-spacing: .06em; color: var(--dim); text-align: left; }
.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); }
.muted { color: var(--dim); font-size: 13px; }
.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); }
.credits a { color: var(--accent); text-decoration: none; }
.credits .build { color: #5a6273; font-size: 10.5px; }
.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); }
.err { color: var(--warn); font-size: 13px; min-height: 18px; margin: 6px 0; }
/* 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;
filter: drop-shadow(0 6px 18px #000); animation: logoglow 3.6s ease-in-out infinite; }
@keyframes logoglow { 50% { filter: drop-shadow(0 6px 18px #000) drop-shadow(0 0 14px rgba(255,122,26,.45)); } }
.title .big { font: 62px var(--head); letter-spacing: .05em; color: var(--accent); line-height: .98;
text-shadow: 0 5px 0 #5a2600, 0 0 40px rgba(255,122,26,.5); }
.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; }
.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); }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { flex: 1 1 56px; padding: 5px 8px; font-size: 13px; }
.seg button.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
/* compact settings: two columns of label + control */
.set2 { display: grid; grid-template-columns: 96px 1fr 96px 1fr; gap: 7px 12px; align-items: center; text-align: left; min-width: 680px; }
.set2 .sl, .setacc .sl { font-size: 13px; color: var(--dim); }
.set2 .seg button { padding: 6px 4px; font-size: 12px; min-height: 34px; }
.set2 input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.setacc { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; text-align: left; margin-top: 12px;
padding-top: 10px; border-top: 1px solid var(--line); }
.setacc .who { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* league */
/* 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; }
.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; }
.opp > .pic { width: 100%; height: 78px; font-size: 48px; }
.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); }
.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); }
/* shop */
#shop { position: absolute; inset: 44px 0 0; display: grid; grid-template-columns: 300px 1fr; z-index: 3; pointer-events: none; }
#shop.hide, #fightHud.hide { display: none; }
#shop > * { pointer-events: auto; }
#sLeft { display: flex; flex-direction: column; padding: 12px; gap: 8px; pointer-events: none; }
#sLeft > * { pointer-events: auto; }
/* 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) */
#rname { width: 100%; font: 20px var(--head); letter-spacing: .04em; background: rgba(11,14,20,.82);
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; }
.mech { display: flex; gap: 8px; align-items: flex-end; }
.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); }
.mech .bubble { background: rgba(250,246,238,.95); color: #1b1d22; border-radius: 10px 10px 10px 2px; padding: 5px 8px; font-size: 11.5px; max-width: 210px; box-shadow: 0 4px 14px #0008; }
.spacer { flex: 1; pointer-events: none !important; }
.stats { background: rgba(12,14,19,.8); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 11px; font-variant-numeric: tabular-nums; }
.stats .st { display: grid; grid-template-columns: 18px 1fr 54px; gap: 5px; align-items: center; }
.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); }
.bar i.over { background: var(--warn); }
.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; }
.paint span.sw.on { border-color: #fff; }
.paint .lb { width: 46px; }
#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; }
#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; }
/* 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; }
.flabel { font: 10px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.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);
border: 1px solid #262c36; border-radius: var(--r1); padding: 2px 3px; font-size: 11px; cursor: pointer;
position: relative; min-width: 0; box-shadow: none; }
@media (hover: hover) { .fitted .frow:hover { border-color: var(--accent); } }
.fitted .frow .pic { width: 16px; height: 16px; font-size: 13px; }
.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;
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; }
@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 */
.tab.miss { border-color: var(--warn); }
#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; }
#cards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px;
align-content: start; padding: 7px; background: rgba(0,0,0,.26); border: 1px solid var(--line); border-top: none;
border-radius: 0 0 var(--r2) var(--r2); }
.item { background: linear-gradient(#252b37, #171b23); border: 1px solid #39414f; border-radius: var(--r2);
padding: 4px 4px 3px; cursor: pointer; text-align: center; position: relative;
box-shadow: var(--hl), 0 2px 0 rgba(0,0,0,.45); }
@media (hover: hover) { .item:hover { border-color: #5a6478; } }
.item.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,122,26,.3); }
.item > .pic { width: 100%; height: 40px; font-size: 30px; }
.item .nm { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .pr { font-size: 11px; color: var(--gold); display: flex; gap: 3px; justify-content: center; align-items: center;
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; }
.item .pr .pic { width: 14px; height: 14px; }
.item .pr.no { color: var(--warn); }
.item .badge { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #1a0c02; }
.item .badge.own { background: #3c4556; color: var(--text); }
#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; }
.chips span.up { color: var(--good); border-color: #2e5a3e; } .chips span.down { color: var(--warn); border-color: #5a2e2e; }
.chips span.key { color: var(--accent); border-color: #5a3a18; background: #1d1409; font-weight: 700; }
#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; }
.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; }
#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; }
/* paint tab: proper colour chips instead of tiny dots */
#paintView { gap: 10px; }
.psec h4 { margin: 0 0 6px; font: 12px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; }
.pgrid.wide { grid-template-columns: repeat(8, 1fr); }
.pgrid .sw { position: relative; height: 40px; border-radius: var(--r2); border: 2px solid #000a;
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;
justify-content: center; color: #fff; font-size: 19px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.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; }
/* 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; }
/* 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); }
/* 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; }
.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; }
.prow.me { border-color: var(--accent); background: #2a1c10; }
.prow .pf .fl { width: 26px; height: 17px; }
/* fight HUD */
#fightHud { position: absolute; left: 0; right: 0; top: 0; padding: 10px 14px; display: grid; grid-template-columns: 1fr 150px 1fr;
gap: 12px; pointer-events: none; z-index: 4; }
.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); }
.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); }
#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; }
#fTime.low { color: var(--warn); animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { opacity: .45; } }
#fState { font-size: 12px; color: var(--accent); min-height: 16px; font-weight: 700; letter-spacing: .05em; }
/* 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%); }
/* 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%); }
/* touch pad: only on touch screens */
#pad { position: absolute; left: 14px; right: 14px; bottom: 14px; display: none; justify-content: space-between; pointer-events: none; z-index: 5; }
#pad > div { display: grid; grid-template-columns: repeat(3, 60px); gap: 6px; pointer-events: auto; }
#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); }
@media (pointer: coarse) { body.fighting #pad { display: flex; } }
body.forcetouch.fighting #pad { display: flex; } /* dev: &touch */
/* 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; } }
/* 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; }
#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; }
</style>
</head>
<body>
<div id="winctl">
<button onclick="Kit.host.minimize()" data-i18n-title="win_min">&#8211;</button>
<button onclick="Kit.host.fullscreen()" data-i18n-title="win_full">&#9634;</button>
<button onclick="Kit.host.quit()" data-i18n-title="win_close">&#10005;</button>
</div>
<div id="rotate">&#x21BB; <span data-i18n="rotate_hint">Turn your device sideways</span></div>
<div id="app">
<div id="stage">
<div id="bgimg"></div>
<canvas id="gl"></canvas>
<canvas id="cv"></canvas>
<div id="shop" class="hide">
<div id="sLeft">
<input id="rname" maxlength="18" spellcheck="false">
<div class="zoombar"><button id="zOut" title="Zoom -">-</button><span data-i18n="zoom">Zoom</span><button id="zIn" title="Zoom +">+</button></div>
<div class="spacer"></div>
<div class="stats" id="meters"></div>
<div class="mech"><span class="pic" data-f="🧔" id="mechPic"></span><div class="bubble" id="mechTip"></div></div>
</div>
<div id="sRight">
<div class="shoptabs" id="shopTabs"></div>
<div id="buildView">
<div class="tabs" id="tabs"></div>
<div id="cards"></div>
<div id="detail"></div>
<div id="designer" class="hide"></div>
<div class="fittedwrap"><div class="flabel" data-i18n="fitted_parts">Fitted</div><div id="fitted" class="fitted"></div></div>
</div>
<div id="paintView" class="hide">
<div class="psec"><h4 data-i18n="paint_body">Body</h4><div class="pgrid" id="paintBody"></div></div>
<div class="psec"><h4 data-i18n="paint_accent">Accent</h4><div class="pgrid" id="paintAccent"></div></div>
<div class="psec"><h4 data-i18n="paint_schemes">Schemes</h4><div class="pgrid wide" id="paintSchemes"></div></div>
<div class="spacer"></div>
<div class="pcustom">
<div class="pct"><b data-i18n="pt_open">Paint it yourself</b><span class="muted" data-i18n="paint_hint">Pick quick colours above, or paint your own design.</span></div>
<button id="bPaint" class="primary">🎨</button>
</div>
</div>
<div id="hangarView" class="hide"></div>
<div class="gbar">
<div class="err" id="gErr"></div>
<button id="bGMenu" data-i18n="menu">Menu</button>
<button id="bGMode">Kampagne</button>
<button id="bTrain" data-i18n="training">Training</button>
<button class="primary" id="bLeague">League</button>
</div>
</div>
</div>
<div id="fightHud" class="hide">
<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>
<div class="fbox" id="fMid"><div id="fTime">2:00</div><div id="fState"></div></div>
<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>
</div>
<div id="dmgvig"></div>
<div id="fCds"></div>
<div id="pad">
<div>
<span></span><button data-action="up">&#9650;</button><span></span>
<button data-action="left">&#9664;</button><button data-action="down">&#9660;</button><button data-action="right">&#9654;</button>
</div>
<div class="fire">
<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>
</div>
</div>
<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>
<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>
<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>
<div id="gate" class="hide"><div class="gh gh-top"></div><div class="gh gh-bot"></div></div>
<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>
<script src="progress.js"></script>
<script src="live.js"></script>
<script src="ltourney.js"></script>
<script src="tourney.js"></script>
<script src="robot.js"></script>
<script src="combat.js"></script>
<script src="ai.js"></script>
<script src="profiles.js"></script>
<script src="net.js"></script>
<script src="lobby.js"></script>
<script src="looks.js"></script>
<script src="render3d.js"></script>
<script src="netfight.js"></script>
<script src="netourney.js"></script>
<script src="shop.js"></script>
<script src="painter.js"></script>
<script src="uicheck.js"></script>
<script src="game.js"></script>
</body>
</html>