/* The look of the in-game menu: navy panels, a thin cyan line, flat tiles. */
:root {
  color-scheme: dark;
  --bg: #10151d;
  --panel: #1a2230;
  --tile: #243044;
  --tile-hi: #2d3b53;
  --line: #33415a;
  --text: #e6ebf2;
  --muted: #8d99ab;
  --cyan: #4fd6e8;
  --cyan-dim: #2a7f8c;
  --bad: #ff7a72;
  --good: #69d391;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---- top bar ---- */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16, 21, 29, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 18px;
}
.mark {
  font-weight: 700; letter-spacing: .14em; font-size: 14px; color: var(--text);
  white-space: nowrap;
}
.mark span { color: var(--muted); font-weight: 400; margin: 0 .35em; }
.mark:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); padding: 5px 10px; border-radius: 3px; font-size: 14px;
}
.nav a:hover { color: var(--text); background: var(--tile); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--tile); }
.spacer { flex: 1; }
.who { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* BRL | USD switch, like the On/Off chips of the menu */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button {
  background: none; border: 0; color: var(--muted); font: 600 12px var(--mono);
  padding: 5px 9px; cursor: pointer; margin: 0;
}
.seg button.on { background: var(--tile-hi); color: var(--cyan); }

/* ---- layout ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.label {
  font: 600 12px var(--mono); color: var(--cyan); letter-spacing: .04em;
  margin: 0 0 6px;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* a panel is the menu window: dark, square-ish, thin border */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 18px;
}
.panel + .panel { margin-top: 14px; }
.panel h3 { font-size: 16px; margin-bottom: 4px; }

/* ---- hero ---- */
.hero { position: relative; border-bottom: 1px solid var(--line); background: #000; }
.hero img { width: 100%; height: min(62vh, 560px); object-fit: cover; opacity: .9; }
.hero .card {
  position: absolute; left: 16px; bottom: 24px; max-width: 440px;
  background: rgba(26, 34, 48, .94); border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 18px;
}
@media (min-width: 1112px) { .hero .card { left: calc((100vw - 1080px) / 2 + 16px); } }
.hero h1 { font-size: 26px; line-height: 1.2; margin-bottom: 6px; }
.hero p { margin: 0; color: #c3ccd8; }
.hero .card .row { margin-top: 12px; }

/* ---- the maps strip ---- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shot { margin: 0; position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shot figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 6px 9px;
  font: 12px var(--mono); color: var(--text);
  background: linear-gradient(transparent, rgba(10, 14, 20, .85));
}

section.block { padding: 36px 0 8px; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---- store items ---- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  display: flex; flex-direction: column; overflow: hidden;
}
.item .pic { aspect-ratio: 4 / 3; background: var(--tile); border-bottom: 1px solid var(--line); }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
/* no picture yet: a blueprint-ish tile with the item's name */
.item .pic.none {
  display: flex; align-items: end; padding: 12px;
  background-color: #182131;
  background-image:
    linear-gradient(rgba(79, 214, 232, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 214, 232, .08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.item .pic.none span { font: 700 22px/1.1 var(--mono); color: var(--cyan-dim); text-transform: uppercase; }
.item .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item .kind { font: 600 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.item h3 { font-size: 17px; }
.item p { margin: 0; font-size: 14px; color: #b5c0cf; flex: 1; }
.item .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.price { font: 600 16px var(--mono); }
.owned { font: 600 13px var(--mono); color: var(--good); }

/* ---- controls ---- */
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus { outline: none; border-color: var(--cyan-dim); box-shadow: 0 0 0 1px var(--cyan-dim); }
button, .btn {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--tile); color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 12px; text-align: left;
}
button:hover, .btn:hover { background: var(--tile-hi); text-decoration: none; }
button.go, .btn.go { background: var(--cyan); border-color: var(--cyan); color: #06222a; }
button.go:hover, .btn.go:hover { background: #7ae3f0; }
button.danger { border-color: #6a3434; color: var(--bad); background: #2a1d22; }
button.link { background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 500; }
button.link:hover { text-decoration: underline; background: none; }
button:disabled { opacity: .45; cursor: default; }
.item button { margin-top: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.msg { min-height: 20px; font-size: 13px; margin-top: 8px; }
.msg.bad { color: var(--bad); } .msg.good { color: var(--good); }
.note {
  border-left: 2px solid var(--cyan); padding: 8px 12px; background: var(--tile);
  font-size: 14px; margin: 0 0 14px;
}

/* ---- account ---- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0 0; }
.facts dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts code { font: 13px var(--mono); color: var(--muted); }
.list { list-style: none; margin: 10px 0 0; padding: 0; }
.list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: 14px;
}
.list li:first-child { border-top: 0; }
.list .when { font: 13px var(--mono); color: var(--muted); white-space: nowrap; }
.tag { font: 600 11px var(--mono); padding: 1px 6px; border-radius: 2px; background: var(--tile-hi); color: var(--muted); }
.tag.ok { color: var(--good); } .tag.off { color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .bar .who { display: none; } }

footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 18px 0 40px; font-size: 13px; color: var(--muted); }
.grow { flex: 1; min-width: 140px; }
.row > button { margin-top: 0; }
.row + .row, input + .row, .two + .row { margin-top: 12px; }
.shot-btn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.shot-btn:hover { background: none; }
.shot.on { border-color: var(--cyan); }
.shot { cursor: pointer; }
.hero img { transition: opacity .2s; }
