:root {
    color-scheme: dark;
    --bg: #0f1115;
    --text: #e6e6e6;
    --muted: #aab3c5;
    --border: #2a3142;
    --panel1: #141b29;
    --panel2: #0b0f17;
    --yellow: #f4e43b;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 24px;
}

h1 {
    text-align: center;
    margin: 0 0 16px 0;
    color: var(--yellow);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

select, button {
    background: #1b1f2a;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 8px;
}

    button:hover {
        filter: brightness(1.08);
        cursor: pointer;
    }

#status {
    margin: 10px 0 16px 0;
    color: var(--muted);
}

/* ======================================================
   FOOTER
   ====================================================== */

.license-footer {
    padding-top: 120px;
    text-align: center;
    color: #c9c9c9;
    font-size: 0.9rem;
}

    .license-footer p {
        margin: 0 0 10px 0;
    }

    .license-footer a {
        color: #c9c9c9;
    }

/* ======================================================
   SHARED COMPONENT STYLES
   These used to live in desktop.css; moved here so mobile
   keeps card + header styling.
   Desktop/mobile files should focus on layout only.
   ====================================================== */

.wip-disclaimer{
  max-width: 980px;
  margin: 0 auto 14px auto;
  color: var(--muted);
  line-height: 1.35;
}

.status{
  margin: 10px 0 16px 0;
  color: var(--muted);
}

/* Section header like "Equipment" */
.group-title{
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Generic slot card used by both Randomizer + Owned pages */
.slot-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, #0f1520, #0b0f17);
}

.slot-card > strong{
  display: block;
  margin-bottom: 12px;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Randomizer item row inside slot-card */
.item-row{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.item-name{
  color: var(--yellow);
  font-weight: 500;
  font-size: 1.05rem;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}


/* Fallback: if item names are rendered as spans */
.slot-card .item-row span{ color: var(--yellow); font-weight: 500; }
.item-icon{
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

.item-icon-large{
  width: 92px;
  height: 92px;
}

/* Stratagem list (Randomizer) */
.stratagem-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stratagem-list li{
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(145deg, #0f1520, #0b0f17);
  min-width: 0;
}

.stratagem-list img{
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

.stratagem-list .strat-name{
  color: var(--yellow);
  font-weight: 500;
  font-size: 1.05rem;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}

/* Owned page: group headers inside lists (e.g., "Assault Rifle", "Orbitals") */
.owned-subheader{
  margin: 14px 0 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text);
}

.owned-subheader-top{
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Owned page: subtype labels (e.g., "Emplacements", "Orbitals")
   These should NOT look like their own bubble cards; keep them lightweight. */
.owned-subheader-sub{
  background: none;
  border: none;
  padding: 0;
  margin: 10px 0 6px;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  opacity: 0.9;
}

/* Wrapper for subtype grids so spacing is consistent */
.owned-subgroup{
  margin-bottom: 16px;
}

/* Owned page: card grid + cards */
.owned-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 10px;
}

@media (max-width: 520px){
  .owned-grid{ grid-template-columns: 1fr; }
}

.owned-card{
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  background: linear-gradient(145deg, #0f1520, #0b0f17);
  cursor: pointer;
  min-width: 0;
}

.owned-card span{
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.owned-card input[type="checkbox"]{
  transform: scale(1.15);
}

.owned-card img{
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}

/* Make the checkbox easier to hit on touch */
@media (max-width: 900px){
  .owned-card input[type="checkbox"]{ transform: scale(1.25); }
}


/* Stratagem list item names (Randomizer) */
.stratagem-list li span{
  color: var(--yellow);
  font-weight: 500;
}



/* Ensure nested elements in strat names inherit styling */
.stratagem-list .strat-name, .stratagem-list .strat-name *{ color: var(--yellow); font-weight: 500; }
