/* Gameficate Craft — Sidebar steps, content area, cards and form grid. */
/* ---------- layout ---------- */
.wrap {
  flex: 1;
  display: flex;
  min-height: 0;
}
nav.side {
  width: 236px;
  flex: 0 0 auto;
  background: #fff;
  border-right: 2px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
nav.side button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  text-align: left;
}
nav.side button:hover {
  background: var(--soft);
}
nav.side button.on {
  background: #fff1e8;
  color: var(--orange-d);
}
nav.side .num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}
nav.side button.on .num {
  background: var(--orange);
  color: #fff;
}
nav.side .cnt {
  margin-left: auto;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
nav.side .dot {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
nav.side .dot.err {
  background: var(--red);
}
nav.side .dot.warn {
  background: var(--amber);
}
nav.side .foot {
  margin-top: auto;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.5;
}
nav.side .foot .guide-link {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
nav.side .foot .guide-link:hover,
nav.side .foot .guide-link:focus-visible {
  border-color: var(--orange);
  color: var(--orange-d, #e35f1e);
}
main.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 60px;
  min-width: 0;
}
h1 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin: 6px 0 20px;
  max-width: 900px;
  line-height: 1.5;
}
.card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--display);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px 18px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field.full {
  grid-column: 1 / -1;
}
.field > label,
.lab {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field .help {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- ② Area map (js/sections/MapSection.js) ---------- */
/* The game's map shape (16 : 10), so "Use current view" captures the height players see as well as the width. */
.area-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 72vh;
  margin-top: 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
}

/* ---------- Footer: credits (js/ui/CreditsDialog.js) ---------- */
.foot-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 30px;
  padding: 4px 16px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.foot-bar .fb-credit {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.foot-bar .fb-btn {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  color: #fff;
  font-weight: 800;
}
.foot-bar .fb-btn:hover,
.foot-bar .fb-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}
.foot-bar .fb-version {
  flex: 0 0 auto;
  opacity: 0.7;
  font-size: 12px;
}
