@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;800&display=swap');*{box-sizing:border-box}html,body,#game{margin:0;width:100%;height:100%;overflow:hidden;background:#111}body{font-family:'Barlow Condensed',sans-serif;color:#fff;touch-action:none}#game canvas{display:block;width:100%;height:100%}#hud{position:fixed;inset:0;pointer-events:none;z-index:3;text-shadow:0 2px 3px #000}.top{height:58px;padding:14px 20px;display:flex;align-items:center;gap:22px;background:linear-gradient(#111a,#1110)}.top b{font-size:23px;letter-spacing:2px}.top b em{font-style:normal;color:#e4ca3e}.top span{font-size:12px;letter-spacing:2px;color:#f0b84c}.top strong{margin-left:auto;font-size:27px;letter-spacing:2px}.score{position:absolute;top:77px;left:22px;display:flex;align-items:center;gap:9px}.score i{font-style:normal;font-size:25px;color:#dcf3e7}.score small{font-size:10px;letter-spacing:2px}.bar{width:130px;height:7px;background:#201f1a;border:1px solid #857d58}.bar u{display:block;width:100%;height:100%;background:#78e160;text-decoration:none}.score label{margin-left:14px;font-size:20px;color:#f8d249}.feed{position:absolute;right:20px;top:80px;font-size:12px;color:#d9c98a;letter-spacing:1px}.actions{position:absolute;bottom:22px;right:16px;display:flex;gap:12px;pointer-events:auto;flex-direction:column;z-index:20}.actions button{width:68px;height:52px;border-radius:50%;border:2px solid #ddd39a;background:#332f24d9;color:#fff;font:800 13px 'Barlow Condensed';letter-spacing:1px}.actions button:first-child{border-color:#f2d94d}.actions button:last-child{border-color:#f1794b}.actions button:active{transform:scale(.92);background:#a4422b}.joystick{display:none}#joystick{display:none}@media(max-width:900px){.top{height:42px;padding:8px 12px}.top b{font-size:18px}.top span{font-size:9px}.top strong{font-size:21px}.score{top:52px;left:12px}.feed{top:55px;right:12px;font-size:10px}.actions{right:17px;bottom:24px}.weapons{bottom:15px;left:12px}#joystick{display:block;position:absolute;left:21px;bottom:22px;width:112px;height:112px;border-radius:50%;border:2px solid #e5e5c955;background:#282e2c77;pointer-events:auto}#joystick div{position:absolute;left:31px;top:31px;width:46px;height:46px;border-radius:50%;background:#c8d6bd66;border:2px solid #eaf3d9aa}.score label{font-size:16px}.bar{width:90px}}@media(min-width:901px){.actions{display:none}}
#buildScreen{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:radial-gradient(circle at 50% 25%,#344844 0,#111817 58%,#090b0b 100%);padding:18px}
.buildCard{width:min(620px,100%);padding:clamp(22px,5vw,46px);border:1px solid #789184;background:#101b1bdd;box-shadow:0 18px 80px #000b}
.eyebrow{color:#f0b84c;font-size:13px;letter-spacing:3px}.eyebrow b{color:#e4ca3e}
.buildCard h1{margin:8px 0 2px;font-size:clamp(29px,7vw,48px);letter-spacing:2px}.buildHint{margin:0 0 24px;color:#aebeb5;font-size:15px}
.buildGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
fieldset{border:1px solid #52645b;padding:12px;min-width:0}legend{padding:0 6px;color:#e4ca3e;font-size:12px;letter-spacing:2px}
fieldset label{display:flex;align-items:center;gap:8px;margin:8px 0;color:#d9e2d8;font-size:14px;letter-spacing:1px;cursor:pointer}
fieldset input[type=radio]{accent-color:#e4ca3e}.colorChoice{grid-column:span 2}.colorInput{justify-content:flex-start}.colorInput input{width:46px;height:30px;padding:0;border:0;background:none}.colorInput span{font-family:monospace;letter-spacing:1px}
#launch{width:100%;margin-top:22px;padding:14px;border:2px solid #e8da5d;background:#e4b934;color:#17190f;font:800 18px 'Barlow Condensed';letter-spacing:3px;cursor:pointer}
#launch:disabled{opacity:.6;cursor:wait}#loadStatus{height:18px;margin-top:10px;text-align:center;color:#aebeb5;font-size:12px;letter-spacing:1px}
@media(max-width:480px){.buildGrid{grid-template-columns:1fr}.colorChoice{grid-column:auto}.buildCard{padding:24px 18px}}

/* ── LOBBY & WAITING ROOM ─────────────────────────────────────────── */
#lobbyScreen,#waitingScreen{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:radial-gradient(circle at 50% 25%,#344844 0,#111817 58%,#090b0b 100%);padding:18px}
.lobbyCard{max-width:480px}

/* create/join actions */
.lobbyActions{display:flex;flex-direction:column;gap:14px;margin:24px 0 18px}
.lobbyBtn{padding:13px 22px;border:2px solid #e8da5d;background:#e4b934;color:#17190f;font:800 16px 'Barlow Condensed';letter-spacing:3px;cursor:pointer;transition:opacity .15s}
.lobbyBtn:disabled{opacity:.45;cursor:default}
.lobbyBtn:not(:disabled):hover{opacity:.85}
.lobbyDivider{text-align:center;color:#52645b;font-size:12px;letter-spacing:4px}
.joinRow{display:flex;gap:10px}
#joinCode{flex:1;padding:12px 14px;border:2px solid #52645b;background:#0d1a19;color:#e4e9e1;font:700 18px 'Barlow Condensed';letter-spacing:4px;text-transform:uppercase;outline:none}
#joinCode:focus{border-color:#e4ca3e}
#joinCode::placeholder{color:#445550;letter-spacing:3px}
#joinPeerId{flex:1;padding:12px 14px;border:2px solid #52645b;background:#0d1a19;color:#e4e9e1;font:700 14px 'Barlow Condensed';letter-spacing:1px;outline:none}
#joinPeerId:focus{border-color:#e4ca3e}
#joinPeerId::placeholder{color:#445550;letter-spacing:1px}
#joinGameName{flex:1;padding:12px 14px;border:2px solid #52645b;background:#0d1a19;color:#e4e9e1;font:700 16px 'Barlow Condensed';letter-spacing:1px;outline:none}
#joinGameName:focus{border-color:#e4ca3e}
#joinGameName::placeholder{color:#445550;letter-spacing:1px}
#gameNameInput:focus{border-color:#e4ca3e}

/* Active lobbies list */
.activeLobbies{max-height:250px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:#52645b #0d1a19}
.activeLobbies::-webkit-scrollbar{width:6px}
.activeLobbies::-webkit-scrollbar-track{background:#0d1a19}
.activeLobbies::-webkit-scrollbar-thumb{background:#52645b;border-radius:3px}
.lobbyItem{display:flex;align-items:center;gap:12px;padding:14px 16px;border:2px solid #2a3832;background:#0d1a19;cursor:pointer;transition:border-color .12s,background .12s}
.lobbyItem:hover{border-color:#52645b;background:#111f1d}
.lobbyItem.selected{border-color:#e4ca3e;background:#161f1a}
.lobbyHost{flex:1;font-size:15px;letter-spacing:1px;font-weight:700;color:#d9e2d8}
.lobbyStatus{font-size:12px;letter-spacing:1px;color:#7a9a7a}
.lobbyStatus.waiting{color:#78e160}
.lobbyStatus.full{color:#e86040}
.lobbyJoin{font-size:12px;letter-spacing:1px;color:#e4ca3e;font-weight:700;padding:4px 8px;background:#2a3832;border-radius:2px}

/* Player slots (for waiting room) */
.playerSlots{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.playerSlot{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #2a3832;background:#0d1a19}
.slotDot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.dot-green{background:#78e160;box-shadow:0 0 6px #78e16099}
.dot-gray{background:#445550}
.dot-yellow{background:#e4ca3e;box-shadow:0 0 6px #e4ca3e99}
.slotName{flex:1;font-size:15px;letter-spacing:2px}
.slotTag{font-size:10px;letter-spacing:2px;color:#52645b;border:1px solid #2a3832;padding:2px 6px}
.slotReady{font-size:11px;letter-spacing:2px;color:#78e160;min-width:60px;text-align:right}

/* status line */
.lobbyStatus{min-height:22px;font-size:13px;letter-spacing:1px;color:#aebeb5;text-align:center;margin-top:4px}
.lobbyStatus.err{color:#e86040}
.lobbyStatus.ok{color:#78e160}

.playerSlots{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.playerSlot{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #2a3832;background:#0d1a19}
.slotDot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.dot-green{background:#78e160;box-shadow:0 0 6px #78e16099}
.dot-gray{background:#445550}
.dot-yellow{background:#e4ca3e;box-shadow:0 0 6px #e4ca3e99}
.slotName{flex:1;font-size:15px;letter-spacing:2px}
.slotTag{font-size:10px;letter-spacing:2px;color:#52645b;border:1px solid #2a3832;padding:2px 6px}
.slotReady{font-size:11px;letter-spacing:2px;color:#78e160;min-width:60px;text-align:right}

#waitingScreen .lobbyBtn{width:100%;margin-top:14px}

/* ── BUILD SCREEN MULTIPLAYER READY PANEL ─────────────────────────── */
#mpReadyPanel{margin-top:22px;border-top:1px solid #2a3832;padding-top:18px}
.readyPlayers{display:flex;gap:14px;margin-bottom:16px}
.readySlot{flex:1;display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #2a3832;background:#0d1a19;font-size:13px;letter-spacing:1px}
.readyBadge{margin-left:auto;font-size:11px;letter-spacing:2px;color:#78e160}
.readyBtnStyle{width:100%;padding:14px;font-size:18px;background:#e4b934;border-color:#e8da5d;color:#17190f;letter-spacing:3px}
.readyBtnStyle.is-ready{background:#78e160;border-color:#5ec44e;color:#0d1a19}
.startBtnStyle{width:100%;margin-top:10px;padding:14px;font-size:18px;background:#e05c2a;border-color:#f07040;color:#fff;letter-spacing:3px}
.startBtnStyle:disabled{opacity:.4;cursor:default}

@media(max-width:480px){.readyPlayers{flex-direction:column}}


/* ── TEAM SELECT SCREEN ───────────────────────────────────────────────────── */
#teamScreen{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:radial-gradient(circle at 50% 25%,#344844 0,#111817 58%,#090b0b 100%);padding:18px;overflow-y:auto}
.teamSelectCard{width:min(780px,100%);max-height:90vh;display:flex;flex-direction:column}
.teamPicker{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:16px 0;padding-right:4px;scrollbar-width:thin;scrollbar-color:#52645b #0a1514}
.teamPicker::-webkit-scrollbar{width:6px}
.teamPicker::-webkit-scrollbar-track{background:#0a1514}
.teamPicker::-webkit-scrollbar-thumb{background:#52645b;border-radius:3px}

/* Team card */
.teamCard{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #2a3832;background:#0d1a19;cursor:pointer;transition:border-color .12s,background .12s;position:relative}
.teamCard:hover{border-color:#52645b;background:#111f1d}
.teamCard input[type=radio]{position:absolute;opacity:0;width:0;height:0}
.teamCard input[type=radio]:checked ~ .teamName{color:#e4ca3e}
.teamCard:has(input:checked){border-color:#e4ca3e;background:#161f1a}
.teamLogo{width:40px;height:40px;object-fit:contain;flex-shrink:0;image-rendering:pixelated;border:1px solid #2a3832;background:#080f0e}
.teamName{font-size:13px;letter-spacing:1px;font-weight:700;color:#d9e2d8;line-height:1.2;flex:1}
.teamMotto{display:none}/* hidden in grid view — shown on hover via title attr */

/* Selected team detail strip at bottom */
.teamCard:has(input:checked) .teamMotto{display:block;font-size:10px;color:#7a9a8a;letter-spacing:0.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}
.teamCard:has(input:checked) .teamName{display:block}

.teamContinueBtn{width:100%;margin-top:4px;padding:14px;font-size:18px;letter-spacing:3px}

/* AI type badge shown on selected team's bots in HUD feed */
.aiBadge{display:inline-block;padding:1px 5px;font-size:10px;letter-spacing:1px;border:1px solid #52645b;color:#aebeb5;margin-left:6px;vertical-align:middle}

@media(max-width:540px){
  .teamPicker{grid-template-columns:1fr 1fr}
  .teamLogo{width:32px;height:32px}
  .teamName{font-size:11px}
}


/* ── BOT LAB BUILD SCREEN — portrait layout ─────────────────────────────── */
/*
  Portrait stack (phone):
    [TOP BAR      ]  ~44px
    [3D VIEWPORT  ]  ~30vh  — canvas shows through, overlaid grid + label
    [ROBOT INFO   ]  ~auto
    [LAUNCH BUTTON]  ~auto
    [CATEGORY TABS]  ~52px
    [PART LIST    ]  flex-1, scrollable rows
*/
#buildScreen{
  position:fixed;inset:0;z-index:10;
  display:flex;flex-direction:column;
  /* No background — let canvas show through the viewport */
  background:transparent;
  overflow:hidden;
  padding-bottom:40px;
}

/* ── Top bar ─────────────────────────────────── */
.blTopBar{
  display:flex;align-items:center;gap:10px;
  padding:0 12px;height:44px;flex-shrink:0;
  background:#1a1f1e;
  border-bottom:2px solid #3a4a40;
}
.blTitle{
  font:800 18px 'Barlow Condensed';letter-spacing:3px;color:#e4ca3e;
  margin-right:auto;
}
.blStats{display:flex;gap:12px}
.blStat{display:flex;flex-direction:column;align-items:center;gap:0}
.blStatLabel{font-size:9px;letter-spacing:1px;color:#52645b}
.blStatVal{font:700 13px 'Barlow Condensed';letter-spacing:1px;color:#d9e2d8}

/* ── 3D viewport area ────────────────────────── */
.blViewport{
  flex:0 0 28vh;
  position:relative;
  overflow:hidden;
  /* distinct preview box styling */
  background:#0e1614;
  border:3px solid #3a4a40;
  border-bottom:3px solid #3a4a40;
  margin:8px 12px;
  border-radius:4px;
  box-shadow:0 4px 8px rgba(0,0,0,0.3);
}
/* Blueprint grid overlay on top of the canvas */
.blViewport::before{
  content:'';
  position:absolute;inset:0;
  background:
    linear-gradient(rgba(42,72,66,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,72,66,0.12) 1px, transparent 1px);
  background-size:28px 28px;
  pointer-events:none;
  z-index:1;
}
.blViewportLabel{
  position:absolute;top:8px;left:50%;transform:translateX(-50%);
  font-size:11px;letter-spacing:2px;color:#e4ca3e;
  pointer-events:none;white-space:nowrap;
  background:rgba(26,31,30,0.8);
  padding:4px 12px;
  border-radius:12px;
  border:1px solid #3a4a40;
}
.blGrid{display:none} /* blueprint grid is CSS-only now */

/* ── Robot info section ────────────────────────── */
.blRobotInfo{
  flex-shrink:0;
  background:#1a1f1e;
  border-bottom:2px solid #3a4a40;
  padding:8px 12px;
  display:flex;flex-direction:column;gap:6px;
}
.blNameRow{
  display:flex;align-items:center;gap:8px;
}
.blNameLabel{font-size:10px;letter-spacing:2px;color:#52645b;white-space:nowrap}
.blNameInput{
  flex:1;background:#0e1614;border:1px solid #3a4a40;
  color:#e2d8c8;font:700 14px 'Barlow Condensed';letter-spacing:2px;
  padding:5px 8px;outline:none;
}
.blNameInput:focus{border-color:#e4ca3e}
.blColorRow{
  display:flex;align-items:center;gap:8px;
}
.blColorLabel{font-size:10px;letter-spacing:2px;color:#52645b;white-space:nowrap}
.blColorSwatch{
  display:flex;align-items:center;gap:6px;cursor:pointer;
  border:1px solid #3a4a40;background:#0e1614;padding:3px 8px;flex:1;
}
.blColorSwatch input[type=color]{
  width:28px;height:28px;border:none;padding:0;background:none;cursor:pointer;
}
.blColorSwatch span{font-size:12px;letter-spacing:1px;color:#aebeb5}

/* ── Launch section ────────────────────────────── */
.blLaunchSection{
  flex-shrink:0;
  background:#1a1f1e;
  border-bottom:2px solid #3a4a40;
  padding:8px 12px;
  display:flex;flex-direction:column;gap:6px;
}
.blLaunchBtn{
  width:100%;
  padding:12px;
  background:#c85a1a;border:2px solid #e07030;
  color:#fff;font:800 16px 'Barlow Condensed';letter-spacing:2px;
  cursor:pointer;white-space:nowrap;
}
.blLaunchBtn:disabled{opacity:.4;cursor:default}
.blLaunchBtn:active{transform:scale(.98)}
.blLoadStatus{
  font-size:10px;letter-spacing:1px;color:#7a9a7a;min-height:14px;text-align:center;
}

/* ── Category tabs ───────────────────────────── */
.blCatBar{
  display:flex;flex-shrink:0;
  background:#1a1f1e;
  border-bottom:2px solid #3a4a40;
  overflow-x:auto;scrollbar-width:none;
}
.blCatBar::-webkit-scrollbar{display:none}

.blCatBtn{
  flex:1 1 0;min-width:44px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1px;padding:6px 2px;
  border:none;border-right:1px solid #2a3832;
  background:transparent;
  color:#6a8a7a;
  font:700 7px 'Barlow Condensed';letter-spacing:0.5px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .1s,color .1s;
}
.blCatBtn:last-child{border-right:none}
.blCatBtn .blCatIcon{font-size:13px;line-height:1}
.blCatBtn .blCatLabel{font-size:7px;letter-spacing:0.5px;margin-top:1px}
.blCatBtn.active{background:#c85a1a;color:#fff;border-bottom:2px solid #e07030}
.blCatBtn:active{opacity:.75}

/* ── Part list ───────────────────────────────── */
.blPartList{
  flex:1;overflow-y:auto;overflow-x:hidden;
  background:#181e1c;
  scrollbar-width:thin;scrollbar-color:#3a4a40 #181e1c;
  width:100%;
  padding-bottom:20px;
}
.blPartList::-webkit-scrollbar{width:4px}
.blPartList::-webkit-scrollbar-thumb{background:#3a4a40}

/* Each row = one part option, like the original RA2 list */
.blPartRow{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;
  border-bottom:1px solid #222a28;
  background:#181e1c;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .1s;
  min-height:64px;
}
.blPartRow:active{background:#1e2a26}
.blPartRow.selected{background:#2a1a0a;border-left:3px solid #c85a1a}
.blPartRow:not(.selected){border-left:3px solid transparent}

.blPartThumb{
  width:52px;height:52px;flex-shrink:0;
  background:#222a28;border:1px solid #3a4a40;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;border-radius:2px;
}
.blPartRow.selected .blPartThumb{border-color:#c85a1a;background:#2a1a0a}

.blPartInfo{flex:1;min-width:0}
.blPartName{
  font:800 15px 'Barlow Condensed';letter-spacing:1px;color:#e2d8c8;
  margin-bottom:2px;
}
.blPartRow.selected .blPartName{color:#e07030}
.blPartMeta{
  display:flex;gap:10px;flex-wrap:wrap;
}
.blPartStat{font-size:11px;letter-spacing:1px;color:#7a9a7a}
.blPartDesc{font-size:10px;letter-spacing:0.5px;color:#4a6a5a;margin-top:1px}

.blPartCheck{
  width:22px;height:22px;flex-shrink:0;
  border:2px solid #3a4a40;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:transparent;font-size:13px;
}
.blPartRow.selected .blPartCheck{
  background:#c85a1a;border-color:#c85a1a;color:#fff;
}

/* Color picker row (inside part list when COLOR tab active) */
.blColorRow2{
  padding:16px 14px;
  display:flex;flex-direction:column;gap:12px;
}
.blColorRow2 label{
  display:flex;align-items:center;gap:12px;
  font:700 12px 'Barlow Condensed';letter-spacing:2px;color:#aebeb5;
}
.blColorRow2 input[type=color]{
  width:52px;height:52px;border:2px solid #3a4a40;
  padding:2px;background:#222a28;cursor:pointer;
}
.blColorPreview{
  flex:1;height:52px;border:1px solid #3a4a40;border-radius:2px;
}

/* ── Bottom bar (removed, replaced with new layout) ─── */

/* Mobile responsive adjustments */
@media(max-width:400px){
  .blViewport{flex:0 0 30vh;margin:6px 8px}
  .blCatBtn{min-width:38px;padding:5px 1px}
  .blCatBtn .blCatIcon{font-size:11px}
  .blCatBtn .blCatLabel{font-size:6px}
  .blRobotInfo{padding:6px 10px}
  .blNameLabel{font-size:9px}
  .blNameInput{font-size:12px;padding:4px 6px}
  .blColorLabel{font-size:9px}
  .blColorSwatch span{font-size:11px}
  .blLaunchSection{padding:6px 10px}
  .blLaunchBtn{font-size:14px;padding:10px}
}

/* Game HUD mobile adjustments */
@media(max-width:600px){
  .joystick{display:block;position:absolute;bottom:130px;left:16px;width:120px;height:120px;background:#1a1f1e;border:2px solid #3a4a40;border-radius:50%;z-index:10}
  .joystick div{width:48px;height:48px;background:#4a5a50;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}
  .actions{bottom:28px;right:16px;z-index:20}
  .actions button{width:60px;height:48px;font-size:11px}
  .top{height:48px;padding:10px 16px}
  .top b{font-size:18px}
  .top span{font-size:10px}
  .top strong{font-size:22px}
  .score{top:60px;left:16px}
  .score i{font-size:20px}
  .score small{font-size:9px}
  .bar{width:100px;height:6px}
  .score label{font-size:16px}
  .feed{top:64px;right:16px;font-size:11px}
}

/* ── Game Selection Screen ───────────────────────────────────────── */
#gameSelectScreen{
  position:fixed;inset:0;z-index:100;
  display:grid;place-items:center;
  background:radial-gradient(circle at 50% 25%,#344844 0,#111817 58%,#090b0b 100%);
}
.gameSelectCard{
  width:min(620px,100%);padding:clamp(24px,5vw,48px);border:1px solid #789184;background:#101b1bdd;box-shadow:0 18px 80px #000b;max-height:90vh;overflow-y:auto
}
.gameGrid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px
}
@media(min-width:600px){
  .gameGrid{grid-template-columns:repeat(4,1fr)}
}
.gameCard{
  background:#1a201e;border:2px solid #3a4a40;border-radius:8px;padding:24px 16px;text-align:center;cursor:pointer;transition:all 0.2s;
}
.gameCard:hover{
  border-color:#e4ca3e;transform:translateY(-4px);box-shadow:0 8px 20px rgba(228,202,62,0.2);
}
.gameIcon{
  font-size:42px;margin-bottom:12px
}
.gameTitle{
  font:800 16px 'Barlow Condensed';letter-spacing:2px;color:#e4ca3e;margin-bottom:8px
}
.gameDesc{
  font-size:12px;color:#aebeb5;margin-bottom:12px;line-height:1.3
}
.gameStatus{
  font:700 11px 'Barlow Condensed';letter-spacing:1px;color:#78e160;padding:4px 8px;background:#0e1614;border-radius:4px;display:inline-block
}
@media(max-width:400px){
  .gameGrid{grid-template-columns:1fr}
  .gameCard{padding:20px 12px}
  .gameIcon{font-size:36px}
  .gameTitle{font-size:14px}
  .gameDesc{font-size:11px}
}

/* ── Landscape override: side-by-side ────────────── */
@media(min-width:600px) and (orientation:landscape){
  #buildScreen{flex-direction:row;flex-wrap:wrap}
  .blTopBar{width:100%;order:0}
  .blViewport{flex:0 0 45%;order:1;height:calc(100vh - 44px - 70px)}
  .blRobotInfo{width:45%;order:2}
  .blLaunchSection{width:45%;order:3}
  .blCatBar{flex:0 0 55%;order:4;height:auto}
  .blPartList{flex:0 0 55%;order:5;height:calc(100vh - 44px - 52px - 70px)}
}