/* PIANO ARMY · the page and the menu (web/army.css). The stage's own is army-stage.css. The fonts and the palette
   are Piano Attack's (web/falls.css). */
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #121620; --bg2: #1b2130; --bg3: #252d40; --line: #343d55;
  --ink: #ecebe4; --dim: #a3a9b8; --soft: #c9c6bb;
  --gold: #e2b452; --gold2: #f0cf85; --red: #e0483b; --green: #63b47a; --blue: #4f7dff;
  --paper: #f4ead2;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 Barlow, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: var(--ink); background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
button:hover { border-color: var(--gold); }
button.primary { font: 800 17px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .6px; text-transform: uppercase; background: var(--gold); color: #2a2010; border-color: var(--gold); padding: 11px 20px; }
button.primary:hover { background: var(--gold2); }
button.big { font-size: 24px; padding: 14px 34px; border-radius: 999px; }
select { font: inherit; color: var(--ink); background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; max-width: 100%; }
.sub { color: var(--dim); font-size: 13px; }
.dim { color: var(--dim); }
h1, h2, h3 { font-family: "Barlow Condensed", Barlow, sans-serif; margin: 0; letter-spacing: .4px; }
h2 { font-size: 19px; text-transform: uppercase; color: var(--gold2); margin-bottom: 8px; }

/* ------------------------------------------------------------------ the menu -- */
.screen { position: fixed; inset: 0; overflow-y: auto; background: radial-gradient(ellipse at 50% 0%, #22304d 0%, var(--bg) 60%); }
.menu-in { max-width: 1120px; margin: 0 auto; padding: 18px 16px 40px; }
.title { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; margin: 4px 0 16px; }
.title h1 { font-size: 56px; font-weight: 800; color: var(--gold2); text-shadow: 0 3px 0 #5a3d10, 0 0 24px rgba(240, 207, 133, .25); line-height: 1; }
.title .tag { margin: 6px 0 0; color: var(--soft); }
.title img.b { height: 92px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; margin-bottom: 14px; }
.panel { min-width: 0; background: rgba(27, 33, 48, .92); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pick { display: flex; gap: 6px; align-items: center; }
.pick select { flex: 1; min-width: 0; }
#minfo .teach { margin: 10px 0 2px; font-weight: 700; font-size: 17px; }
.plist { margin: 8px 0 0; padding-left: 20px; color: var(--soft); font-size: 14px; }
.plist .more { list-style: none; color: var(--dim); }
#slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 10px 0; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 2px 4px; border-radius: 10px; min-width: 0; }
.slot img { height: 46px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.slot .n { position: absolute; top: 2px; left: 5px; font: 800 12px/1 "Barlow Condensed", sans-serif; color: var(--dim); }
.slot .k { font: 700 11px/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--soft); margin-top: 3px; }
.slot.melee { background: linear-gradient(#2b3a63, #1f2a47); }
.slot.ranged { background: linear-gradient(#24474a, #1a3335); }
.slot.siege { background: linear-gradient(#4a3a22, #33281a); }
#presets { display: flex; flex-wrap: wrap; gap: 6px; }
#presets button { font-size: 13px; padding: 5px 10px; border-radius: 999px; }
#presets button.on { border-color: var(--gold); color: var(--gold2); }
#legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.unit { display: grid; grid-template-columns: 52px 1fr; gap: 0 8px; align-items: center; background: var(--bg2); border-radius: 10px; padding: 8px; font-size: 12.5px; }
.unit img { grid-row: span 3; height: 52px; width: 52px; object-fit: contain; }
.unit b { font-family: "Barlow Condensed", sans-serif; font-size: 16px; }
.unit span { color: var(--dim); }
.unit dl { display: grid; grid-template-columns: auto auto; gap: 0 8px; margin: 4px 0 0; white-space: nowrap; }
.unit dt { color: var(--dim); } .unit dd { margin: 0; text-align: right; }
.how ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--soft); }
.how li { margin: 3px 0; }
.opt { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
/* the way in stays on the screen however far the menu is scrolled */
.go { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 8px -16px 0; padding: 12px 16px 16px; background: linear-gradient(rgba(18, 22, 32, 0), rgba(18, 22, 32, .96) 40%); }

@media (max-width: 820px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .title h1 { font-size: 40px; }
  .title img.b { height: 56px; }
  #slots { grid-template-columns: repeat(5, 1fr); }
  #legend { grid-template-columns: 1fr; }
}
