/* styles-v4.css — v0.4 six-tier grid styling (PHASE8).
   Lifted from the v0.1 mainnet reference (.tiers-grid / .tier-card) so the
   six-card picker is visually identical to the original Satoshi-Dice tier UI.
   CSS variables (--teal/--blue/--purple/--red/--mono/--display/--sans) are
   already defined in index.html :root, so this file only adds the grid + cards.
   No tier is ever .locked in v0.4 (fixed 1 TKAS bet) — the .locked rules are
   carried over for visual fidelity but unused. */

/* ── tier grid container ── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* section label above the grid */
.tier-section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 8px;
}
.tier-section-label .accent { color: var(--teal); }

/* ── tier card ── */
.tier-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tier-card:hover {
  border-color: rgba(73,234,203,0.4);
  box-shadow: 0 0 20px rgba(73,234,203,0.18);
  transform: translateY(-1px);
}
.tier-card.active {
  border-color: var(--teal);
  background: rgba(73,234,203,0.08);
  box-shadow: 0 0 22px rgba(73,234,203,0.3);
}
.tier-card.active::before {
  content: '✓';
  position: absolute;
  top: 5px; right: 8px;
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 700;
}
.tier-card.locked { opacity: 0.5; cursor: not-allowed; border-color: rgba(255,77,109,0.5); }
.tier-card.locked:hover { border-color: rgba(255,77,109,0.5); box-shadow: none; transform: none; }
.locked-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(180,0,30,0.92); color: #fff; font-family: var(--mono);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 4px 10px; border: 1px solid var(--red); border-radius: 6px;
  pointer-events: none; white-space: nowrap; z-index: 10;
}

.tier-name {
  font-family: var(--display);
  font-size: 0.92rem; font-weight: 700;
  color: var(--text);
  display: block; margin-bottom: 3px;
}
.tier-card.active .tier-name { color: var(--teal); }
.tier-threshold {
  font-family: var(--mono);
  font-size: 0.62rem; color: var(--blue);
  display: block; margin-bottom: 2px;
}
.tier-odds {
  font-family: var(--sans);
  font-size: 0.6rem; color: var(--muted);
  display: block;
}
.tier-mult {
  font-family: var(--display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--teal);
  display: block; margin-top: 5px;
  text-shadow: 0 0 10px rgba(73,234,203,0.3);
}

/* ── per-tier house-pool breakdown (expandable) ── */
.tier-breakdown-toggle {
  font-family: var(--mono); font-size: 0.6rem; color: var(--muted);
  cursor: pointer; user-select: none; margin-top: 6px; display: inline-block;
}
.tier-breakdown-toggle:hover { color: var(--teal); }
.tier-breakdown {
  margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px;
}
.tier-breakdown table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.58rem; }
.tier-breakdown th, .tier-breakdown td { text-align: right; padding: 2px 4px; color: var(--muted); }
.tier-breakdown th:first-child, .tier-breakdown td:first-child { text-align: left; color: var(--text); }
.tier-breakdown .pos { color: var(--teal); }
.tier-breakdown .neg { color: var(--red); }
