/* Stake VIP levels (template-stake-vip.php, assets/vip/vip.js). Builds on the shared .calc styles in style.css; only the
   site's tokens, so the season layer applies by itself. The page's one bright thing is the tier medal: a small disc in
   the material each of Stake's tier names calls up (bronze, silver, gold, platinum, diamond, obsidian), beside the level
   in the result and in the table. */

.vip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vip .calc__field, .vip .calc__input { min-width: 0; }
.vip .calc__input input, .vip-select select { width: 0; } /* inputs shrink with their column (as in the bonus calculator) */
.vip-select select { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--text); font: 400 16px/1 var(--font-ui); text-overflow: ellipsis; cursor: pointer; }
.vip-select select:focus { outline: none; }
.vip-select option { background: var(--s1); color: var(--text); }
.vip-check { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text-2); font-size: 14px; line-height: 1.4; cursor: pointer; }
.vip-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--text); cursor: pointer; }
.vip-share { justify-self: start; height: 40px; cursor: pointer; }

.vip-lvl { display: inline-flex; align-items: center; gap: 8px; }
.calc__label .vip-lvl { margin-left: 4px; vertical-align: bottom; }
.calc__label .vip-lvl b { color: var(--heading); font-weight: 600; }
.vip-medal { flex: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--m-hi), var(--m) 55%, var(--m-lo)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .5); }
.vip-medal--bronze { --m-hi: #f0c49a; --m: #c47f45; --m-lo: #7c4a23; }
.vip-medal--silver { --m-hi: #f5f7fa; --m: #b9c0ca; --m-lo: #757d89; }
.vip-medal--gold { --m-hi: #fbe39a; --m: #e4ae39; --m-lo: #9c6f14; }
.vip-medal--platinum { --m-hi: #f2fbfb; --m: #a9d4d6; --m-lo: #5f8f93; }
.vip-medal--diamond { --m-hi: #e6f6ff; --m: #79c7f2; --m-lo: #2f7fb0; }
.vip-medal--obsidian { --m-hi: #9a88b4; --m: #3a2f4a; --m-lo: #17121f; }

/* The table of levels: the one you're at and the one you aim for get a surface step and a bar at the left edge */
.vip-sub { max-width: 72ch; margin: 0 0 16px; color: var(--text-2); }
.vip-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vip-table td[data-label="What it adds"] { min-width: 22em; color: var(--text-2); } /* wide enough that the longest row takes 2–3 lines, not 6, on a phone */
.vip-table tbody th { white-space: nowrap; }
.vip-table tr.is-now > *, .vip-table tr.is-to > * { background: var(--s2) !important; }
.vip-table tr.is-now > :first-child { box-shadow: inset 3px 0 0 var(--text-3), 1px 0 0 var(--line-2); }
.vip-table tr.is-to > :first-child { box-shadow: inset 3px 0 0 var(--fig-gold), 1px 0 0 var(--line-2); }
@media (max-width: 359px) { .vip-row { grid-template-columns: minmax(0, 1fr); } }
