/* UNR V2.1.2 - Vibrant Coaching UI
   Uses the ACTUAL current markup: unr-v211-*.
   Visual only. No dimensions, simulation or gameplay rules changed. */

.franchise-coaching-v211{
  --tac-cyan:#22d3ee;
  --tac-blue:#3b82f6;
  --tac-indigo:#6366f1;
  --tac-violet:#8b5cf6;
}

/* Tabs: SHAPE / CONTROL / ATTACK / DEFENCE */
.franchise-coaching-v211 .unr-v211-tabs button,
.unr-v211-live-coaching .unr-v211-tabs button,
.unr-v211-halftime-coaching .unr-v211-tabs button{
  background:linear-gradient(145deg,#112d4d,#101f3a)!important;
  border-color:rgba(56,189,248,.62)!important;
  color:#eaf7ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
  transition:filter .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
.franchise-coaching-v211 .unr-v211-tabs button:hover,
.unr-v211-live-coaching .unr-v211-tabs button:hover,
.unr-v211-halftime-coaching .unr-v211-tabs button:hover{
  filter:brightness(1.18) saturate(1.25);
  border-color:#67e8f9!important;
}
.franchise-coaching-v211 .unr-v211-tabs button.is-active,
.unr-v211-live-coaching .unr-v211-tabs button.is-active,
.unr-v211-halftime-coaching .unr-v211-tabs button.is-active{
  background:linear-gradient(120deg,#087ec4 0%,#2563eb 42%,#5138c8 100%)!important;
  border-color:#67e8f9!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.17),0 0 20px rgba(34,211,238,.24),0 7px 20px rgba(37,99,235,.22)!important;
}

/* Individual tactic choices */
.franchise-coaching-v211 .unr-v211-tactic>div>button,
.unr-v211-live-coaching .unr-v211-tactic>div>button,
.unr-v211-halftime-coaching .unr-v211-tactic>div>button{
  background:linear-gradient(145deg,rgba(10,47,80,.98),rgba(8,30,58,.98))!important;
  border-color:rgba(56,189,248,.58)!important;
  color:#f1f8ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
  transition:filter .15s ease,box-shadow .15s ease,border-color .15s ease!important;
}
.franchise-coaching-v211 .unr-v211-tactic>div>button:hover,
.unr-v211-live-coaching .unr-v211-tactic>div>button:hover,
.unr-v211-halftime-coaching .unr-v211-tactic>div>button:hover{
  background:linear-gradient(145deg,#0d5f91,#173b78)!important;
  border-color:#67e8f9!important;
  filter:saturate(1.25) brightness(1.08);
}
.franchise-coaching-v211 .unr-v211-tactic>div>button.is-selected,
.unr-v211-live-coaching .unr-v211-tactic>div>button.is-selected,
.unr-v211-halftime-coaching .unr-v211-tactic>div>button.is-selected{
  background:
    radial-gradient(circle at 50% 115%,rgba(34,211,238,.34),transparent 46%),
    linear-gradient(125deg,#0e8bd1 0%,#2563eb 43%,#5638c8 100%)!important;
  border-color:#8be9ff!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.20),0 0 13px rgba(34,211,238,.27),0 6px 16px rgba(37,99,235,.22)!important;
  filter:saturate(1.12) brightness(1.02);
}

/* Make tactical panels themselves richer without touching layout. */
.franchise-coaching-v211 .unr-v211-tab-panel,
.unr-v211-live-coaching .unr-v211-tab-panel,
.unr-v211-halftime-coaching .unr-v211-tab-panel{
  background:
    radial-gradient(circle at 50% 110%,rgba(6,182,212,.10),transparent 42%),
    linear-gradient(145deg,rgba(4,38,70,.96),rgba(10,25,55,.96))!important;
  border-color:rgba(56,189,248,.38)!important;
}

/* PRE-MATCH team talks. Actual markup is .unr-v211-talk > div:last-child > button */
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button,
.unr-v211-halftime-talk .unr-v211-fixed-talks>button{
  color:#fff!important;
  transition:filter .15s ease,box-shadow .15s ease,transform .15s ease!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(1),
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(1){
  background:linear-gradient(135deg,rgba(109,40,217,.50),rgba(76,29,149,.30))!important;
  border-color:rgba(167,139,250,.78)!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(2),
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(2){
  background:linear-gradient(135deg,rgba(13,148,136,.54),rgba(6,95,110,.30))!important;
  border-color:rgba(45,212,191,.78)!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(3),
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(3){
  background:linear-gradient(135deg,rgba(217,119,6,.58),rgba(146,64,14,.31))!important;
  border-color:rgba(251,191,36,.82)!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(4),
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(4){
  background:linear-gradient(135deg,rgba(220,38,38,.58),rgba(159,18,57,.31))!important;
  border-color:rgba(248,113,113,.82)!important;
}

/* Selected talk gets a proper saturated identity. */
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button.is-selected,
.unr-v211-halftime-talk .unr-v211-fixed-talks>button.is-selected{
  filter:saturate(1.30) brightness(1.08)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.23),0 0 14px currentColor!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(1).is-selected,
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(1).is-selected{
  background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#f5f3ff!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(2).is-selected,
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(2).is-selected{
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;color:#eafffb!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(3).is-selected,
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(3).is-selected{
  background:linear-gradient(135deg,#b45309,#f59e0b)!important;color:#fff8e1!important;
}
.franchise-coaching-v211 .unr-v211-talk>div:last-child>button:nth-child(4).is-selected,
.unr-v211-halftime-talk .unr-v211-fixed-talks>button:nth-child(4).is-selected{
  background:linear-gradient(135deg,#b91c1c,#f43f5e)!important;color:#fff1f2!important;
}

/* The halftime wrapper is .unr-v211-halftime-talk, not a generic team-talk grid. */
.unr-v211-halftime-talk{
  background:linear-gradient(145deg,rgba(5,49,80,.94),rgba(22,22,69,.94))!important;
  border-color:rgba(56,189,248,.40)!important;
}

/* Slight colour lift for key-role box, still the same geometry. */
.franchise-coaching-v211 .unr-v211-role-wrap{
  background:linear-gradient(145deg,rgba(32,24,84,.72),rgba(8,42,71,.78))!important;
  border-color:rgba(99,102,241,.52)!important;
}

/* Preserve accessibility. */
@media (prefers-reduced-motion:reduce){
  .franchise-coaching-v211 button,
  .unr-v211-live-coaching button,
  .unr-v211-halftime-coaching button,
  .unr-v211-halftime-talk button{transition:none!important}
}
