/* Minimal, clean MVP styling (GitHub Pages friendly) */

:root{
  --bg:#0b1220;
  --card:#101a33;
  --card2:#0f1930;
  --text:#e8eefc;
  --muted:#aab7dd;
  --accent:#76b7ff;
  --accent2:#9ef0c3;
  --danger:#ff7373;
  --border:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 30% 10%, rgba(118,183,255,.12), transparent 55%),
              radial-gradient(900px 600px at 70% 20%, rgba(158,240,195,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

.app-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 20px 10px;
  max-width:1100px;
  margin:0 auto;
}

.brand h1{ margin:0; font-size:28px; letter-spacing:.2px; }
.subtitle{ margin:6px 0 0; color:var(--muted); font-size:13px; }

.container{
  max-width:1100px;
  margin:0 auto;
  padding: 10px 20px 40px;
  display:grid;
  gap:14px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

.footer{ background: rgba(255,255,255,.02); }
.hidden{ display:none !important; }

h2{ margin:0 0 8px; font-size:20px; }
.muted{ color:var(--muted); }
.row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:12px 0;
}
.label{ min-width:150px; color:var(--muted); }
select, input{
  background: rgba(0,0,0,.25);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding:10px 12px;
  outline:none;
}
input{ width: min(420px, 100%); }

.player-inputs{ display:grid; gap:10px; margin-top:12px; }
.player-row{ display:flex; gap:10px; align-items:center; }
.badge{
  font-size:12px;
  border:1px solid var(--border);
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  min-width:80px;
  text-align:center;
}

.actions{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }

.btn{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding:10px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .04s ease, background .2s ease;
}
.btn:hover{ background: rgba(255,255,255,.08); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.btn-primary{
  background: linear-gradient(90deg, rgba(118,183,255,.35), rgba(158,240,195,.22));
  border-color: rgba(118,183,255,.45);
}
.btn-ghost{ background: rgba(255,255,255,.02); }

.split{
  display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
}

.pillbar{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pill{
  border:1px solid var(--border);
  background: rgba(0,0,0,.20);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}

.hand{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:10px;
  margin-top:14px;
}

.cardtile{
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.22);
  cursor:pointer;
  position:relative;

  aspect-ratio: 2.5 / 3.5;  /* card shape */
}
.cardtile:hover{ outline: 2px solid rgba(118,183,255,.35); }
.cardtile.selected{ outline: 3px solid rgba(158,240,195,.50); }

.cardimg{
  position:absolute;
  inset:0;                 /* fill the whole tile */
  width:100%;
  height:100%;
  object-fit:contain;      /* show the entire design */
  display:block;
  background: rgba(0,0,0,.15);
}
.cardmeta{
  padding:10px;
  display:grid;
  gap:4px;
}
.cardname{ font-weight:700; font-size:14px; }
.cardtype{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.8px; }
.cardpoints{
  position:absolute;
  top:10px;
  left:10px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
}

.type-native{ border-color: rgba(118,183,255,.35); }
.type-canoe{ border-color: rgba(158,240,195,.35); }
.type-invasive{ border-color: rgba(255,115,115,.35); }
.type-resource{ border-color: rgba(255,255,255,.18); }

.huli-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap:12px;
  margin-top:14px;
}

.revealbox{
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.20);
}
.revealhead{
  padding:10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  border-bottom:1px solid var(--border);
}
.revealplayer{ font-weight:700; }
.smallpill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:5px 9px;
  border-radius:999px;
}

.scoreboard{ display:grid; gap:10px; margin-top:12px; }
.scoreline{
  border:1px solid var(--border);
  background: rgba(0,0,0,.20);
  border-radius: 14px;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.scoreline b{ font-size:14px; }
.kv{ display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:13px; }
.kv span{ white-space:nowrap; }

.statusline{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.notes summary{ cursor:pointer; color:var(--accent); }
.notes ul{ margin:10px 0 0 18px; color:var(--muted); }

.cardmeta { display: none; }
.cardpoints { display: none; }
