/* ==========================================================================
   TRIUMPH SOREVIA - screens.css
   Styles specific to individual screens. Everything shared lives in
   components.css; use the CSS variables from base.css only.
   ========================================================================== */
/* ==========================================================================
   Game modes - hub cards, mode lobbies, the cup ladder and the puzzle list.
   Every accent is handed in as --acc from the mode's own DATA entry.
   ========================================================================== */

.md-body { display: block; }

/* ------------------------------------------------------------- hub card -- */
.md-card {
  position: relative;
  padding: 13px 14px 12px 17px;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  cursor: pointer;
  transition: transform .13s ease, border-color .16s ease;
}
.md-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--acc, var(--blue));
}
.md-card:active { transform: scale(.978); border-color: var(--line-3); }
.md-card.is-locked { cursor: default; opacity: .66; }
.md-card.is-locked:active { transform: none; }

.md-card__top { display: flex; align-items: center; gap: 11px; }
.md-card__ic {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(5, 11, 26, .5);
  border: 1px solid var(--line);
  color: var(--acc, var(--blue));
}
.md-card__ic .ic { width: 23px; height: 23px; }
.md-card__n { font-size: 15.5px; font-weight: 800; }
.md-card__b { font-size: 12px; color: var(--txt-3); margin-top: 1px; }
.md-card__go { flex: none; color: var(--txt-4); line-height: 0; }
.md-card__stat {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: var(--r-s);
  background: rgba(5, 11, 26, .5);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--txt-2);
}
.md-card .locknote { margin-top: 10px; }

/* ----------------------------------------------------------- lobby hero -- */
.md-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 4px;
  padding: 15px;
  border-radius: var(--r-l);
  background: linear-gradient(140deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.md-hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--acc, var(--blue));
}
.md-hero__ic {
  flex: none;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 19px;
  background: rgba(5, 11, 26, .45);
  border: 1px solid var(--line);
  color: var(--acc, var(--blue));
}
.md-hero__ic .ic { width: 30px; height: 30px; }
.md-hero__n { font-size: 19px; font-weight: 900; }
.md-hero__b { font-size: 12.5px; color: var(--txt-3); margin-top: 2px; }

/* ---------------------------------------------------------- rule lines --- */
.md-rules {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.md-rules li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.46;
  color: var(--txt-2);
}
.md-rules li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc, var(--blue));
}
.md-rules b { color: var(--txt); font-weight: 800; }

/* ------------------------------------------------------------- kit bag --- */
.md-bstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.md-bstrip::-webkit-scrollbar { display: none; }
.md-bchip {
  flex: none;
  width: 68px;
  padding: 9px 4px 8px;
  border-radius: var(--r-m);
  background: rgba(5, 11, 26, .5);
  border: 1px solid var(--line);
  text-align: center;
}
.md-bchip .bst { width: 26px; height: 26px; }
.md-bchip__n { display: block; font-size: 13.5px; font-weight: 900; margin-top: 2px; }
.md-bchip__k {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--txt-3);
}
.md-bchip.is-empty { opacity: .42; }

/* ------------------------------------------------------------- ladder ---- */
.md-ladder { display: flex; gap: 6px; margin-top: 11px; }
.md-ladder__step {
  flex: 1;
  min-width: 0;
  padding: 9px 3px 8px;
  border-radius: var(--r-s);
  background: rgba(5, 11, 26, .5);
  border: 1px solid var(--line);
  text-align: center;
}
.md-ladder__n {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--txt-4);
}
.md-ladder__n .ic { width: 17px; height: 17px; }
.md-ladder__k {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--txt-4);
}
.md-ladder__step.is-done {
  background: rgba(255, 201, 77, .14);
  border-color: rgba(255, 201, 77, .4);
}
.md-ladder__step.is-done .md-ladder__n,
.md-ladder__step.is-done .md-ladder__k { color: var(--gold-l); }
.md-ladder__step.is-next { border-color: var(--line-3); }
.md-ladder__step.is-next .md-ladder__n { color: var(--txt); }

/* ------------------------------------------------------ challenge rows --- */
.md-chal { align-items: flex-start; }
.md-chal .lrow__ic { margin-top: 1px; }
.md-chal__ic--done { background: rgba(53, 208, 127, .18); color: var(--green); }
.md-chal__meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 4px; }
.md-chal__meta .pill { height: 24px; padding: 0 8px; font-size: 11px; }
.md-chal__meta .pill .ic { width: 13px; height: 13px; }
.md-chal .lrow__go { align-self: center; }

/* --------------------------------------------------------- play footer --- */
.md-playwrap { margin-top: 20px; }
.md-foot { margin-top: 9px; }
