/* Vatu, Wai and Solevu: the same treatments Ember and Tide get, in each buff's colour.
   Vatu = the purple stone buff, Wai = the green water buff, Solevu = the gold merged buff. */
:root{--vatu:#a877e6;--wai:#6cc452;--solevu:#f2bd2c}

/* Tribes page: cards, labels, home banner */
.tribe-card.vatu{background:radial-gradient(ellipse at 65% 20%,#7d45c233,transparent 65%),#0e0b13;border-color:#a877e64d}
.tribe-card.wai{background:radial-gradient(ellipse at 65% 20%,#4c9a3633,transparent 65%),#0a120b;border-color:#6cc4524d}
.tribe-card.solevu{background:radial-gradient(ellipse at 65% 20%,#d9a11c38,transparent 65%),#12100a;border-color:#f2bd2c59}
.tribe-label.vatu{color:#c9a6f2}.tribe-label.wai{color:#9ee08b}.tribe-label.solevu{color:#f5d36b}
.tribe-banner.vatu{background:linear-gradient(110deg,#3a1d5c99,#0d0914);border-color:#a877e655}
.tribe-banner.wai{background:linear-gradient(110deg,#1d4a1a99,#09130a);border-color:#6cc45255}
.tribe-banner.solevu{background:linear-gradient(110deg,#5a420b99,#141006);border-color:#f2bd2c66}

/* Top-bar chip and account ring: league.js sets --tribe on <body> to the member's colour */
body[data-tribe=vatu] .avatar,body[data-tribe=wai] .avatar,body[data-tribe=solevu] .avatar{background:linear-gradient(135deg,var(--tribe),color-mix(in srgb,var(--tribe) 35%,#000));box-shadow:0 0 0 2px var(--ink2),0 0 0 4px var(--tribe)}
body[data-tribe=solevu] .avatar{color:#1c1405}
body[data-tribe=vatu] .tribe-chip,body[data-tribe=wai] .tribe-chip,body[data-tribe=solevu] .tribe-chip{border-color:color-mix(in srgb,var(--tribe) 55%,transparent);background:linear-gradient(90deg,color-mix(in srgb,var(--tribe) 16%,transparent),transparent)}
body[data-tribe=vatu] .tribe-chip b,body[data-tribe=wai] .tribe-chip b,body[data-tribe=solevu] .tribe-chip b{color:var(--tribe)}
@media(max-width:480px){body[data-tribe=vatu] .tribe-chip,body[data-tribe=wai] .tribe-chip,body[data-tribe=solevu] .tribe-chip{box-shadow:0 0 12px color-mix(in srgb,var(--tribe) 35%,transparent)}}

/* Profile tribe card */
.profile-tribe.vatu{border-color:#a877e680;background:linear-gradient(110deg,#a877e62e,transparent 70%),var(--card)}
.profile-tribe.wai{border-color:#6cc45280;background:linear-gradient(110deg,#6cc4522e,transparent 70%),var(--card)}
.profile-tribe.solevu{border-color:#f2bd2c80;background:linear-gradient(110deg,#f2bd2c2e,transparent 70%),var(--card)}
.profile-tribe.vatu h3{color:var(--vatu)}.profile-tribe.wai h3{color:var(--wai)}.profile-tribe.solevu h3{color:var(--solevu)}

/* Tribe tags in Results and the Picks grid; the challenge fact on a Results page */
.ep-tribe.vatu{background:#a877e629;color:var(--vatu)}.ep-tribe.wai{background:#6cc45229;color:var(--wai)}.ep-tribe.solevu{background:#f2bd2c29;color:var(--solevu)}
.ep-fact.vatu strong{color:var(--vatu)}.ep-fact.wai strong{color:var(--wai)}.ep-fact.solevu strong{color:var(--solevu)}

/* Commissioner → Episode → Tribe phases */
.phase-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 4px}
.phase-step{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:12px 8px;border:1px solid var(--line);border-radius:14px;opacity:.55;transition:.2s}
.phase-step.done{opacity:.75}
.phase-step.now{opacity:1;border-color:var(--gold);background:rgba(228,185,93,.07)}
.phase-buffs{display:flex;justify-content:center;height:64px}
.phase-buffs img{height:64px;width:auto;margin:0 -6px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
.phase-step b{font-family:var(--display);text-transform:uppercase;letter-spacing:.06em;font-size:15px}
.phase-step small{font-size:11px;color:var(--muted)}
@media(max-width:560px){.phase-buffs{height:48px}.phase-buffs img{height:48px}.phase-step b{font-size:13px}}
